state-observation 1.8.0
General implementation of observers.
Loading...
Searching...
No Matches
stateObservation::IndexedObjectArrayBase Class Referenceabstract

This class describes a structure that enables to store array of objects with time indexation. More...

#include <definitions.hpp>

Inheritance diagram for stateObservation::IndexedObjectArrayBase:
[legend]

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_

Detailed Description

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.

Constructor & Destructor Documentation

◆ IndexedObjectArrayBase() [1/2]

stateObservation::IndexedObjectArrayBase::IndexedObjectArrayBase ( )
inlineprotected

Default constructor.

Definition at line 530 of file definitions.hpp.

◆ IndexedObjectArrayBase() [2/2]

stateObservation::IndexedObjectArrayBase::IndexedObjectArrayBase ( TimeIndex initTime)
inlineprotected

Construct a new IndexedObjectArrayT with a predifined size.

Parameters
sizeis the size of the array
initTimeis the index of the initial time. It is zero by default

Definition at line 536 of file definitions.hpp.

◆ ~IndexedObjectArrayBase()

virtual stateObservation::IndexedObjectArrayBase::~IndexedObjectArrayBase ( )
inlineprotectedvirtual

Definition at line 538 of file definitions.hpp.

Member Function Documentation

◆ truncateAfter()

virtual void stateObservation::IndexedObjectArrayBase::truncateAfter ( TimeIndex timeIndex)
protectedpure virtual

◆ truncateBefore()

virtual void stateObservation::IndexedObjectArrayBase::truncateBefore ( TimeIndex timeIndex)
protectedpure virtual

◆ getLastIndex()

◆ getNextIndex()

virtual TimeIndex stateObservation::IndexedObjectArrayBase::getNextIndex ( ) const
protectedpure virtual

◆ setLastIndex()

◆ getFirstIndex()

◆ setFirstIndex()

◆ reset()

◆ clear()

◆ checkIndex()

◆ check_() [1/2]

virtual void stateObservation::IndexedObjectArrayBase::check_ ( TimeIndex time) const
protectedpure virtual

◆ check_() [2/2]

virtual void stateObservation::IndexedObjectArrayBase::check_ ( ) const
protectedpure virtual

◆ checkNext_()

virtual void stateObservation::IndexedObjectArrayBase::checkNext_ ( TimeIndex time) const
protectedpure virtual

Member Data Documentation

◆ k_

TimeIndex stateObservation::IndexedObjectArrayBase::k_
protected

Definition at line 586 of file definitions.hpp.


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