Ocean
|
This class implements a base class for all accessors. More...
Public Member Functions | |
virtual | ~Accessor ()=default |
Default destructor. More... | |
virtual size_t | size () const =0 |
Returns the number of accessible elements of this accessor object. More... | |
bool | isEmpty () const |
Returns whether this accessor provides no elements. More... | |
Static Public Member Functions | |
template<typename TAccessor > | |
static std::vector< typename TAccessor::Type > | accessor2elements (const TAccessor &accessor) |
Returns all elements of a given accessor (as a block). More... | |
template<typename TAccessor > | |
static std::unordered_map< typename TAccessor::KeyType, typename TAccessor::Type > | accessor2map (const TAccessor &accessor) |
Returns all elements of a given accessor as a map with key and elements. More... | |
template<typename TAccessor , typename TIndex > | |
static std::vector< typename TAccessor::Type > | accessor2subsetElements (const TAccessor &accessor, const std::vector< TIndex > &subset) |
Returns a subset of all elements of a given accessor (as a block). More... | |
Protected Member Functions | |
Accessor ()=default | |
Protected default constructor. More... | |
Accessor (const Accessor &accessor)=default | |
Protected copy constructor. More... | |
Accessor & | operator= (const Accessor &accessor)=delete |
Deleted assign operator. More... | |
This class implements a base class for all accessors.
Accessors provide access to any kind of data elements which are stored in any kind of data structure by any kind of access method.
|
virtualdefault |
Default destructor.
|
protecteddefault |
Protected default constructor.
|
protecteddefault |
Protected copy constructor.
accessor | Accessor to copy |
|
static |
Returns all elements of a given accessor (as a block).
accessor | The accessor from which all elements are extracted |
|
static |
Returns all elements of a given accessor as a map with key and elements.
accessor | The accessor from which all elements are extracted |
|
static |
Returns a subset of all elements of a given accessor (as a block).
accessor | The accessor from which all sub elements are extracted. |
subset | The individual indices of the subset's elements |
|
inline |
Returns whether this accessor provides no elements.
Deleted assign operator.
accessor | Accessor which would be assigned |
|
pure virtual |
Returns the number of accessible elements of this accessor object.
Implemented in Ocean::Tracking::Database::ConstPoseAccessorTopology< tThreadSafe >, Ocean::Tracking::Database::ConstPoseAccessorIds< tThreadSafe >, Ocean::Tracking::Database::ConstObjectPointAccessorIds< tThreadSafe >, Ocean::Tracking::Database::ConstImagePointAccessorTopology< tThreadSafe >, Ocean::Tracking::Database::ConstImagePointAccessorIds< tThreadSafe >, Ocean::ConstCallbackIndexedAccessor< T >, Ocean::ConstIndexedAccessorSubsetAccessor< T, TIndex >, Ocean::ConstArraySubsetAccessor< T, TIndex >, Ocean::NonconstMapAccessor< T, TKey >, Ocean::ConstMapAccessor< T, TKey >, Ocean::ConstElementAccessor< T >, Ocean::NonconstArrayAccessor< T >, Ocean::SharedPointerConstArrayAccessor< T >, and Ocean::ConstArrayAccessor< T >.