Gaia-ECS v1.0.0
A simple and powerful entity component system
Loading...
Searching...
No Matches
gaia::cnt::fwd_llist_link< T > Struct Template Reference

Intrusive links maintained for one forward-list node. More...

#include <fwd_llist.h>

Public Member Functions

GAIA_NODISCARD bool linked () const
 Returns true if the node is linked with another.
 

Public Attributes

Tnext = nullptr
 Pointer the the next element.
 
T ** prevs_next = nullptr
 Pointer to the memory address of the previous node's "next". This is not meant for traversal. It merely allows for maintaining the forward links of the list when removing an item, and allows O(1) removals even in a forward list.
 

Detailed Description

template<class T>
struct gaia::cnt::fwd_llist_link< T >

Intrusive links maintained for one forward-list node.

Template Parameters
TNode type.

Member Function Documentation

◆ linked()

template<class T >
GAIA_NODISCARD bool gaia::cnt::fwd_llist_link< T >::linked ( ) const
inline

Returns true if the node is linked with another.

Returns
True when this link participates in a list. False otherwise.

The documentation for this struct was generated from the following file: