58 template <
typename T >
60 GUM_CONSTRUCTOR(
Link);
64 template <
typename T >
67 GUM_CONSTRUCTOR(
Link);
71 template <
typename T >
76 template <
typename T >
81 template <
typename T >
86 template <
typename T >
91 template <
typename T >
96 template <
typename T >
101 template <
typename T >
106 template <
typename T >
112 template <
typename T >
115 _firstLink_ =
nullptr;
119 template <
typename T >
125 template <
typename T >
130 template <
typename T >
135 template <
typename T >
140 template <
typename T >
145 template <
typename T >
156 template <
typename T >
162 template <
typename T >
166 while (curLink && curLink->
element() != elem) {
Link of a chain list allocated using the SmallObjectAllocator.
Link(const T &elem)
Constructor.
const Link< T > * nextLink() const
Returns next link.
Link< T > * _nextLink_
The next link in the list.
const T & element() const
Returns the element stored in this link.
T _element_
The element embedded in this link.
void setNextLink(Link< T > *newLink)
Sets the next link.
Chain list allocated using the SmallObjectAllocator.
void searchAndRemoveLink(const T &elem)
Removes a element from the list.
void clear()
Clears the list.
const Link< T > * list() const
Returns the first link in the chained list.
Link< T > * _firstLink_
The first link of our list.
void addLink(const T &elem)
Adds a link.
static SmallObjectAllocator & instance()
void * allocate(const size_t &objectSize)
Allocates a block.
void deallocate(void *pDeallocatedObject, const size_t &objectSize)
Deallocates an object.
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Headers of the Link and LinkedList classes.
gum is the global namespace for all aGrUM entities