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

#include <ModulePort.h>

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

Public Member Functions

 SingleModulePort (std::string name, std::string description, Module *parent=nullptr)
 
 ~SingleModulePort () override
 
bool isKindOf (Module *m) override
 
bool hasModule (Module *m)
 
std::vector< Module * > & getModules () override
 
TgetDerivedModule ()
 
bool setDerivedModule (T *derived)
 
- Public Member Functions inherited from dyno::ModulePort
 ModulePort (std::string name, std::string description, Module *parent=nullptr)
 
virtual ~ModulePort ()
 
virtual std::string getPortName ()
 
ModulePortType getPortType ()
 
void setPortType (ModulePortType portType)
 
ModulegetParent ()
 
virtual void clear ()
 
void attach (std::shared_ptr< FCallBackFunc > func)
 

Protected Member Functions

bool addModule (Module *m) override
 
bool removeModule (Module *m) override
 
- Protected Member Functions inherited from dyno::ModulePort
virtual void notify ()
 

Private Attributes

TmDerivedModule = nullptr
 

Additional Inherited Members

- Protected Attributes inherited from dyno::ModulePort
std::vector< Module * > mModules
 

Detailed Description

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

Definition at line 88 of file ModulePort.h.

Constructor & Destructor Documentation

◆ SingleModulePort()

template<typename T>
dyno::SingleModulePort< T >::SingleModulePort ( std::string name,
std::string description,
Module * parent = nullptr )
inline

Definition at line 91 of file ModulePort.h.

Here is the call graph for this function:

◆ ~SingleModulePort()

template<typename T>
dyno::SingleModulePort< T >::~SingleModulePort ( )
inlineoverride

Definition at line 98 of file ModulePort.h.

Here is the call graph for this function:

Member Function Documentation

◆ addModule()

template<typename T>
bool dyno::SingleModulePort< T >::addModule ( Module * m)
inlineoverrideprotectedvirtual

Implements dyno::ModulePort.

Definition at line 158 of file ModulePort.h.

Here is the call graph for this function:

◆ getDerivedModule()

template<typename T>
T * dyno::SingleModulePort< T >::getDerivedModule ( )
inline

Definition at line 127 of file ModulePort.h.

◆ getModules()

template<typename T>
std::vector< Module * > & dyno::SingleModulePort< T >::getModules ( )
inlineoverridevirtual

Reimplemented from dyno::ModulePort.

Definition at line 117 of file ModulePort.h.

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

◆ hasModule()

template<typename T>
bool dyno::SingleModulePort< T >::hasModule ( Module * m)
inlinevirtual

Implements dyno::ModulePort.

Definition at line 112 of file ModulePort.h.

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

◆ isKindOf()

template<typename T>
bool dyno::SingleModulePort< T >::isKindOf ( Module * m)
inlineoverridevirtual

Implements dyno::ModulePort.

Definition at line 107 of file ModulePort.h.

Here is the call graph for this function:

◆ removeModule()

template<typename T>
bool dyno::SingleModulePort< T >::removeModule ( Module * m)
inlineoverrideprotectedvirtual

Implements dyno::ModulePort.

Definition at line 169 of file ModulePort.h.

Here is the call graph for this function:

◆ setDerivedModule()

template<typename T>
bool dyno::SingleModulePort< T >::setDerivedModule ( T * derived)
inline

Definition at line 132 of file ModulePort.h.

Member Data Documentation

◆ mDerivedModule

template<typename T>
T* dyno::SingleModulePort< T >::mDerivedModule = nullptr
private

Definition at line 178 of file ModulePort.h.


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