Signal containing values indexed by a single integer. More...
#include <signals.h>

Public Types | |
| using | ConstPtr = std::shared_ptr< const IndexedValuesSignal > |
| using | Ptr = std::shared_ptr< IndexedValuesSignal > |
Public Types inherited from corbo::SignalInterface | |
| using | ConstPtr = std::shared_ptr< const SignalInterface > |
| using | Ptr = std::shared_ptr< SignalInterface > |
Public Member Functions | |
| void | add (double value) |
| Add value. More... | |
| void | add (const Eigen::Ref< const Eigen::VectorXd > &values) |
| Add several values. More... | |
| void | add (const std::vector< double > &values) |
| Add several values (STL version) More... | |
| void | clear () |
| int | getIndex () const |
| Return current index. More... | |
| SignalType | getType () const override |
| Get the signal type according to enumeration SignalType. More... | |
| int | getValueDimension () const |
| const std::vector< double > & | getValues () const |
| Read access to the underlying values object. More... | |
| std::vector< double > & | getValuesRef () |
| Write access to the underlying values data (use with care) More... | |
| IndexedValuesSignal ()=default | |
| Default constructor. More... | |
| IndexedValuesSignal (int index) | |
| Construct with desired index. More... | |
| IndexedValuesSignal (int index, double value) | |
| Construct with desired index and single value. More... | |
| IndexedValuesSignal (int index, const std::vector< double > &values) | |
| Construct with desired index and value vector. More... | |
| IndexedValuesSignal (int index, const Eigen::Ref< const Eigen::VectorXd > &values) | |
| Construct with desired index and value vector (STL version) More... | |
| bool | isEmpty () const |
| Check if the underlying map is empty. More... | |
| void | set (int index, double value) |
| Set index value pair (wipes off previous values) More... | |
| void | set (int index, const Eigen::Ref< const Eigen::VectorXd > &values) |
| Set several values to the desired index (wipes off previous values) More... | |
| void | set (int index, const std::vector< double > &values) |
| Set several values to the desired index (STL version) (wipes off previous values) More... | |
| void | setIndex (int index) |
| Set desired index. More... | |
Public Member Functions inherited from corbo::SignalInterface | |
| virtual void | getValueLabels (std::vector< std::string > &sublabels) const |
| Return labels for the underlying components of the signal (e.g. axes labels) More... | |
| virtual | ~SignalInterface () |
| Virtual destructor. More... | |
Private Attributes | |
| int | _index = 0 |
| std::vector< double > | _values |
Additional Inherited Members | |
Public Attributes inherited from corbo::SignalInterface | |
| SignalHeader | header |
| The header of the signal. More... | |
Signal containing values indexed by a single integer.
| using corbo::IndexedValuesSignal::ConstPtr = std::shared_ptr<const IndexedValuesSignal> |
| using corbo::IndexedValuesSignal::Ptr = std::shared_ptr<IndexedValuesSignal> |
|
default |
Default constructor.
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
| void corbo::IndexedValuesSignal::add | ( | const Eigen::Ref< const Eigen::VectorXd > & | values | ) |
Add several values.
Definition at line 134 of file signals.cpp.
| void corbo::IndexedValuesSignal::add | ( | const std::vector< double > & | values | ) |
Add several values (STL version)
Definition at line 138 of file signals.cpp.
|
inline |
|
inlineoverridevirtual |
Get the signal type according to enumeration SignalType.
Implements corbo::SignalInterface.
|
inline |
|
inline |
|
inline |
|
inline |
| void corbo::IndexedValuesSignal::set | ( | int | index, |
| double | value | ||
| ) |
Set index value pair (wipes off previous values)
Definition at line 140 of file signals.cpp.
| void corbo::IndexedValuesSignal::set | ( | int | index, |
| const Eigen::Ref< const Eigen::VectorXd > & | values | ||
| ) |
Set several values to the desired index (wipes off previous values)
Definition at line 146 of file signals.cpp.
| void corbo::IndexedValuesSignal::set | ( | int | index, |
| const std::vector< double > & | values | ||
| ) |
Set several values to the desired index (STL version) (wipes off previous values)
Definition at line 152 of file signals.cpp.
|
inline |
|
private |