frepple::Problem::List Class Reference

This auxilary class is used to maintain a list of problem models. More...

#include <model.h>

List of all members.

Public Member Functions

Problem::const_iterator begin () const
void clear (Problem *=NULL)
bool empty () const
Problem::const_iterator end () const
 List ()
void pop (Problem *)
Problempush (const MetaClass *, const Object *, Date, Date, double)
Problemtop () const
Problemunlink (Problem *p)
 ~List ()

Detailed Description

This auxilary class is used to maintain a list of problem models.

Definition at line 1057 of file model.h.


Constructor & Destructor Documentation

frepple::Problem::List::List ( ) [inline]

Constructor.

Definition at line 1061 of file model.h.

frepple::Problem::List::~List ( ) [inline]

Destructor.

Definition at line 1064 of file model.h.


Member Function Documentation

Problem::const_iterator frepple::Problem::List::begin ( ) const [inline]

Return an iterator to the start of the list.

Retrieve an iterator for the list.

Definition at line 5597 of file model.h.

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]

Returns true if the list is empty.

Definition at line 1093 of file model.h.

Problem::const_iterator frepple::Problem::List::end ( ) const [inline]

End iterator.

Stop iterator.

Definition at line 5602 of file model.h.

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.

Problem* frepple::Problem::List::unlink ( Problem p) [inline]

Cur the list in two parts .

Definition at line 1085 of file model.h.


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

Documentation generated for frePPLe by  doxygen