IterationPack: General framework for building iterative algorithms
Version of the Day
|
This class acts a composite container for other AlgorithmTracker
objects.
More...
#include <IterationPack_AlgorithmTrackerComposite.hpp>
Public Types | |
typedef Teuchos::RCP < AlgorithmTracker > | track_ptr_t |
typedef std::list< track_ptr_t > | track_list_t |
Public Types inherited from IterationPack::AlgorithmTracker | |
typedef Teuchos::RCP < std::ostream > | ostream_ptr_t |
Public Member Functions | |
AlgorithmTrackerComposite (const ostream_ptr_t &journal_out) | |
track_list_t & | tracks () |
Give access to the list of AlgorithmTracker object pointers. More... | |
const track_list_t & | tracks () const |
Public Member Functions inherited from IterationPack::AlgorithmTracker | |
virtual | ~AlgorithmTracker () |
AlgorithmTracker (const ostream_ptr_t &journal_out) | |
Construct with an output stream for journal_out. More... | |
virtual void | set_journal_out (const ostream_ptr_t &journal_out) |
Set a smart pointer to the journal file. More... | |
const ostream_ptr_t & | get_journal_out () const |
Get the smart pointer to the journal file. More... | |
virtual std::ostream & | journal_out () const |
Return a reference to a std::ostream to be used to output debug information and the like. More... | |
Overridden from AlgorithmTracker | |
void | initialize () |
void | output_iteration (const Algorithm &algo) const |
void | output_final (const Algorithm &algo, EAlgoReturn algo_return) const |
This class acts a composite container for other AlgorithmTracker
objects.
This class exposes a std::list<AlgorithmTracker*>
object and lets the client manipulate the list. It is up to the client to maintain this list.
See the "Composite" pattern in "Design Patterns", Gama et al, 1995.
Definition at line 59 of file IterationPack_AlgorithmTrackerComposite.hpp.
Definition at line 63 of file IterationPack_AlgorithmTrackerComposite.hpp.
typedef std::list<track_ptr_t> IterationPack::AlgorithmTrackerComposite::track_list_t |
Definition at line 65 of file IterationPack_AlgorithmTrackerComposite.hpp.
IterationPack::AlgorithmTrackerComposite::AlgorithmTrackerComposite | ( | const ostream_ptr_t & | journal_out | ) |
Definition at line 48 of file IterationPack_AlgorithmTrackerComposite.cpp.
track_list_t& IterationPack::AlgorithmTrackerComposite::tracks | ( | ) |
Give access to the list of AlgorithmTracker
object pointers.
const track_list_t& IterationPack::AlgorithmTrackerComposite::tracks | ( | ) | const |
|
virtual |
Reimplemented from IterationPack::AlgorithmTracker.
Definition at line 52 of file IterationPack_AlgorithmTrackerComposite.cpp.
|
virtual |
Reimplemented from IterationPack::AlgorithmTracker.
Definition at line 60 of file IterationPack_AlgorithmTrackerComposite.cpp.
|
virtual |
Reimplemented from IterationPack::AlgorithmTracker.
Definition at line 70 of file IterationPack_AlgorithmTrackerComposite.cpp.