Classes | |
| class | Algorithm |
| Acts as the central hub for an iterative algorithm. More... | |
| class | AlgorithmSetOptions |
Set options for Algorithm from an OptionsFromStream object. More... | |
| class | AlgorithmState |
| Abstacts a set of iteration quantities for an iterative algorithm. More... | |
| class | AlgorithmStep |
Base type for all objects that perform steps in an Algorithm. More... | |
| class | AlgorithmTracker |
| Used to ouput iteration results and other information. More... | |
| class | AlgorithmTrackerComposite |
This class acts a composite container for other AlgorithmTracker objects. More... | |
| class | CastIQMemberBase |
Base class for some of the implementation features of CastIQMember. More... | |
| class | CastIQMember |
Template class to be used to lookup an interation quantity, cast it to an IterQuantityAccess<T> object and cache the iq_id for fast access later. More... | |
| class | IterQuantity |
| Iterface for information about Iteration Quantities. More... | |
| class | IterQuantityAccess |
| Interface to typed iteration quantities. More... | |
| class | IterQuantityAccessContiguous |
| Iteration Quanities subclass for contiguous iterations. More... | |
| class | InvalidTypeCastException |
| More... | |
Enumerations | |
| enum | EAssocStepType |
| More... | |
| enum | EDoStepType |
| More... | |
| enum | EAlgoReturn |
| More... | |
Functions | |
| void | imp_cast_iq_throw_error (const std::string &iq_name, const std::string &iq_is_type_name, const std::string &iq_want_type_name) |
| void | imp_cast_iq_throw_error (const AlgorithmState::iq_id_type iq_id, const std::string &iq_name, const std::string &iq_is_type_name, const std::string &iq_want_type_name) |
| template<class T> | |
| IterQuantityAccess< T > & | cast_iq (AlgorithmState &state, const std::string &iq_name) |
Lookup an iteration quantity by name and cast it to an IterQuantityAccess<T> of the given type T. If the iteration quantity of that name does not exist then a AlgorithmState::DoesNotExist exception will be thrown. If the type of the iteration quantity is not of the type IterQuantityAcess<T> (as determined by dynamic_cast<T>) then the exception InvalidTypeCastException: will be thrown with a helpful error message. | |
| template<class T> | |
| const IterQuantityAccess< T > & | cast_iq (const AlgorithmState &state, const std::string &iq_name) |
| | |
| template<class T> | |
| IterQuantityAccess< T > & | cast_iq (AlgorithmState &state, const AlgorithmState::iq_id_type iq_id, const std::string &iq_name) |
Lookup an iteration quantity using its id and cast it to an IterQuantityAccess<T> of the given type T. | |
| template<class T> | |
| const IterQuantityAccess< T > & | cast_iq (const AlgorithmState &state, const AlgorithmState::iq_id_type iq_id, const std::string &iq_name) |
| | |
| void | print_algorithm_step (const Algorithm &algo, Algorithm::poss_type step_poss, EDoStepType type, Algorithm::poss_type assoc_step_poss, std::ostream &out) |
| Prints to 'out' the algorithm step. | |
| IterQuantityAccess< T > & IterationPack::cast_iq | ( | AlgorithmState & | state, | |
| const std::string & | iq_name | |||
| ) |
Lookup an iteration quantity by name and cast it to an IterQuantityAccess<T> of the given type T. If the iteration quantity of that name does not exist then a AlgorithmState::DoesNotExist exception will be thrown. If the type of the iteration quantity is not of the type IterQuantityAcess<T> (as determined by dynamic_cast<T>) then the exception InvalidTypeCastException: will be thrown with a helpful error message.
Note that using this function always cost O(s.num_iter_quantities()) everytime it is called. Therefore, the developer should consider using the class CastIQMember instead if it is appropriate.
Definition at line 106 of file IterationPack_cast_iq.hpp.
| const IterQuantityAccess< T > & IterationPack::cast_iq | ( | const AlgorithmState & | state, | |
| const std::string & | iq_name | |||
| ) |
| IterQuantityAccess< T > & IterationPack::cast_iq | ( | AlgorithmState & | state, | |
| const AlgorithmState::iq_id_type | iq_id, | |||
| const std::string & | iq_name | |||
| ) |
Lookup an iteration quantity using its id and cast it to an IterQuantityAccess<T> of the given type T.
| state | [in] |
AlgorithmState::DoesNotExist exception will be thrown. If the type of the iteration quantity is not of the type IterQuantityAcess<T> (as determined by dynamic_cast<T>) then the exception InvalidTypeCastException: will be thrown with a helpful error message.
Note that using this function always cost just O(1) everytime it is called.
Definition at line 136 of file IterationPack_cast_iq.hpp.
| const IterQuantityAccess< T > & IterationPack::cast_iq | ( | const AlgorithmState & | state, | |
| const AlgorithmState::iq_id_type | iq_id, | |||
| const std::string & | iq_name | |||
| ) |
| void IterationPack::print_algorithm_step | ( | const Algorithm & | algo, | |
| Algorithm::poss_type | step_poss, | |||
| EDoStepType | type, | |||
| Algorithm::poss_type | assoc_step_poss, | |||
| std::ostream & | out | |||
| ) |
Prints to 'out' the algorithm step.
This function can be used by AlgorithmStep subclasses in their AlgorithmStep::print_step() methods to print the header for the algorithm step. This will print the number of the step in the algorithm, its name, and the name of its concreate subclass.
Definition at line 33 of file IterationPack_print_algorithm_step.cpp.
1.4.7