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 () | |
This auxilary class is used to maintain a list of problem models.
|
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 549 of file problem.cpp.
|
inline |
|
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 609 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 576 of file problem.cpp.
Problem * frepple::Problem::List::top | ( | ) | const |
Get the last problem on the list.
Definition at line 636 of file problem.cpp.