33 #ifndef STATE_VECTOR_H 34 #define STATE_VECTOR_H 88 return std::shared_ptr<StateVector>(
new StateVector(*
this));
92 virtual double&
value(
const std::size_t& _i)
override 98 virtual const double&
value(
const std::size_t& _i)
const override 110 virtual void resize(
const std::size_t& _i)
override 133 #endif // STATE_VECTOR_H std::shared_ptr< State > StateSPtr
std::vector< double > & valuesVector()
Reference to the state variables array.
virtual double & value(const std::size_t &_i) override
Access state variable based on index _i.
StateVector(State *_parent)
std::shared_ptr< StateVector > StateVectorSPtr
virtual ~StateVector()=default
std::unique_ptr< StateVector const > StateVectorConstUPtr
std::shared_ptr< StateVector const > StateVectorConstSPtr
std::unique_ptr< StateVector > StateVectorUPtr
virtual StateSPtr cloneState() const override
Clone-to-base-class-ptr function.
virtual void resize(const std::size_t &_i) override
Generic tree-like recursive structure that allows sub-structure access as well as ordered (array-like...
StateVector & operator=(const StateVector &)=default
virtual size_t valueSize() const override
Size of the state variables.
const std::vector< double > & valuesVector() const
Const reference to the variables array.
virtual const double & value(const std::size_t &_i) const override
Const access state variable based on index _i.
Implementation of State for a dynamic size vector of double values.
void callRootUpdateSize()
Calls (if present) the parent updateSize procedure. Otherwise performs root updateSize.
std::vector< double > values_
State array container.