frepple::Problem::List Class Reference
This auxilary class is used to maintain a list of problem models. More...
#include <model.h>
Public Member Functions | |
Problem::const_iterator | begin () const |
void | clear (Problem *=NULL) |
bool | empty () const |
Problem::const_iterator | end () const |
List () | |
void | pop (Problem *) |
Problem * | push (const MetaClass *, const Object *, Date, Date, double) |
Problem * | top () const |
Problem * | unlink (Problem *p) |
~List () |
Detailed Description
This auxilary class is used to maintain a list of problem models.
Constructor & Destructor Documentation
Member Function Documentation
Problem::const_iterator frepple::Problem::List::begin | ( | ) | const [inline] |
void frepple::Problem::List::clear | ( | Problem * | c = NULL | ) |
Empty the list.
If a problem is passed as argument, that problem and all problems following it in the list are deleted.
If no argument is passed, the complete list is erased.
Definition at line 556 of file problem.cpp.
bool frepple::Problem::List::empty | ( | ) | const [inline] |
Problem::const_iterator frepple::Problem::List::end | ( | ) | const [inline] |
void frepple::Problem::List::pop | ( | Problem * | p | ) |
Remove all problems from the list that appear AFTER the one passed as argument.
Definition at line 616 of file problem.cpp.
Problem * frepple::Problem::List::push | ( | const MetaClass * | m, |
const Object * | o, | ||
Date | st, | ||
Date | nd, | ||
double | w | ||
) |
Add a problem to the list.
Definition at line 583 of file problem.cpp.
Problem * frepple::Problem::List::top | ( | ) | const |
Get the last problem on the list.
Definition at line 643 of file problem.cpp.
The documentation for this class was generated from the following files:
Documentation generated for frePPLe by
