PeriDyno 1.2.1
Loading...
Searching...
No Matches
dyno::FList< T > Class Template Reference

#include <FList.h>

Inheritance diagram for dyno::FList< T >:
Collaboration diagram for dyno::FList< T >:

Public Types

typedef T VarType
 
typedef std::list< TDataType
 
typedef FList< TFieldType
 
- Public Types inherited from dyno::FBase
enum  FInputPolicy { One , Many }
 Field with a policy of FInputPolicy::Many is not allowed to be connected to FInputPolicy::One Field with policy of FInputPolicy::One can either be connected to a field of FInputPolicy::One or FInputPolicy::Many. More...
 

Public Member Functions

 FList ()
 
 FList (std::string name, std::string description, FieldTypeEnum fieldType, OBase *parent)
 
 ~FList () override
 
const std::string getTemplateName () override
 
const std::string getClassName () override
 
uint size () override
 
std::string serialize () override
 
bool deserialize (const std::string &str) override
 
void insert (T val)
 
bool isEmpty () override
 
const DataTypeconstData ()
 
bool bind (FieldType *dst)
 
- Public Member Functions inherited from dyno::FBase
 FBase ()
 
 FBase (std::string name, std::string description, FieldTypeEnum type=FieldTypeEnum::Param, OBase *parent=nullptr)
 
virtual ~FBase ()
 
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 ()
 
uint sizeOfValidSources ()
 
void requestValidSources (std::vector< FBase * > &src)
 
FBasegetSource ()
 
FBasegetTopField ()
 
std::vector< FBase * > & getSources ()
 
std::vector< FBase * > & getSinks ()
 
bool isModified ()
 
bool isActive ()
 A variable to control the visibility of the field.
 
void setActive (bool b)
 
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 disconnect (FBase *dst)
 
virtual FInputPolicy inputPolicy ()
 
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)
 

Protected Member Functions

bool connect (FBase *dst) override
 
- Protected Member Functions inherited from dyno::FBase
void setSource (FBase *source)
 
bool addSink (FBase *f)
 
bool removeSink (FBase *f)
 
bool addSource (FBase *f)
 
bool removeSource (FBase *f)
 
bool connectField (FBase *dst)
 
bool disconnectField (FBase *dst)
 

Private Attributes

std::list< TmList
 

Additional Inherited Members

- Protected Attributes inherited from dyno::FBase
FieldTypeEnum m_fType = FieldTypeEnum::Param
 

Detailed Description

template<typename T>
class dyno::FList< T >

Definition at line 30 of file FList.h.

Member Typedef Documentation

◆ DataType

template<typename T>
typedef std::list<T> dyno::FList< T >::DataType

Definition at line 34 of file FList.h.

◆ FieldType

template<typename T>
typedef FList<T> dyno::FList< T >::FieldType

Definition at line 35 of file FList.h.

◆ VarType

template<typename T>
typedef T dyno::FList< T >::VarType

Definition at line 33 of file FList.h.

Constructor & Destructor Documentation

◆ FList() [1/2]

template<typename T>
dyno::FList< T >::FList ( )
inline

Definition at line 37 of file FList.h.

Here is the call graph for this function:

◆ FList() [2/2]

template<typename T>
dyno::FList< T >::FList ( std::string name,
std::string description,
FieldTypeEnum fieldType,
OBase * parent )
inline

Definition at line 38 of file FList.h.

Here is the call graph for this function:

◆ ~FList()

template<typename T>
dyno::FList< T >::~FList ( )
override

Definition at line 104 of file FList.h.

Member Function Documentation

◆ bind()

template<typename T>
bool dyno::FList< T >::bind ( FieldType * dst)
inline

Definition at line 65 of file FList.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ connect()

template<typename T>
bool dyno::FList< T >::connect ( FBase * dst)
inlineoverrideprotectedvirtual

Implements dyno::FBase.

Definition at line 75 of file FList.h.

Here is the call graph for this function:

◆ constData()

template<typename T>
const DataType & dyno::FList< T >::constData ( )
inline

Definition at line 58 of file FList.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ deserialize()

template<typename T>
bool dyno::FList< T >::deserialize ( const std::string & str)
inlineoverridevirtual

Reimplemented from dyno::FBase.

Definition at line 49 of file FList.h.

◆ getClassName()

template<typename T>
const std::string dyno::FList< T >::getClassName ( )
inlineoverridevirtual

Reimplemented from dyno::FBase.

Definition at line 44 of file FList.h.

◆ getTemplateName()

template<typename T>
const std::string dyno::FList< T >::getTemplateName ( )
inlineoverridevirtual

Reimplemented from dyno::FBase.

Definition at line 43 of file FList.h.

◆ insert()

template<typename T>
void dyno::FList< T >::insert ( T val)

Definition at line 86 of file FList.h.

Here is the call graph for this function:

◆ isEmpty()

template<typename T>
bool dyno::FList< T >::isEmpty ( )
inlineoverridevirtual

Implements dyno::FBase.

Definition at line 53 of file FList.h.

Here is the call graph for this function:

◆ serialize()

template<typename T>
std::string dyno::FList< T >::serialize ( )
inlineoverridevirtual

Reimplemented from dyno::FBase.

Definition at line 48 of file FList.h.

◆ size()

template<typename T>
uint dyno::FList< T >::size ( )
inlineoverridevirtual

Implements dyno::FBase.

Definition at line 46 of file FList.h.

Member Data Documentation

◆ mList

template<typename T>
std::list<T> dyno::FList< T >::mList
private

Definition at line 82 of file FList.h.


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