PetaVision  Alpha
ConstantLayer.hpp
1 /*
2  * ConstantLayer.hpp
3  *
4  * Created on: Dec 17, 2013
5  * Author: slundquist
6  */
7 
8 #ifndef CONSTANTLAYER_HPP_
9 #define CONSTANTLAYER_HPP_
10 
11 #include "HyPerLayer.hpp"
12 
13 namespace PV {
14 
15 class ConstantLayer : public PV::HyPerLayer {
16  public:
17  ConstantLayer(const char *name, HyPerCol *hc);
18  virtual ~ConstantLayer();
19  virtual bool needUpdate(double timestamp, double dt) override;
20 
21  protected:
22  ConstantLayer();
23  int initialize(const char *name, HyPerCol *hc);
24 
34  virtual void ioParam_triggerLayerName(enum ParamsIOFlag ioFlag) override; // End list of ConstantLayer parameters
36 
37  virtual Response::Status
38  communicateInitInfo(std::shared_ptr<CommunicateInitInfoMessage const> message) override;
39 
40  private:
41  int initialize_base();
42 }; // class ConstantLayer
43 
44 } /* namespace PV */
45 #endif
virtual void ioParam_triggerLayerName(enum ParamsIOFlag ioFlag) override
ConstantLayer does not use triggerLayerName.
virtual bool needUpdate(double timestamp, double dt) override