PetaVision  Alpha
ConstantV.hpp
1 /*
2  * ConstantV.hpp
3  *
4  * Created on: Oct 26, 2011
5  * Author: pschultz
6  */
7 
8 #ifndef CONSTANTV_HPP_
9 #define CONSTANTV_HPP_
10 
11 #include "BaseInitV.hpp"
12 
13 namespace PV {
14 
15 class ConstantV : public BaseInitV {
16  protected:
26  virtual void ioParam_valueV(enum ParamsIOFlag ioFlag);
29  public:
30  ConstantV(const char *name, HyPerCol *hc);
31  virtual ~ConstantV();
32  virtual int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override;
33  virtual void calcV(float *V, PVLayerLoc const *loc) override;
34 
35  protected:
36  ConstantV();
37  int initialize(const char *name, HyPerCol *hc);
38 
39  private:
40  int initialize_base();
41 
42  // Data members
43  protected:
44  float mValueV;
45 }; // end class ConstantV
46 
47 } // end namespace PV
48 
49 #endif /* CONSTANTV_HPP_ */
virtual int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override
Definition: ConstantV.cpp:30
virtual void ioParam_valueV(enum ParamsIOFlag ioFlag)
valueV: The value to initialize the V buffer with
Definition: ConstantV.cpp:36