![]() |
PeriDyno 1.0.0
|
#include <Field.h>
Public Types | |
typedef T | VarType |
typedef Array2D< T, deviceType > | DataType |
typedef FArray2D< T, deviceType > | FieldType |
Public Member Functions | |
DEFINE_FIELD_FUNC (FieldType, DataType, FArray2D) | |
~FArray2D () override | |
uint | size () override |
void | resize (uint nx, uint ny) |
void | reset () |
void | clear () |
void | assign (const CArray2D< T > &vals) |
void | assign (const DArray2D< T > &vals) |
bool | isEmpty () override |
![]() | |
FBase () | |
FBase (std::string name, std::string description, FieldTypeEnum type=FieldTypeEnum::Param, OBase *parent=nullptr) | |
virtual | ~FBase () |
virtual const std::string | getTemplateName () |
virtual const std::string | getClassName () |
std::string | getObjectName () |
std::string | getDescription () |
virtual DeviceType | getDeviceType () |
void | setObjectName (std::string name) |
void | setDescription (std::string description) |
void | setParent (OBase *owner) |
OBase * | parent () |
bool | isDerived () |
bool | isAutoDestroyable () |
void | setAutoDestroy (bool autoDestroy) |
void | setDerived (bool derived) |
uint | sizeOfSinks () |
std::vector< FBase * > & | getSinks () |
bool | isModified () |
void | tick () |
void | tack () |
bool | isOptional () |
void | tagOptional (bool optional) |
float | getMin () |
void | setMin (float min_val) |
float | getMax () |
void | setMax (float max_val) |
void | setRange (float min_val, float max_val) |
FieldTypeEnum | getFieldType () |
virtual bool | connect (FBase *dst)=0 |
virtual bool | disconnect (FBase *dst) |
virtual std::string | serialize () |
virtual bool | deserialize (const std::string &str) |
FBase * | getTopField () |
FBase * | getSource () |
FBase * | promoteOuput () |
Display a state field as an ouput field. | |
FBase * | promoteInput () |
Display a state field as an input field. | |
FBase * | demoteOuput () |
Hide a state field from outputs. | |
FBase * | demoteInput () |
Hide a state field from inputs. | |
virtual void | update () |
void | attach (std::shared_ptr< FCallBackFunc > func) |
void | detach (std::shared_ptr< FCallBackFunc > func) |
Additional Inherited Members | |
![]() | |
void | setSource (FBase *source) |
void | addSink (FBase *f) |
bool | removeSink (FBase *f) |
bool | connectField (FBase *dst) |
bool | disconnectField (FBase *dst) |
![]() | |
FieldTypeEnum | m_fType = FieldTypeEnum::Param |
Define field for Array2D
typedef Array2D<T, deviceType> dyno::FArray2D< T, deviceType >::DataType |
typedef FArray2D<T, deviceType> dyno::FArray2D< T, deviceType >::FieldType |
typedef T dyno::FArray2D< T, deviceType >::VarType |
|
override |
void dyno::FArray2D< T, deviceType >::assign | ( | const CArray2D< T > & | vals | ) |
void dyno::FArray2D< T, deviceType >::assign | ( | const DArray2D< T > & | vals | ) |
void dyno::FArray2D< T, deviceType >::clear | ( | ) |
dyno::FArray2D< T, deviceType >::DEFINE_FIELD_FUNC | ( | FieldType | , |
DataType | , | ||
FArray2D< T, deviceType > | ) |
|
inlineoverridevirtual |
Implements dyno::FBase.
void dyno::FArray2D< T, deviceType >::reset | ( | ) |
void dyno::FArray2D< T, deviceType >::resize | ( | uint | nx, |
uint | ny ) |
|
inlineoverridevirtual |
Implements dyno::FBase.