MOOCHO (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions
IterationPack_cast_iq.hpp File Reference
#include <stdexcept>
#include <typeinfo>
#include "IterationPack_AlgorithmState.hpp"
#include "IterationPack_IterQuantityAccess.hpp"
Include dependency graph for IterationPack_cast_iq.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 IterationPack
 

Functions

template<class T >
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. More...
 
template<class T >
const IterQuantityAccess< T > & IterationPack::cast_iq (const AlgorithmState &state, const std::string &iq_name)
 
template<class T >
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. More...
 
template<class T >
const IterQuantityAccess< T > & IterationPack::cast_iq (const AlgorithmState &state, const AlgorithmState::iq_id_type iq_id, const std::string &iq_name)
 
void IterationPack::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 IterationPack::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)