Rosetta  2020.37
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
utility::graph::NegSpaceElement< T > Class Template Reference

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)
 
NegSpaceElementnext () const
 
Tarray () const
 
bool allocated () const
 
NegSpaceElementpop ()
 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

NegSpaceElementnext_
 
Tarray_
 
bool allocated_
 

Detailed Description

template<class T>
class utility::graph::NegSpaceElement< T >

NegSpaceElement represents a single element in the singly-linked list of negative space in an array pool.

Constructor & Destructor Documentation

template<class T>
utility::graph::NegSpaceElement< T >::NegSpaceElement ( )
inline
template<class T>
utility::graph::NegSpaceElement< T >::NegSpaceElement ( NegSpaceElement< T > *  next,
T array 
)
inline

Member Function Documentation

template<class T>
bool utility::graph::NegSpaceElement< T >::allocated ( ) const
inline
template<class T>
T* utility::graph::NegSpaceElement< T >::array ( ) const
inline
template<class T>
void utility::graph::NegSpaceElement< T >::insert_after ( NegSpaceElement< T > *  element)
inline

Add an element to negative space by inserting it behind this element.

References utility::graph::NegSpaceElement< T >::next_.

template<class T>
NegSpaceElement* utility::graph::NegSpaceElement< T >::next ( ) const
inline
template<class T>
NegSpaceElement* utility::graph::NegSpaceElement< T >::pop ( )
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_.

template<class T>
void utility::graph::NegSpaceElement< T >::set_allocated ( bool  setting)
inline
template<class T>
void utility::graph::NegSpaceElement< T >::set_array ( T array)
inline
template<class T>
void utility::graph::NegSpaceElement< T >::set_next ( NegSpaceElement< T > *  next)
inline

Member Data Documentation

template<class T>
bool utility::graph::NegSpaceElement< T >::allocated_
private
template<class T>
T* utility::graph::NegSpaceElement< T >::array_
private
template<class T>
NegSpaceElement* utility::graph::NegSpaceElement< T >::next_
private

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