Template Struct Node
Defined in File intrusive_list.h
Template Parameter Order
typename T
Struct Documentation
-
template<typename T>
struct Node Node struct to be added to every object that can appear in a IntrusiveList.
To be included in every object that the list can manage, see the IntrusiveList documentation for example usage
- Template Parameters:
T – Type of the object that manages the node
Public Functions
-
inline Node(T *const obj_ptr)
Construct a new Node object.
- Parameters:
obj_ptr – Pointer to the object that the node links to, can be initialized with
this
in most use cases (when initialized in a class)
-
inline const T &GetDataRef() const
Get a reference to the object that manages the node.
- Returns:
T& refrence to the object that manages the node