LILAC
|
#include <item.h>
Public Member Functions | |
item () | |
virtual | ~item () |
virtual void | print () const |
Standard print function. | |
virtual void | postprocess (input &indat) |
virtual std::vector< std::string > | dependencies () const |
Returns dependencies of item, for which there are none. | |
virtual void | update () |
virtual std::string | type () const =0 |
void | setname (const std::string n) |
void | set_write_name (std::string wname) |
const std::string & | name () const |
const std::string & | write_name () const |
Static Public Member Functions | |
static std::shared_ptr< item > | create (std::string name, engineimp *rval) |
Public Attributes | |
engineimp * | holder |
Protected Member Functions | |
virtual void | _retrieve (retrieve_wrapper &&inval, item *caller) |
Protected Attributes | |
std::string | _name |
std::string | _write_name |
char | has_write_name |
Friends | |
class | input |
class | native_item |
template<class T > | |
void | retrieve (T &inval, item *setter, item *caller) |
|
protectedvirtual |
This sets the value of object passed equal to the address of the current item
This is used for classes such as integrator, controller, etc which will comprise most of the item types here. This function can be rewritten for native types such as ints, etc
Reimplemented in native_item, variable, native_tmpl< T, act_name >, and list.
Definition at line 96 of file item.cpp.
|
static |
|
virtual |
Returns dependencies of item, for which there are none.
Reimplemented in ftest3, ftest2, ftest1, example_rhs, stable_ode, native_item, jones_optical, c_elegans, example_integrator, simulation, stable_spectral_pde_1d_tmpl< T >, stable_spectral_pde_1d_tmpl< comp >, item_dim, integrator, rhs_CNLS, n_pulse_score, stable, controller, toroidal, rhs_SQGLE, ode, rk45, euler_sde, rk4, and objective.
Definition at line 116 of file item.cpp.
const std::string & item::name | ( | ) | const |
|
virtual |
Reimplemented in example_rhs, stable_ode, native_item, example_integrator_tmpl< T >, jones_optical, example_integrator, c_elegans, stable_spectral_pde_1d_tmpl< T >, stable_spectral_pde_1d_tmpl< comp >, ode_tmpl< T >, simulation, rk45_tmpl< T >, item_dim, stable_ode_tmpl< T >, stable_ode_tmpl< comp >, rhs_CNLS, euler_sde_tmpl< T >, integrator, n_pulse_score, stable, controller, toroidal, rhs_SQGLE, ode, rk45, rk4_tmpl< T >, euler_sde, rk4, and objective.
|
virtual |
void item::set_write_name | ( | std::string | wname | ) |
void item::setname | ( | const std::string | n | ) |
|
pure virtual |
Implemented in ftest3, ftest2, ftest1, stable_ode, example_rhs, jones_optical, example_integrator_tmpl< T >, variable, jones_matrix, c_elegans, stable_spectral_pde_1d_tmpl< T >, stable_spectral_pde_1d_tmpl< comp >, rk45_tmpl< T >, ode_tmpl< T >, stable_ode_tmpl< T >, stable_ode_tmpl< comp >, integrator, euler_sde_tmpl< T >, example_integrator, rhs_CNLS, controller, toroidal, native_tmpl< T, act_name >, rhs_SQGLE, rk45, n_pulse_score, euler_sde, rk4, rk4_tmpl< T >, ode, and list.
|
virtual |
Updates structures that are held in the class. This is called after each iteration of the control algorithms so that items can update internal parameters such as matrices and whatnot. The controller updates the actual values for parameters so if a class only depends on the direct values than the function need not be re-implemented
Reimplemented in example_rhs, example_integrator_tmpl< T >, jones_matrix, c_elegans, and rhs_SQGLE.
Definition at line 107 of file item.cpp.
const std::string & item::write_name | ( | ) | const |
|
friend |
|
protected |
|
protected |