HeterogenousContinuous2DContainer< Base, UsePropagateConst > Class Template Reference

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

+ Inheritance diagram for HeterogenousContinuous2DContainer< Base, UsePropagateConst >:

Public Types

using ElementType
 

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
 
HeterogenousContinuous2DContainer & operator= (const HeterogenousContinuous2DContainer &other)
 
HeterogenousContinuous2DContainer & operator= (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)
 

Member Typedef Documentation

◆ ElementType

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

Constructor & Destructor Documentation

◆ HeterogenousContinuous2DContainer() [1/3]

template<class Base, bool UsePropagateConst = true>
HeterogenousContinuous2DContainer ( )
default

◆ HeterogenousContinuous2DContainer() [2/3]

template<class Base, bool UsePropagateConst = true>
HeterogenousContinuous2DContainer ( HeterogenousContinuous2DContainer< Base, UsePropagateConst > && )
default

◆ HeterogenousContinuous2DContainer() [3/3]

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

◆ ~HeterogenousContinuous2DContainer()

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

Member Function Documentation

◆ clear()

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

◆ elements() [1/2]

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

◆ elements() [2/2]

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

◆ getElementCapacity()

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

◆ getElementCount()

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

◆ getRemainingElementCapacity()

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

◆ operator=() [1/2]

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

◆ operator=() [2/2]

template<class Base, bool UsePropagateConst = true>
HeterogenousContinuous2DContainer & operator= ( HeterogenousContinuous2DContainer< Base, UsePropagateConst > && )
default

◆ pushBack() [1/3]

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

◆ pushBack() [2/3]

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

◆ pushBack() [3/3]

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

◆ setElementCapacity()

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

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