![]() |
- 3.0.2 core module.
|
An discrete array (vector) of a particular data type. More...
#include <DiscreteArray.h>
Public Types | |
| typedef std::vector< T, Alloc > | Base |
| base class (std::vector) More... | |
| typedef std::vector< T, Alloc >::iterator | iterator |
| iterator More... | |
| typedef std::vector< T, Alloc >::const_iterator | const_iterator |
| const iterator More... | |
Public Member Functions | |
| DiscreteArray () | |
| default constructor More... | |
| DiscreteArray (const DiscreteArray &&other) | |
| move constructor More... | |
| DiscreteArray (const DiscreteArray &other) | |
| copy constructor More... | |
| DiscreteArray (int n, const T &value=T()) | |
| resize constructor More... | |
| DiscreteArray (iterator first, iterator last) | |
| copy constructor More... | |
| DiscreteArray (const_iterator first, const_iterator last) | |
| copy constructor More... | |
| virtual | ~DiscreteArray () |
| destructor More... | |
| void | swap (DiscreteArray &other) |
| swaps the content of two arrays More... | |
| DiscreteArray< T, Alloc > & | operator= (const DiscreteArray< T, Alloc > &rhs) |
| DiscreteArray< T, Alloc > | operator+ (const DiscreteArray< T, Alloc > &rhs) const |
| overload + operator in order to be able to directly sum up two arrays More... | |
| DiscreteArray< T, Alloc > | operator- (const DiscreteArray< T, Alloc > &rhs) const |
| overload - operator in order to be able to directly take the difference between two arrays More... | |
| DiscreteArray< T, Alloc > & | operator+= (const DiscreteArray< T, Alloc > &rhs) |
| overload += operator More... | |
| DiscreteArray< T, Alloc > & | operator-= (const DiscreteArray< T, Alloc > &rhs) |
| overload -= operator More... | |
| template<typename SCALAR > | |
| DiscreteArray< T, Alloc > | operator* (const SCALAR &scalar) const |
| overload * operator More... | |
| template<typename SCALAR > | |
| DiscreteArray< T, Alloc > | operator/ (const SCALAR &scalar) const |
| overload / operator More... | |
| Base & | toImplementation () |
| returns the underlying std::vector More... | |
| const Base & | toImplementation () const |
| returns the underlying std::vector More... | |
| void | eraseFront (const size_t N) |
| erase an element from the front More... | |
| void | setConstant (const T &data) |
| sets all elements to a constant. More... | |
| void | addOffset (const T &offset) |
| add an offset to each element More... | |
Public Attributes | |
| EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef T | value_type |
| data type More... | |
An discrete array (vector) of a particular data type.
This class is a discrete array/vector/sequence of data of a particular type.
| T | data type |
| Alloc | memory allocator type |
| typedef std::vector<T, Alloc> ct::core::DiscreteArray< T, Alloc >::Base |
base class (std::vector)
| typedef std::vector<T, Alloc>::iterator ct::core::DiscreteArray< T, Alloc >::iterator |
iterator
| typedef std::vector<T, Alloc>::const_iterator ct::core::DiscreteArray< T, Alloc >::const_iterator |
const iterator
|
inline |
default constructor
|
inline |
move constructor
|
inline |
copy constructor
|
inline |
resize constructor
initializes an array with a certain length and fills it with a default value
| n | length of array |
| value | default value |
|
inline |
copy constructor
Copies a segment of another array
| first | iterator to first element |
| last | iterator to last element |
|
inline |
copy constructor
Copies a segment of another array
| first | iterator to first element |
| last | iterator to last element |
|
inlinevirtual |
destructor
|
inline |
swaps the content of two arrays
| other | reference to the other arrayassignment operator |
Referenced by ct::core::Integrator< STATE_DIM, SCALAR >::integrate_times(), ct::core::LinearFunctionMIMO< STATE_DIM, CONTROL_DIM, SCALAR >::swap(), and ct::core::GeneralLinearFunction< STATE_DIM, DIM1, DIM2, SCALAR >::swap().
|
inline |
|
inline |
overload + operator in order to be able to directly sum up two arrays
create result container of correct size
|
inline |
overload - operator in order to be able to directly take the difference between two arrays
create result container of correct size
|
inline |
overload += operator
|
inline |
overload -= operator
|
inline |
overload * operator
create result container of correct size
|
inline |
overload / operator
create result container of correct size
|
inline |
returns the underlying std::vector
|
inline |
returns the underlying std::vector
|
inline |
erase an element from the front
|
inline |
sets all elements to a constant.
|
inline |
add an offset to each element
| EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef T ct::core::DiscreteArray< T, Alloc >::value_type |
data type