OpenBarnyard
 
Loading...
Searching...
No Matches
T2GenericSList::Node Class Reference

#include <T2SList.h>

Inheritance diagram for T2GenericSList::Node:
T2SList< T, Unknown >::Node T2SListNodeWrapper< T >

Public Member Functions

 Node ()
 
void Reset ()
 
NodeNext () const
 
TBOOL IsLinked () const
 
void InsertAfter (Node *a_pNode)
 

Friends

class T2GenericSList
 

Detailed Description

Definition at line 9 of file T2SList.h.

Constructor & Destructor Documentation

◆ Node()

T2GenericSList::Node::Node ( )
inline

Definition at line 15 of file T2SList.h.

16 {
17 Reset();
18 }

Member Function Documentation

◆ InsertAfter()

void T2GenericSList::Node::InsertAfter ( Node * a_pNode)
inline

Definition at line 35 of file T2SList.h.

36 {
37 TASSERT( !IsLinked() );
38 m_pNext = a_pNode->m_pNext;
39 a_pNode->m_pNext = this;
40 }
#define TASSERT(X,...)
Definition Defines.h:138
TBOOL IsLinked() const
Definition T2SList.h:30

◆ IsLinked()

TBOOL T2GenericSList::Node::IsLinked ( ) const
inline

Definition at line 30 of file T2SList.h.

31 {
32 return m_pNext != this;
33 }

◆ Next()

Node * T2GenericSList::Node::Next ( ) const
inline

Definition at line 25 of file T2SList.h.

26 {
27 return m_pNext;
28 }

◆ Reset()

void T2GenericSList::Node::Reset ( )
inline

Definition at line 20 of file T2SList.h.

21 {
22 m_pNext = this;
23 }

Friends And Related Symbol Documentation

◆ T2GenericSList

friend class T2GenericSList
friend

Definition at line 12 of file T2SList.h.


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