PUMA Library Reference Manual
Loading...
Searching...
No Matches
Puma::RuleTable Class Reference

#include <RuleTable.h>

+ Inheritance diagram for Puma::RuleTable:

Public Member Functions

 ~RuleTable ()
 
void add (Token *, Token *=(Token *) 0)
 
Token * get (Token *)
 
- Public Member Functions inherited from Puma::List
 List ()
 Constructor.
 
 List (const List &copy)
 Copy-constructor.
 
 ~List ()
 Destructor.
 
List & operator= (const List &copy)
 Assignment operator.
 
List & operator+= (const List &list)
 Append the given list.
 
List operator+ (const List &list)
 Create a new list containing the elements of this list followed by the elements of the given list.
 
void clear ()
 Destroy the list elements.
 
void append (ListElement &element)
 Append an element to the list.
 
void prepend (ListElement &element)
 Prepend an element to the list.
 
void insert (ListElement *at, ListElement &element)
 Insert an element at the given list position.
 
void remove (ListElement *element)
 Remove the given element from the list.
 
void kill (ListElement *from, ListElement *to=(ListElement *) 0)
 Remove and destroy all elements between the given list elements.
 
void cut (List &out, ListElement *from, ListElement *to=(ListElement *) 0)
 Cut all elements between the given list elements.
 
List * copy (ListElement *from=(ListElement *) 0, ListElement *to=(ListElement *) 0)
 Copy all elements between the given list elements.
 
void paste (ListElement *at, const List &l)
 Insert copies of the elements of the given list at the given list position.
 
void paste_before (ListElement *at, const List &l)
 Insert copies of the elements of the given list before the given list position.
 
void move (ListElement *at, List &l)
 Insert the elements of the given list at the given list position.
 
void move_before (ListElement *at, List &l)
 Insert the elements of the given list before the given list position.
 
bool empty () const
 Check if the list is empty.
 
const ListElement * first () const
 Get the first element in the list.
 
const ListElement * last () const
 Get the last element in the list.
 
const ListElement * next (const ListElement *element) const
 Get the next element of the given element.
 
const ListElement * prev (const ListElement *element) const
 Get the previous element of the given element.
 

Constructor & Destructor Documentation

◆ ~RuleTable()

Puma::RuleTable::~RuleTable ( )
inline

Member Function Documentation

◆ add()

void Puma::RuleTable::add ( Token *  ,
Token *  = (Token *) 0 
)

◆ get()

Token * Puma::RuleTable::get ( Token *  )