ScummVM API documentation
Bagel::CLList Class Reference

#include <llist.h>

Inheritance diagram for Bagel::CLList:
Bagel::CBofSound Bagel::CBofSprite Bagel::CBofTimer Bagel::CBofTimerPacket Bagel::CBofWindow Bagel::CCache Bagel::COption Bagel::CResString

Public Member Functions

 CLList ()
 
 CLList (void *pObj)
 
virtual ~CLList ()
 
void Insert (CLList *pNewList)
 
void Delete ()
 
void addToHead (CLList *pNewList)
 
void addToTail (CLList *pNewList)
 
void MoveToHead ()
 
void MoveToTail ()
 
void MoveLeft ()
 
void MoveRight ()
 
CLListgetHead ()
 
CLListgetTail ()
 
CLListgetPrev () const
 
CLListgetNext () const
 
void * getData () const
 
void PutData (void *pObj)
 
void FlushList ()
 

Protected Attributes

CLList_pPrev
 
CLList_pNext
 
void * _pData
 

Detailed Description

Linked list class

Constructor & Destructor Documentation

◆ CLList() [1/2]

Bagel::CLList::CLList ( )

Default constructor

◆ CLList() [2/2]

Bagel::CLList::CLList ( void *  pObj)

Alternate constructor that initializes with specified data

◆ ~CLList()

virtual Bagel::CLList::~CLList ( )
virtual

Destructor

Member Function Documentation

◆ Insert()

void Bagel::CLList::Insert ( CLList pNewList)

Links specified node to current list after current node

Remarks
This will link a new list into the current right after the current node
Parameters
pNewListPointer to list to be inserted

◆ Delete()

void Bagel::CLList::Delete ( )

Deletes current node

◆ addToHead()

void Bagel::CLList::addToHead ( CLList pNewList)

Links specified node to head of list

Remarks
This can be used to link 2 lists together by Linking the tail of one list to the head of another
Parameters
pNewListNew list to link to head of current list

◆ addToTail()

void Bagel::CLList::addToTail ( CLList pNewList)

Links specified node to tail of current list

Remarks
This can be used to link 2 lists together by Linking the head of one list to the tail of another
Parameters
pNewListPointer to new list

◆ MoveToHead()

void Bagel::CLList::MoveToHead ( )

Moves this item to the head of the linked list

◆ MoveToTail()

void Bagel::CLList::MoveToTail ( )

Moves this item to the tail of the linked list

◆ MoveLeft()

void Bagel::CLList::MoveLeft ( )

Moves this item 1 item to the left

◆ MoveRight()

void Bagel::CLList::MoveRight ( )

Moves this item 1 item to the right

◆ getHead()

CLList* Bagel::CLList::getHead ( )

Returns head of current list

Returns
Pointer to head of list

◆ getTail()

CLList* Bagel::CLList::getTail ( )

Returns tail of current list

Returns
Pointer to tail of list

◆ FlushList()

void Bagel::CLList::FlushList ( )

Flushes entire list


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