|
state-observation 1.8.0
General implementation of observers.
|
This class describes a structure that enables to store array of objects with time indexation. More...
#include <definitions.hpp>
Protected Member Functions | |
| IndexedObjectArrayBase () | |
| Default constructor. | |
| IndexedObjectArrayBase (TimeIndex initTime) | |
| Construct a new IndexedObjectArrayT with a predifined size. | |
| virtual void | truncateAfter (TimeIndex timeIndex)=0 |
| removes all the elements with larger indexes than timeIndex | |
| virtual void | truncateBefore (TimeIndex timeIndex)=0 |
| removes all the elements with smaller indexes than timeIndex | |
| virtual TimeIndex | getLastIndex () const =0 |
| Get the time index. | |
| virtual TimeIndex | getNextIndex () const =0 |
| virtual TimeIndex | setLastIndex (int index)=0 |
| Set the time index of the last element. | |
| virtual TimeIndex | getFirstIndex () const =0 |
| Get the time index. | |
| virtual TimeIndex | setFirstIndex (int index)=0 |
| set the time index of the first element | |
| virtual TimeSize | size () const =0 |
| virtual void | reset ()=0 |
| virtual void | clear ()=0 |
| Clears the vector but keeps the last index. | |
| virtual bool | checkIndex (TimeIndex k) const =0 |
| checks whether the index is present in the array | |
| virtual void | check_ (TimeIndex time) const =0 |
| virtual void | check_ () const =0 |
| virtual void | checkNext_ (TimeIndex time) const =0 |
Protected Attributes | |
| TimeIndex | k_ |
This class describes a structure that enables to store array of objects with time indexation.
Base class that declares all the necessary functions without type specification.
Definition at line 526 of file definitions.hpp.
|
inlineprotected |
Default constructor.
Definition at line 530 of file definitions.hpp.
|
inlineprotected |
Construct a new IndexedObjectArrayT with a predifined size.
| size | is the size of the array |
| initTime | is the index of the initial time. It is zero by default |
Definition at line 536 of file definitions.hpp.
|
inlineprotectedvirtual |
Definition at line 538 of file definitions.hpp.
|
protectedpure virtual |
removes all the elements with larger indexes than timeIndex
Implemented in stateObservation::IndexedInputArrayInterface, stateObservation::IndexedInputArrayT< InputType, Allocator >, stateObservation::IndexedInputArrayT< VectorInput >, stateObservation::IndexedObjectArrayT< ObjectType, Allocator >, and stateObservation::IndexedObjectArrayT< Matrix, std::allocator< Matrix > >.
|
protectedpure virtual |
removes all the elements with smaller indexes than timeIndex
Implemented in stateObservation::IndexedInputArrayInterface, stateObservation::IndexedInputArrayT< InputType, Allocator >, stateObservation::IndexedInputArrayT< VectorInput >, stateObservation::IndexedObjectArrayT< ObjectType, Allocator >, and stateObservation::IndexedObjectArrayT< Matrix, std::allocator< Matrix > >.
|
protectedpure virtual |
Get the time index.
Implemented in stateObservation::IndexedInputArrayInterface, stateObservation::IndexedInputArrayT< InputType, Allocator >, stateObservation::IndexedInputArrayT< VectorInput >, stateObservation::IndexedObjectArrayT< ObjectType, Allocator >, and stateObservation::IndexedObjectArrayT< Matrix, std::allocator< Matrix > >.
|
protectedpure virtual |
Get the time index of the next value that will be pushed back Can be used in for loops
Implemented in stateObservation::IndexedInputArrayInterface, stateObservation::IndexedInputArrayT< InputType, Allocator >, stateObservation::IndexedInputArrayT< VectorInput >, stateObservation::IndexedObjectArrayT< ObjectType, Allocator >, and stateObservation::IndexedObjectArrayT< Matrix, std::allocator< Matrix > >.
|
protectedpure virtual |
Set the time index of the last element.
Implemented in stateObservation::IndexedInputArrayInterface, stateObservation::IndexedInputArrayT< InputType, Allocator >, stateObservation::IndexedInputArrayT< VectorInput >, stateObservation::IndexedObjectArrayT< ObjectType, Allocator >, and stateObservation::IndexedObjectArrayT< Matrix, std::allocator< Matrix > >.
|
protectedpure virtual |
Get the time index.
Implemented in stateObservation::IndexedInputArrayInterface, stateObservation::IndexedInputArrayT< InputType, Allocator >, stateObservation::IndexedInputArrayT< VectorInput >, stateObservation::IndexedObjectArrayT< ObjectType, Allocator >, and stateObservation::IndexedObjectArrayT< Matrix, std::allocator< Matrix > >.
|
protectedpure virtual |
set the time index of the first element
Implemented in stateObservation::IndexedInputArrayInterface, stateObservation::IndexedInputArrayT< InputType, Allocator >, stateObservation::IndexedInputArrayT< VectorInput >, stateObservation::IndexedObjectArrayT< ObjectType, Allocator >, and stateObservation::IndexedObjectArrayT< Matrix, std::allocator< Matrix > >.
|
protectedpure virtual |
Resets the array to initial state the value is no longer accessible
Implemented in stateObservation::IndexedInputArrayInterface, stateObservation::IndexedInputArrayT< InputType, Allocator >, stateObservation::IndexedInputArrayT< VectorInput >, stateObservation::IndexedObjectArrayT< ObjectType, Allocator >, and stateObservation::IndexedObjectArrayT< Matrix, std::allocator< Matrix > >.
|
protectedpure virtual |
Clears the vector but keeps the last index.
Implemented in stateObservation::IndexedInputArrayInterface, stateObservation::IndexedInputArrayT< InputType, Allocator >, stateObservation::IndexedInputArrayT< VectorInput >, stateObservation::IndexedObjectArrayT< ObjectType, Allocator >, and stateObservation::IndexedObjectArrayT< Matrix, std::allocator< Matrix > >.
|
protectedpure virtual |
checks whether the index is present in the array
Implemented in stateObservation::IndexedInputArrayInterface, stateObservation::IndexedInputArrayT< InputType, Allocator >, stateObservation::IndexedInputArrayT< VectorInput >, stateObservation::IndexedObjectArrayT< ObjectType, Allocator >, and stateObservation::IndexedObjectArrayT< Matrix, std::allocator< Matrix > >.
|
protectedpure virtual |
Asserts that the index is present in the array does nothing in release mode
Implemented in stateObservation::IndexedInputArrayInterface, stateObservation::IndexedInputArrayT< InputType, Allocator >, stateObservation::IndexedInputArrayT< VectorInput >, stateObservation::IndexedObjectArrayT< ObjectType, Allocator >, and stateObservation::IndexedObjectArrayT< Matrix, std::allocator< Matrix > >.
|
protectedpure virtual |
Asserts that the array is not empty does nothing in release mode
Implemented in stateObservation::IndexedInputArrayInterface, stateObservation::IndexedInputArrayT< InputType, Allocator >, stateObservation::IndexedInputArrayT< VectorInput >, and stateObservation::IndexedObjectArrayT< ObjectType, Allocator >.
|
protectedpure virtual |
Asserts that the given time can be pushed at the back of the vector does nothing in release mode
Implemented in stateObservation::IndexedInputArrayInterface, stateObservation::IndexedInputArrayT< InputType, Allocator >, stateObservation::IndexedInputArrayT< VectorInput >, stateObservation::IndexedObjectArrayT< ObjectType, Allocator >, and stateObservation::IndexedObjectArrayT< Matrix, std::allocator< Matrix > >.
|
protected |
Definition at line 586 of file definitions.hpp.