HeterogenousContinuousContainer< Base, UsePropagateConst > Class Template Reference

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

+ Inheritance diagram for HeterogenousContinuousContainer< Base, UsePropagateConst >:

Public Types

using ElementType = typename std::conditional< UsePropagateConst, PropagateConst< Base * >, Base * >::type
 

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

using ElementType = typename std::conditional<UsePropagateConst, PropagateConst<Base*>, Base*>::type

Definition at line 165 of file HeterogenousContinuousContainer.h.

Constructor & Destructor Documentation

◆ HeterogenousContinuousContainer() [1/3]

◆ HeterogenousContinuousContainer() [2/3]

HeterogenousContinuousContainer ( HeterogenousContinuousContainer< Base, UsePropagateConst > &&  )
default

◆ HeterogenousContinuousContainer() [3/3]

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()

Definition at line 198 of file HeterogenousContinuousContainer.h.

+ Here is the call graph for this function:

Member Function Documentation

◆ clear()

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]

std::vector<ElementType>& elements ( )
inline

Definition at line 268 of file HeterogenousContinuousContainer.h.

+ Here is the caller graph for this function:

◆ elements() [2/2]

const std::vector<ElementType>& elements ( ) const
inline

Definition at line 274 of file HeterogenousContinuousContainer.h.

◆ getElementCapacity()

std::size_t getElementCapacity ( ) const
inline

Definition at line 210 of file HeterogenousContinuousContainer.h.

+ Here is the caller graph for this function:

◆ getElementCount()

std::size_t getElementCount ( ) const
inline

Definition at line 204 of file HeterogenousContinuousContainer.h.

+ Here is the caller graph for this function:

◆ getRemainingElementCapacity()

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]

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]

HeterogenousContinuousContainer& operator= ( HeterogenousContinuousContainer< Base, UsePropagateConst > &&  )
default

◆ pushBack() [1/3]

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]

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]

Base* pushBack ( const PropagateConst< Derived * > &  d)
inline

Definition at line 255 of file HeterogenousContinuousContainer.h.

+ Here is the call graph for this function:

◆ setElementCapacity()

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: