MacroTable Class Reference

#include <MacroSpaceManager.hpp>

Public Member Functions

 MacroTable ()
 
void clear ()
 
MacroItemlocate (const char *name)
 
MacroItemremove (const char *name)
 
void reorder (MacroItem *current, MacroItem *previous)
 
void removeMacro (MacroItem *current, MacroItem *previous)
 
size_t macroCount ()
 
bool iterating ()
 
void startIteration ()
 
bool hasMore ()
 
MacroItemgetNext ()
 
void add (MacroItem *macro)
 
bool isEmpty ()
 

Protected Attributes

MacroItemmacros
 
MacroItemiterator
 

Detailed Description

Definition at line 66 of file MacroSpaceManager.hpp.

Constructor & Destructor Documentation

◆ MacroTable()

MacroTable::MacroTable ( )
inline

Definition at line 70 of file MacroSpaceManager.hpp.

References iterator, and macros.

Member Function Documentation

◆ add()

void MacroTable::add ( MacroItem macro)
inline

Definition at line 133 of file MacroSpaceManager.hpp.

References iterator, macros, and MacroItem::next.

Referenced by ServerMacroSpaceManager::addMacro().

◆ clear()

void MacroTable::clear ( )

Clear the macro table.

Definition at line 78 of file MacroSpaceManager.cpp.

References iterator, macros, and MacroItem::next.

Referenced by ServerMacroSpaceManager::clear().

◆ getNext()

MacroItem* MacroTable::getNext ( )
inline

◆ hasMore()

bool MacroTable::hasMore ( )
inline

Definition at line 120 of file MacroSpaceManager.hpp.

References iterator.

◆ isEmpty()

bool MacroTable::isEmpty ( )
inline

Definition at line 140 of file MacroSpaceManager.hpp.

References macros.

Referenced by ServerMacroSpaceManager::isStoppable().

◆ iterating()

bool MacroTable::iterating ( )
inline

Definition at line 118 of file MacroSpaceManager.hpp.

References iterator.

◆ locate()

MacroItem * MacroTable::locate ( const char *  name)

◆ macroCount()

size_t MacroTable::macroCount ( )
inline

Definition at line 106 of file MacroSpaceManager.hpp.

References macros, and MacroItem::next.

Referenced by ServerMacroSpaceManager::iterateMacros().

◆ remove()

MacroItem * MacroTable::remove ( const char *  name)

locate and remove a named macro space

Parameters
nameThe name of the target macro.
Returns
The removed table item, or NULL if this is not found.

Definition at line 126 of file MacroSpaceManager.cpp.

References iterator, macros, MacroItem::name, MacroItem::next, removeMacro(), and Utilities::strCaselessCompare().

Referenced by ServerMacroSpaceManager::deleteMacro().

◆ removeMacro()

void MacroTable::removeMacro ( MacroItem current,
MacroItem previous 
)
inline

Definition at line 93 of file MacroSpaceManager.hpp.

References macros, and MacroItem::next.

Referenced by remove().

◆ reorder()

void MacroTable::reorder ( MacroItem current,
MacroItem previous 
)
inline

Definition at line 82 of file MacroSpaceManager.hpp.

References macros, and MacroItem::next.

Referenced by locate().

◆ startIteration()

void MacroTable::startIteration ( )
inline

Definition at line 119 of file MacroSpaceManager.hpp.

References iterator, and macros.

Referenced by ServerMacroSpaceManager::iterateMacros().

Member Data Documentation

◆ iterator

MacroItem* MacroTable::iterator
protected

◆ macros

MacroItem* MacroTable::macros
protected

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