34 template <
typename T >
36 GUM_CONSTRUCTOR(
Link);
40 template <
typename T >
42 __element(elem), __nextLink(nextLink) {
43 GUM_CONSTRUCTOR(
Link);
47 template <
typename T >
52 template <
typename T >
54 return SmallObjectAllocator::instance().allocate(
Size(s));
57 template <
typename T >
59 SmallObjectAllocator::instance().deallocate(p,
sizeof(
Link< T >));
62 template <
typename T >
67 template <
typename T >
72 template <
typename T >
77 template <
typename T >
82 template <
typename T >
88 template <
typename T >
91 __firstLink =
nullptr;
95 template <
typename T >
101 template <
typename T >
103 return SmallObjectAllocator::instance().allocate(
Size(s));
106 template <
typename T >
108 SmallObjectAllocator::instance().deallocate(p,
sizeof(
LinkedList< T >));
111 template <
typename T >
116 template <
typename T >
121 template <
typename T >
132 template <
typename T >
135 __firstLink = newLink;
138 template <
typename T >
142 while (curLink && curLink->
element() != elem) {
gum is the global namespace for all aGrUM entities
const T & element() const
Returns the element stored in this link.
Link(const T &elem)
Constructor.
void setNextLink(Link< T > *newLink)
Sets the next link.
Link of a chain list allocated using the SmallObjectAllocator.
Chain list allocated using the SmallObjectAllocator.
Headers of the Link and LinkedList classes.
std::size_t Size
In aGrUM, hashed values are unsigned long int.
const Link< T > * nextLink() const
Returns next link.