IterationPack: General framework for building iterative algorithms  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | List of all members
IterationPack::AlgorithmTrackerComposite Class Reference

This class acts a composite container for other AlgorithmTracker objects. More...

#include <IterationPack_AlgorithmTrackerComposite.hpp>

Inheritance diagram for IterationPack::AlgorithmTrackerComposite:
Inheritance graph
[legend]

Public Types

typedef Teuchos::RCP
< AlgorithmTracker
track_ptr_t
 
typedef std::list< track_ptr_ttrack_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_ttracks ()
 Give access to the list of AlgorithmTracker object pointers. More...
 
const track_list_ttracks () 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_tget_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
 

Detailed Description

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.

Member Typedef Documentation

Definition at line 63 of file IterationPack_AlgorithmTrackerComposite.hpp.

Definition at line 65 of file IterationPack_AlgorithmTrackerComposite.hpp.

Constructor & Destructor Documentation

IterationPack::AlgorithmTrackerComposite::AlgorithmTrackerComposite ( const ostream_ptr_t journal_out)

Definition at line 48 of file IterationPack_AlgorithmTrackerComposite.cpp.

Member Function Documentation

track_list_t& IterationPack::AlgorithmTrackerComposite::tracks ( )

Give access to the list of AlgorithmTracker object pointers.

const track_list_t& IterationPack::AlgorithmTrackerComposite::tracks ( ) const

void IterationPack::AlgorithmTrackerComposite::initialize ( )
virtual

Reimplemented from IterationPack::AlgorithmTracker.

Definition at line 52 of file IterationPack_AlgorithmTrackerComposite.cpp.

void IterationPack::AlgorithmTrackerComposite::output_iteration ( const Algorithm algo) const
virtual

Reimplemented from IterationPack::AlgorithmTracker.

Definition at line 60 of file IterationPack_AlgorithmTrackerComposite.cpp.

void IterationPack::AlgorithmTrackerComposite::output_final ( const Algorithm algo,
EAlgoReturn  algo_return 
) const
virtual

Reimplemented from IterationPack::AlgorithmTracker.

Definition at line 70 of file IterationPack_AlgorithmTrackerComposite.cpp.


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