HeterogenousContinuous2DContainer< Base, UsePropagateConst > Class Template Reference

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

+ Inheritance diagram for HeterogenousContinuous2DContainer< Base, UsePropagateConst >:

Public Types

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

Public Member Functions

void clear ()
 
std::vector< std::vector< ElementType > > & elements ()
 
const std::vector< std::vector< ElementType > > & elements () const
 
std::size_t getElementCapacity (std::size_t d0) const
 
std::size_t getElementCount (std::size_t d0) const
 
std::size_t getRemainingElementCapacity (std::size_t d0) const
 
 HeterogenousContinuous2DContainer ()=default
 
 HeterogenousContinuous2DContainer (const HeterogenousContinuous2DContainer &other, bool compressElems=false)
 
 HeterogenousContinuous2DContainer (HeterogenousContinuous2DContainer &&)=default
 
HeterogenousContinuous2DContaineroperator= (const HeterogenousContinuous2DContainer &other)
 
HeterogenousContinuous2DContaineroperator= (HeterogenousContinuous2DContainer &&)=default
 
template<class Derived >
Base * pushBack (std::size_t d0, const Derived &d)
 
template<class Derived >
Base * pushBack (std::size_t d0, const Derived *d)
 
template<class Derived >
Base * pushBack (std::size_t d0, const PropagateConst< Derived * > &d)
 
void setElementCapacity (const std::vector< std::size_t > &cnt)
 
 ~HeterogenousContinuous2DContainer ()
 
- 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::HeterogenousContinuous2DContainer< Base, UsePropagateConst >

Definition at line 295 of file HeterogenousContinuousContainer.h.

Member Typedef Documentation

◆ ElementType

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

Definition at line 302 of file HeterogenousContinuousContainer.h.

Constructor & Destructor Documentation

◆ HeterogenousContinuous2DContainer() [1/3]

◆ HeterogenousContinuous2DContainer() [2/3]

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

◆ HeterogenousContinuous2DContainer() [3/3]

HeterogenousContinuous2DContainer ( const HeterogenousContinuous2DContainer< Base, UsePropagateConst > &  other,
bool  compressElems = false 
)
inline

Definition at line 307 of file HeterogenousContinuousContainer.h.

+ Here is the call graph for this function:

◆ ~HeterogenousContinuous2DContainer()

Definition at line 352 of file HeterogenousContinuousContainer.h.

+ Here is the call graph for this function:

Member Function Documentation

◆ clear()

void clear ( )
inline

Definition at line 438 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<std::vector<ElementType> >& elements ( )
inline

Definition at line 426 of file HeterogenousContinuousContainer.h.

+ Here is the caller graph for this function:

◆ elements() [2/2]

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

Definition at line 432 of file HeterogenousContinuousContainer.h.

◆ getElementCapacity()

std::size_t getElementCapacity ( std::size_t  d0) const
inline

Definition at line 364 of file HeterogenousContinuousContainer.h.

+ Here is the caller graph for this function:

◆ getElementCount()

std::size_t getElementCount ( std::size_t  d0) const
inline

Definition at line 358 of file HeterogenousContinuousContainer.h.

+ Here is the caller graph for this function:

◆ getRemainingElementCapacity()

std::size_t getRemainingElementCapacity ( std::size_t  d0) const
inline

Definition at line 370 of file HeterogenousContinuousContainer.h.

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

◆ operator=() [1/2]

HeterogenousContinuous2DContainer& operator= ( const HeterogenousContinuous2DContainer< Base, UsePropagateConst > &  other)
inline

Definition at line 331 of file HeterogenousContinuousContainer.h.

+ Here is the call graph for this function:

◆ operator=() [2/2]

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

◆ pushBack() [1/3]

Base* pushBack ( std::size_t  d0,
const Derived &  d 
)
inline

Definition at line 420 of file HeterogenousContinuousContainer.h.

+ Here is the call graph for this function:

◆ pushBack() [2/3]

Base* pushBack ( std::size_t  d0,
const Derived *  d 
)
inline

Definition at line 393 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 ( std::size_t  d0,
const PropagateConst< Derived * > &  d 
)
inline

Definition at line 413 of file HeterogenousContinuousContainer.h.

+ Here is the call graph for this function:

◆ setElementCapacity()

void setElementCapacity ( const std::vector< std::size_t > &  cnt)
inline

Definition at line 376 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: