Public Member Functions | List of all members
StateWhInpType Class Reference
Inheritance diagram for StateWhInpType:
Inheritance graph
[legend]

Public Member Functions

const OneWheelTypewheel (size_t i) const
 
OneWheelTypewheel (size_t i)
 
- Public Member Functions inherited from tuw::StateNestedVector< OneWheelType >
const std::shared_ptr< OneWheelType > & at (size_t i) const
 
std::shared_ptr< OneWheelType > & at (size_t i)
 
virtual StateSPtr cloneState () const override
 Clone-to-base-class-ptr function. More...
 
StateNestedVectoroperator= (const StateNestedVector &)=default
 
StateNestedVectoroperator= (StateNestedVector &&)=default
 
const OneWheelTypeoperator[] (size_t i) const
 
OneWheelTypeoperator[] (size_t i)
 
void resize (const size_t &_i) override
 Resizes the array. More...
 
StateSPtrstate (const std::size_t &_i) override
 Access sub-state based on index _i. More...
 
 StateNestedVector (State *_parent)
 
 StateNestedVector ()
 
 StateNestedVector (const StateNestedVector &)=default
 
 StateNestedVector (StateNestedVector &&)=default
 
std::shared_ptr< OneWheelType > & stateScoped (const size_t &_i)
 returns pointer to the extended class of the sub-state at index _i. More...
 
size_t stateSize () const override
 Size of the sub-states. More...
 
void updateSize () override
 Performs internal manipulation when any of the underlying arrays are being resized. More...
 
double & value (const std::size_t &_i) override
 Access state variable based on index _i. More...
 
const double & value (const std::size_t &_i) const override
 Const access state variable based on index _i. More...
 
size_t valueSize () const override
 Size of the state variables. More...
 
virtual ~StateNestedVector ()=default
 
- Public Member Functions inherited from tuw::State
void fromEIGENVec (const Eigen::VectorXd &_vec)
 Copies all values from an Eigen vector. The valueSize of the State object has to be equal with the Eigen vector size. More...
 
void fromSTLVec (const std::vector< double > &_vec)
 Copies all values from an STL vector. The valueSize of the State object has to be equal with the STL vector size. More...
 
Stateoperator= (const State &)=default
 
Stateoperator= (State &&)=default
 
 State (State *_parent)
 
 State ()
 
 State (const State &)=default
 
 State (State &&)=default
 
void toEIGENVec (Eigen::VectorXd &_vec)
 Converts all the array values to an Eigen vector. More...
 
void toSTLVec (std::vector< double > &_vec)
 Converts all the array values to an STL vector. More...
 
virtual ~State ()=default
 

Additional Inherited Members

- Static Public Member Functions inherited from tuw::State
static std::vector< double > & minus (State &_lhs, State &_rhs, std::vector< double > &_ans)
 Performs substraction. Left and right operand are required to have the same valueSize. More...
 
static Eigen::VectorXd & minus (State &_lhs, State &_rhs, Eigen::VectorXd &_ans)
 Performs substraction. Left and right operand are required to have the same valueSize. More...
 
static Stateminus (State &_lhs, State &_rhs, State &_ans)
 Performs substraction. Answer variable, left operand and right operand are required to have the same valueSize. More...
 
static std::vector< double > & plus (State &_lhs, State &_rhs, std::vector< double > &_ans)
 Performs addition. Left and right operand are required to have the same valueSize. More...
 
static Eigen::VectorXd & plus (State &_lhs, State &_rhs, Eigen::VectorXd &_ans)
 Performs addition. Left and right operand are required to have the same valueSize. More...
 
static Stateplus (State &_lhs, State &_rhs, State &_ans)
 Performs addition. Answer variable, left operand and right operand are required to have the same valueSize. More...
 
- Protected Member Functions inherited from tuw::State
void callRootUpdateSize ()
 Calls (if present) the parent updateSize procedure. Otherwise performs root updateSize. More...
 
- Protected Attributes inherited from tuw::StateNestedVector< OneWheelType >
std::vector< std::shared_ptr< OneWheelType > > states_
 
std::vector< StateSPtrstatesBase_
 
size_t statesSize_
 
std::vector< double * > values_
 
size_t valueSize_
 
- Protected Attributes inherited from tuw::State
Stateparent_
 Pointer to the parent State structure. More...
 

Detailed Description

Definition at line 79 of file demo_state.cpp.

Member Function Documentation

const OneWheelType& StateWhInpType::wheel ( size_t  i) const
inline

Definition at line 83 of file demo_state.cpp.

OneWheelType& StateWhInpType::wheel ( size_t  i)
inline

Definition at line 87 of file demo_state.cpp.


The documentation for this class was generated from the following file:


tuw_control
Author(s): George Todoran
autogenerated on Mon Jun 10 2019 15:27:22