LILAC
|
Interface class to signal that an object deals with typed variables. More...
#include <vartype.hpp>
Public Member Functions | |
virtual const std::type_info & | vtype () const =0 |
bool | compare (const vartype *in) const |
bool | compare (const vartype &in) const |
bool | compare (const std::type_info &tinf) |
template<typename T > | |
bool | compare () const |
template<typename T > | |
bool | compare (const T &in) const |
std::string | vname () const |
virtual const std::type_info & | vtype_internal () const |
bool | compare_internal (const vartype *in) const |
bool | compare_internal (const vartype &in) const |
bool | compare_internal (const std::type_info &tinf) |
template<typename T > | |
bool | compare_internal () const |
template<typename T > | |
bool | compare_internal (const T &in) const |
std::string | vname_internal () const |
virtual | ~vartype () |
Interface class to signal that an object deals with typed variables.
This class forces the children classes to implement this method. Since most of the classes in this program are abstract and untyped down until the very bottom of the tree, this effectively forces the typed classes to implement the function. This functionality could also be directly implemented in each of the children classes without dealing with an interface. However, this is clearer and more self documenting. In addition, if one needs to group objects only by type, this provides a powerful interface to do so.
Definition at line 32 of file vartype.hpp.
|
inlinevirtual |
Definition at line 83 of file vartype.hpp.
|
inline |
Definition at line 35 of file vartype.hpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 52 of file vartype.hpp.
|
inline |
|
pure virtual |
Implemented in stable_ode, example_integrator, example_integrator_tmpl< T >, ode_tmpl< T >, rk45_tmpl< T >, stable_ode_tmpl< T >, stable_ode_tmpl< comp >, euler_sde_tmpl< T >, rhs_type< double, rhs_sde >, rhs_type< comp >, ode, rk45, rk4_tmpl< T >, euler_sde, and rk4.
|
inlinevirtual |
Definition at line 59 of file vartype.hpp.