PeriDyno 1.0.0
Loading...
Searching...
No Matches
dyno::FArray< T, deviceType > Class Template Reference

#include <Field.h>

Inheritance diagram for dyno::FArray< T, deviceType >:
Collaboration diagram for dyno::FArray< T, deviceType >:

Public Types

typedef T VarType
 
typedef Array< T, deviceType > DataType
 
typedef FArray< T, deviceType > FieldType
 

Public Member Functions

 DEFINE_FIELD_FUNC (FieldType, DataType, FArray)
 
 ~FArray () override
 
uint size () override
 
void resize (uint num)
 
void reset ()
 
void clear ()
 
void assign (const T &val)
 
void assign (const std::vector< T > &vals)
 
void assign (const DArray< T > &vals)
 
void assign (const CArray< T > &vals)
 
bool isEmpty () override
 
- Public Member Functions inherited from dyno::FBase
 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)
 
OBaseparent ()
 
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)
 
FBasegetTopField ()
 
FBasegetSource ()
 
FBasepromoteOuput ()
 Display a state field as an ouput field.
 
FBasepromoteInput ()
 Display a state field as an input field.
 
FBasedemoteOuput ()
 Hide a state field from outputs.
 
FBasedemoteInput ()
 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

- Protected Member Functions inherited from dyno::FBase
void setSource (FBase *source)
 
void addSink (FBase *f)
 
bool removeSink (FBase *f)
 
bool connectField (FBase *dst)
 
bool disconnectField (FBase *dst)
 
- Protected Attributes inherited from dyno::FBase
FieldTypeEnum m_fType = FieldTypeEnum::Param
 

Detailed Description

template<typename T, DeviceType deviceType>
class dyno::FArray< T, deviceType >

Define field for Array

Definition at line 148 of file Field.h.

Member Typedef Documentation

◆ DataType

template<typename T, DeviceType deviceType>
typedef Array<T, deviceType> dyno::FArray< T, deviceType >::DataType

Definition at line 152 of file Field.h.

◆ FieldType

template<typename T, DeviceType deviceType>
typedef FArray<T, deviceType> dyno::FArray< T, deviceType >::FieldType

Definition at line 153 of file Field.h.

◆ VarType

template<typename T, DeviceType deviceType>
typedef T dyno::FArray< T, deviceType >::VarType

Definition at line 151 of file Field.h.

Constructor & Destructor Documentation

◆ ~FArray()

template<typename T, DeviceType deviceType>
dyno::FArray< T, deviceType >::~FArray ( )
override

Definition at line 182 of file Field.h.

Member Function Documentation

◆ assign() [1/4]

template<typename T, DeviceType deviceType>
void dyno::FArray< T, deviceType >::assign ( const CArray< T > & vals)

Definition at line 226 of file Field.h.

◆ assign() [2/4]

template<typename T, DeviceType deviceType>
void dyno::FArray< T, deviceType >::assign ( const DArray< T > & vals)

Definition at line 239 of file Field.h.

◆ assign() [3/4]

template<typename T, DeviceType deviceType>
void dyno::FArray< T, deviceType >::assign ( const std::vector< T > & vals)

Definition at line 214 of file Field.h.

◆ assign() [4/4]

template<typename T, DeviceType deviceType>
void dyno::FArray< T, deviceType >::assign ( const T & val)

Definition at line 202 of file Field.h.

Here is the caller graph for this function:

◆ clear()

template<typename T, DeviceType deviceType>
void dyno::FArray< T, deviceType >::clear ( )

Definition at line 264 of file Field.h.

◆ DEFINE_FIELD_FUNC()

template<typename T, DeviceType deviceType>
dyno::FArray< T, deviceType >::DEFINE_FIELD_FUNC ( FieldType ,
DataType ,
FArray< T, deviceType >  )

◆ isEmpty()

template<typename T, DeviceType deviceType>
bool dyno::FArray< T, deviceType >::isEmpty ( )
inlineoverridevirtual

Implements dyno::FBase.

Definition at line 176 of file Field.h.

◆ reset()

template<typename T, DeviceType deviceType>
void dyno::FArray< T, deviceType >::reset ( )

Definition at line 252 of file Field.h.

◆ resize()

template<typename T, DeviceType deviceType>
void dyno::FArray< T, deviceType >::resize ( uint num)

Definition at line 191 of file Field.h.

◆ size()

template<typename T, DeviceType deviceType>
uint dyno::FArray< T, deviceType >::size ( )
inlineoverridevirtual

Implements dyno::FBase.

Definition at line 159 of file Field.h.

Here is the caller graph for this function:

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