CORGI
An open source project by FPL.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Groups Pages
corgi::VectorPool< T >::VectorPoolElement Struct Reference

A struct representing an element inside of a VectorPool. More...

#include <vector_pool.h>

Detailed Description

template<typename T>
struct corgi::VectorPool< T >::VectorPoolElement

A struct representing an element inside of a VectorPool.

Public Member Functions

 VectorPoolElement ()
 The default constructor for an empty VectorPoolElement.
 
VectorPoolElementoperator= (VectorPoolElement &&src)
 The standard operator to move a referenced VectorPoolElement into this VectorPoolElement. More...
 
 VectorPoolElement (VectorPoolElement &&src)
 A copy constructor to create a VectorPoolElement from an existing VectorPoolElement. More...
 

Public Attributes

data
 Holds the data within a VectorPoolElement.
 
size_t next
 The index of the next element in the vector.
 
size_t prev
 The index of the previous element in the vector.
 
UniqueIdType unique_id
 The unique ID of this VectorPoolElement.
 

Constructor & Destructor Documentation

template<typename T>
corgi::VectorPool< T >::VectorPoolElement::VectorPoolElement ( VectorPoolElement &&  src)
inline

A copy constructor to create a VectorPoolElement from an existing VectorPoolElement.

Parameters
[in]srcAn existing VectorPoolElement to copy into this VectorPoolElement.

Member Function Documentation

template<typename T>
VectorPoolElement& corgi::VectorPool< T >::VectorPoolElement::operator= ( VectorPoolElement &&  src)
inline

The standard operator to move a referenced VectorPoolElement into this VectorPoolElement.

Parameters
[in]srcA referenced VectorPoolElement to move into this VectorPoolElement.

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