LILAC
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends | List of all members
item Class Reference

#include <item.h>

Inheritance diagram for item:
Inheritance graph
[legend]
Collaboration diagram for item:
Collaboration graph
[legend]

Public Member Functions

 item ()
virtual ~item ()
virtual void print () const
 Standard print function.
virtual void postprocess (input &indat)
virtual std::vector< std::stringdependencies () 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::stringname () const
const std::stringwrite_name () const

Static Public Member Functions

static std::shared_ptr< itemcreate (std::string name, engineimp *rval)

Public Attributes

engineimpholder

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)

Detailed Description

Definition at line 31 of file item.h.

Constructor & Destructor Documentation

item::item ( )

Definition at line 61 of file item.cpp.

item::~item ( )
virtual

Definition at line 60 of file item.cpp.

Member Function Documentation

void item::_retrieve ( retrieve_wrapper &&  p,
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.

Here is the caller graph for this function:

std::shared_ptr< item > item::create ( std::string  name,
engineimp in 
)
static

This function create an item of the type name

Parameters
nameName of the item to be created
Returns
Pointer to the created item

Definition at line 147 of file item.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

std::vector< std::string > item::dependencies ( ) const
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.

Here is the caller graph for this function:

const std::string & item::name ( ) const

Returns the name of the variable

Returns
name of the variable

Definition at line 135 of file item.cpp.

Here is the caller graph for this function:

void item::postprocess ( input indat)
virtual
void item::print ( ) const
virtual

Standard print function.

Reimplemented in variable, and list.

Definition at line 120 of file item.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void item::set_write_name ( std::string  wname)

Definition at line 67 of file item.cpp.

void item::setname ( const std::string  n)

Sets the name of the variable

Parameters
nVariable name

Definition at line 128 of file item.cpp.

virtual std::string item::type ( ) const
pure virtual
void item::update ( )
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.

Here is the call graph for this function:

const std::string & item::write_name ( ) const

Definition at line 71 of file item.cpp.

Friends And Related Function Documentation

friend class input
friend

Definition at line 60 of file item.h.

friend class native_item
friend

Definition at line 61 of file item.h.

template<class T >
void retrieve ( T &  inval,
item setter,
item caller 
)
friend

Member Data Documentation

std::string item::_name
protected

Definition at line 39 of file item.h.

std::string item::_write_name
protected

Definition at line 40 of file item.h.

char item::has_write_name
protected

Definition at line 41 of file item.h.

engineimp* item::holder

Definition at line 45 of file item.h.


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