Template Struct Node

Template Parameter Order

  1. 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

inline T &GetDataRef()
inline const T *GetDataPtr() const

Get the Data Ptr object.

Returns:

T* pointer to the object that manages the node

inline T *GetDataPtr()

Friends

friend class IntrusiveList
inline friend void swap(Node &a, Node &b)