PUMA Library Reference Manual
Puma::PrePredicate Class Reference

#include <PrePredicate.h>

+ Inheritance diagram for Puma::PrePredicate:

Public Member Functions

 PrePredicate (const char *name, const char *answer)
 
virtual ~PrePredicate ()
 
void addAnswer (const char *answer)
 
void removeAnswer (const char *answer)
 
bool isAnswer (const char *answer) const
 
char * getName () const
 
int numAnswers () const
 
- Public Member Functions inherited from Puma::List
 List ()
 Constructor. More...
 
 List (const List &copy)
 Copy-constructor. More...
 
 ~List ()
 Destructor. More...
 
Listoperator= (const List &copy)
 Assignment operator. More...
 
Listoperator+= (const List &list)
 Append the given list. More...
 
List operator+ (const List &list)
 Create a new list containing the elements of this list followed by the elements of the given list. More...
 
void clear ()
 Destroy the list elements. More...
 
void append (ListElement &element)
 Append an element to the list. More...
 
void prepend (ListElement &element)
 Prepend an element to the list. More...
 
void insert (ListElement *at, ListElement &element)
 Insert an element at the given list position. More...
 
void remove (ListElement *element)
 Remove the given element from the list. More...
 
void kill (ListElement *from, ListElement *to=(ListElement *) 0)
 Remove and destroy all elements between the given list elements. More...
 
void cut (List &out, ListElement *from, ListElement *to=(ListElement *) 0)
 Cut all elements between the given list elements. More...
 
Listcopy (ListElement *from=(ListElement *) 0, ListElement *to=(ListElement *) 0)
 Copy all elements between the given list elements. More...
 
void paste (ListElement *at, const List &l)
 Insert copies of the elements of the given list at the given list position. More...
 
void paste_before (ListElement *at, const List &l)
 Insert copies of the elements of the given list before the given list position. More...
 
void move (ListElement *at, List &l)
 Insert the elements of the given list at the given list position. More...
 
void move_before (ListElement *at, List &l)
 Insert the elements of the given list before the given list position. More...
 
bool empty () const
 Check if the list is empty. More...
 
const ListElementfirst () const
 Get the first element in the list. More...
 
const ListElementlast () const
 Get the last element in the list. More...
 
const ListElementnext (const ListElement *element) const
 Get the next element of the given element. More...
 
const ListElementprev (const ListElement *element) const
 Get the previous element of the given element. More...
 

Constructor & Destructor Documentation

◆ PrePredicate()

Puma::PrePredicate::PrePredicate ( const char *  name,
const char *  answer 
)

◆ ~PrePredicate()

virtual Puma::PrePredicate::~PrePredicate ( )
virtual

Member Function Documentation

◆ addAnswer()

void Puma::PrePredicate::addAnswer ( const char *  answer)

◆ getName()

char* Puma::PrePredicate::getName ( ) const
inline

◆ isAnswer()

bool Puma::PrePredicate::isAnswer ( const char *  answer) const

◆ numAnswers()

int Puma::PrePredicate::numAnswers ( ) const
inline

◆ removeAnswer()

void Puma::PrePredicate::removeAnswer ( const char *  answer)