|
state-observation 1.8.0
General implementation of observers.
|
Array of type-specified indexed input objects. Uses polymorphism to manage the list for any input type. More...
#include <definitions.hpp>
Public Member Functions | |
| IndexedInputArrayT () | |
| Default constructor. | |
| IndexedInputArrayT (TimeIndex initTime) | |
| Construct a new IndexedInputArrayT with a predifined size. | |
| void | truncateAfter (TimeIndex timeIndex) override |
| removes all the elements with larger indexes than timeIndex | |
| void | truncateBefore (TimeIndex timeIndex) override |
| removes all the elements with smaller indexes than timeIndex | |
| TimeIndex | getLastIndex () const override |
| Get the time index. | |
| TimeIndex | getNextIndex () const override |
| TimeIndex | setLastIndex (int index) override |
| Set the time index of the last element. | |
| TimeIndex | getFirstIndex () const override |
| Get the time index. | |
| TimeIndex | setFirstIndex (int index) override |
| set the time index of the first element | |
| TimeSize | size () const override |
| void | reset () override |
| void | clear () override |
| Clears the vector but keeps the last index. | |
| bool | checkIndex (TimeIndex k) const override |
| checks whether the index is present in the array | |
| void | setValue (const InputBase &value, TimeIndex k) override |
| void | pushBack (const InputBase &v) override |
| Pushes back the object to the array, the new value will take the next time. | |
| void | popFront () override |
| removes the first (oldest) element of the array | |
| const InputType & | operator[] (TimeIndex time) const override |
| gets a constant reference to the given time index | |
| InputType & | operator[] (TimeIndex index) override |
| gets the value with the given time index, non const version | |
| const InputType & | front () const override |
| gets the first value | |
| InputType & | front () override |
| gets the first value | |
| const InputType & | back () const override |
| gets the last value | |
| InputType & | back () override |
| gets the last value | |
| Public Member Functions inherited from stateObservation::IndexedInputArrayInterface | |
| IndexedInputArrayInterface () | |
| Default constructor. | |
| IndexedInputArrayInterface (TimeIndex initTime) | |
| Construct a new IndexedInputArrayInterface with a predifined size. | |
Protected Types | |
| typedef std::deque< InputType > | Deque |
Protected Member Functions | |
| void | check_ (TimeIndex time) const override |
| void | check_ () const override |
| void | checkNext_ (TimeIndex time) const override |
| Protected Member Functions inherited from stateObservation::IndexedObjectArrayBase | |
| IndexedObjectArrayBase () | |
| Default constructor. | |
| IndexedObjectArrayBase (TimeIndex initTime) | |
| Construct a new IndexedObjectArrayT with a predifined size. | |
Protected Attributes | |
| Deque | v_ |
| Protected Attributes inherited from stateObservation::IndexedObjectArrayBase | |
| TimeIndex | k_ |
Array of type-specified indexed input objects. Uses polymorphism to manage the list for any input type.
Uses polymorphism to manage the list for any input type.
Definition at line 824 of file definitions.hpp.
|
protected |
Definition at line 913 of file definitions.hpp.
| stateObservation::IndexedInputArrayT< InputType, Allocator >::IndexedInputArrayT | ( | TimeIndex | initTime | ) |
Construct a new IndexedInputArrayT with a predifined size.
| size | is the size of the array |
| initTime | is the index of the initial time. It is zero by default |
|
overridevirtual |
removes all the elements with larger indexes than timeIndex
Implements stateObservation::IndexedInputArrayInterface.
|
overridevirtual |
removes all the elements with smaller indexes than timeIndex
Implements stateObservation::IndexedInputArrayInterface.
|
inlineoverridevirtual |
Get the time index.
Implements stateObservation::IndexedInputArrayInterface.
|
inlineoverridevirtual |
Get the time index of the next value that will be pushed back Can be used in for loops
Implements stateObservation::IndexedInputArrayInterface.
|
inlineoverridevirtual |
Set the time index of the last element.
Implements stateObservation::IndexedInputArrayInterface.
|
inlineoverridevirtual |
Get the time index.
Implements stateObservation::IndexedInputArrayInterface.
|
inlineoverridevirtual |
set the time index of the first element
Implements stateObservation::IndexedInputArrayInterface.
|
inlineoverridevirtual |
Implements stateObservation::IndexedInputArrayInterface.
|
inlineoverridevirtual |
Resets the array to initial state the value is no longer accessible
Implements stateObservation::IndexedInputArrayInterface.
|
inlineoverridevirtual |
Clears the vector but keeps the last index.
Implements stateObservation::IndexedInputArrayInterface.
|
inlineoverridevirtual |
checks whether the index is present in the array
Implements stateObservation::IndexedInputArrayInterface.
|
inlineoverridevirtual |
Sets the value v at the time index k It can be used to push a value into the back of the array
Implements stateObservation::IndexedInputArrayInterface.
|
inlineoverridevirtual |
Pushes back the object to the array, the new value will take the next time.
Implements stateObservation::IndexedInputArrayInterface.
|
inlineoverridevirtual |
removes the first (oldest) element of the array
Implements stateObservation::IndexedInputArrayInterface.
|
inlineoverridevirtual |
gets a constant reference to the given time index
Implements stateObservation::IndexedInputArrayInterface.
|
inlineoverridevirtual |
gets the value with the given time index, non const version
Implements stateObservation::IndexedInputArrayInterface.
|
inlineoverridevirtual |
gets the first value
Implements stateObservation::IndexedInputArrayInterface.
|
inlineoverridevirtual |
gets the first value
Implements stateObservation::IndexedInputArrayInterface.
|
inlineoverridevirtual |
gets the last value
Implements stateObservation::IndexedInputArrayInterface.
|
inlineoverridevirtual |
gets the last value
Implements stateObservation::IndexedInputArrayInterface.
|
inlineoverrideprotectedvirtual |
Asserts that the index is present in the array does nothing in release mode
Implements stateObservation::IndexedInputArrayInterface.
|
inlineoverrideprotectedvirtual |
Asserts that the array is not empty does nothing in release mode
Implements stateObservation::IndexedInputArrayInterface.
|
inlineoverrideprotectedvirtual |
Asserts that the given time can be pushed at the back of the vector does nothing in release mode
Implements stateObservation::IndexedInputArrayInterface.
|
protected |
Definition at line 914 of file definitions.hpp.