HeterogenousContinuousContainer< Base, UsePropagateConst > Class Template Reference

#include <RobotAPI/components/units/RobotUnit/util/HeterogenousContinuousContainer.h>

+ Inheritance diagram for HeterogenousContinuousContainer< Base, UsePropagateConst >:

Public Types

using ElementType
 

Public Member Functions

void clear ()
 
std::vector< ElementType > & elements ()
 
const std::vector< ElementType > & elements () const
 
std::size_t getElementCapacity () const
 
std::size_t getElementCount () const
 
std::size_t getRemainingElementCapacity () const
 
 HeterogenousContinuousContainer ()=default
 
 HeterogenousContinuousContainer (const HeterogenousContinuousContainer &other, bool compressElems=false)
 
 HeterogenousContinuousContainer (HeterogenousContinuousContainer &&)=default
 
HeterogenousContinuousContaineroperator= (const HeterogenousContinuousContainer &other)
 
HeterogenousContinuousContaineroperator= (HeterogenousContinuousContainer &&)=default
 
template<class Derived>
Base * pushBack (const Derived &d)
 
template<class Derived>
Base * pushBack (const Derived *d)
 
template<class Derived>
Base * pushBack (const PropagateConst< Derived * > &d)
 
void setElementCapacity (std::size_t cnt)
 
 ~HeterogenousContinuousContainer ()
 
- Public Member Functions inherited from HeterogenousContinuousContainerBase< Base >
void assignStorage (void *begin, void *end)
 
bool empty () const
 
std::size_t getRemainingStorageCapacity () const
 
std::size_t getStorageCapacity () const
 
std::size_t getUsedStorageCapacity () const
 
bool owning () const
 
void setStorageCapacity (std::size_t sz)
 

Additional Inherited Members

- Protected Member Functions inherited from HeterogenousContinuousContainerBase< Base >
void clear ()
 
template<class Derived>
Base * pushBack (const Derived *d)
 

Detailed Description

template<class Base, bool UsePropagateConst = true>
class armarx::HeterogenousContinuousContainer< Base, UsePropagateConst >

Definition at line 159 of file HeterogenousContinuousContainer.h.

Member Typedef Documentation

◆ ElementType

template<class Base, bool UsePropagateConst = true>
using ElementType
Initial value:
typename std::conditional<UsePropagateConst, PropagateConst<Base*>, Base*>::type

Definition at line 164 of file HeterogenousContinuousContainer.h.

Constructor & Destructor Documentation

◆ HeterogenousContinuousContainer() [1/3]

template<class Base, bool UsePropagateConst = true>
HeterogenousContinuousContainer ( )
default
+ Here is the caller graph for this function:

◆ HeterogenousContinuousContainer() [2/3]

template<class Base, bool UsePropagateConst = true>
HeterogenousContinuousContainer ( HeterogenousContinuousContainer< Base, UsePropagateConst > && )
default
+ Here is the call graph for this function:

◆ HeterogenousContinuousContainer() [3/3]

template<class Base, bool UsePropagateConst = true>
HeterogenousContinuousContainer ( const HeterogenousContinuousContainer< Base, UsePropagateConst > & other,
bool compressElems = false )
inline

Definition at line 170 of file HeterogenousContinuousContainer.h.

+ Here is the call graph for this function:

◆ ~HeterogenousContinuousContainer()

template<class Base, bool UsePropagateConst = true>
~HeterogenousContinuousContainer ( )
inline

Definition at line 198 of file HeterogenousContinuousContainer.h.

+ Here is the call graph for this function:

Member Function Documentation

◆ clear()

template<class Base, bool UsePropagateConst = true>
void clear ( )
inline

Definition at line 280 of file HeterogenousContinuousContainer.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ elements() [1/2]

template<class Base, bool UsePropagateConst = true>
std::vector< ElementType > & elements ( )
inline

Definition at line 268 of file HeterogenousContinuousContainer.h.

+ Here is the caller graph for this function:

◆ elements() [2/2]

template<class Base, bool UsePropagateConst = true>
const std::vector< ElementType > & elements ( ) const
inline

Definition at line 274 of file HeterogenousContinuousContainer.h.

◆ getElementCapacity()

template<class Base, bool UsePropagateConst = true>
std::size_t getElementCapacity ( ) const
inline

Definition at line 210 of file HeterogenousContinuousContainer.h.

+ Here is the caller graph for this function:

◆ getElementCount()

template<class Base, bool UsePropagateConst = true>
std::size_t getElementCount ( ) const
inline

Definition at line 204 of file HeterogenousContinuousContainer.h.

+ Here is the caller graph for this function:

◆ getRemainingElementCapacity()

template<class Base, bool UsePropagateConst = true>
std::size_t getRemainingElementCapacity ( ) const
inline

Definition at line 216 of file HeterogenousContinuousContainer.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=() [1/2]

template<class Base, bool UsePropagateConst = true>
HeterogenousContinuousContainer & operator= ( const HeterogenousContinuousContainer< Base, UsePropagateConst > & other)
inline

Definition at line 186 of file HeterogenousContinuousContainer.h.

+ Here is the call graph for this function:

◆ operator=() [2/2]

template<class Base, bool UsePropagateConst = true>
HeterogenousContinuousContainer & operator= ( HeterogenousContinuousContainer< Base, UsePropagateConst > && )
default
+ Here is the call graph for this function:

◆ pushBack() [1/3]

template<class Base, bool UsePropagateConst = true>
template<class Derived>
Base * pushBack ( const Derived & d)
inline

Definition at line 262 of file HeterogenousContinuousContainer.h.

+ Here is the call graph for this function:

◆ pushBack() [2/3]

template<class Base, bool UsePropagateConst = true>
template<class Derived>
Base * pushBack ( const Derived * d)
inline

Definition at line 235 of file HeterogenousContinuousContainer.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pushBack() [3/3]

template<class Base, bool UsePropagateConst = true>
template<class Derived>
Base * pushBack ( const PropagateConst< Derived * > & d)
inline

Definition at line 255 of file HeterogenousContinuousContainer.h.

+ Here is the call graph for this function:

◆ setElementCapacity()

template<class Base, bool UsePropagateConst = true>
void setElementCapacity ( std::size_t cnt)
inline

Definition at line 222 of file HeterogenousContinuousContainer.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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