iceoryx_doc  1.0.1
Classes | Public Types | Public Member Functions | Static Public Attributes | List of all members
iox::cxx::ObjectPool< T, CAPACITY > Class Template Reference

Classes

class  Iterator
 

Public Types

using Index_t = int
 

Public Member Functions

Iterator begin ()
 
Iterator end ()
 
Index_t reserve ()
 
Index_t construct ()
 
template<typename... Args>
Index_t construct (Args &&... args)
 
Index_t add (const T &element)
 
void remove (Index_t index, bool destruct=false)
 
T & operator[] (Index_t index)
 
Iterator iterator (Index_t index)
 
size_t size () const
 
size_t capacity () const
 
T * allocate ()
 
T * create ()
 
template<typename... Args>
T * create (Args &&... args)
 
void free (T *ptr, bool destruct)
 
void free (T *ptr)
 
T * insert (const T &element)
 
T * get (Index_t index)
 
T * get (T *ptr)
 
Iterator iterator (T *ptr)
 
Index_t pointerToIndex (T *ptr)
 
T * indexToPointer (Index_t index)
 

Static Public Attributes

static constexpr int NO_INDEX = -1
 

Member Function Documentation

◆ pointerToIndex()

template<typename T , int CAPACITY = 1>
Index_t iox::cxx::ObjectPool< T, CAPACITY >::pointerToIndex ( T *  ptr)
inline

todo: not critical, but refactor for pointer arithmetic later


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