Rosetta
|
NegSpaceElement represents a single element in the singly-linked list of negative space in an array pool. More...
#include <ArrayPool.hh>
Public Member Functions | |
NegSpaceElement () | |
NegSpaceElement (NegSpaceElement *next, T *array) | |
void | set_next (NegSpaceElement *next) |
void | set_array (T *array) |
void | set_allocated (bool setting) |
NegSpaceElement * | next () const |
T * | array () const |
bool | allocated () const |
NegSpaceElement * | pop () |
Remove my next element from negative space, and return a pointer to it. Maintain negative space integrity by pointing my next_ pointer at the next_ pointer of the removed element. More... | |
void | insert_after (NegSpaceElement *element) |
Add an element to negative space by inserting it behind this element. More... | |
Private Attributes | |
NegSpaceElement * | next_ |
T * | array_ |
bool | allocated_ |
NegSpaceElement represents a single element in the singly-linked list of negative space in an array pool.
|
inline |
|
inline |
|
inline |
References utility::graph::NegSpaceElement< T >::allocated_.
Referenced by utility::graph::ArrayPool< T >::deallocate_array().
|
inline |
References utility::graph::NegSpaceElement< T >::array_.
Referenced by utility::graph::NegSpaceElement< T >::set_array().
|
inline |
Add an element to negative space by inserting it behind this element.
References utility::graph::NegSpaceElement< T >::next_.
|
inline |
References utility::graph::NegSpaceElement< T >::next_.
Referenced by utility::graph::NegSpaceElement< T >::set_next().
|
inline |
Remove my next element from negative space, and return a pointer to it. Maintain negative space integrity by pointing my next_ pointer at the next_ pointer of the removed element.
References utility::graph::NegSpaceElement< T >::next_.
|
inline |
References utility::graph::NegSpaceElement< T >::allocated_.
Referenced by utility::graph::ArrayPool< T >::deallocate_array().
|
inline |
|
inline |
|
private |
|
private |
|
private |