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

#include <ModulePort.h>

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

Public Member Functions

 MultipleModulePort (std::string name, std::string description, Module *parent=nullptr)
 
 ~MultipleModulePort ()
 
void clear () override
 
bool addDerivedModule (T *m)
 
bool removeDerivedModule (T *m)
 
bool isKindOf (Module *m) override
 
bool hasModule (Module *m)
 
std::vector< Module * > & getModules () override
 
std::vector< T * > & getDerivedModules ()
 
- 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 ()
 
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

std::vector< T * > mDerivedModules
 

Additional Inherited Members

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

Detailed Description

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

Definition at line 183 of file ModulePort.h.

Constructor & Destructor Documentation

◆ MultipleModulePort()

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

Definition at line 186 of file ModulePort.h.

Here is the call graph for this function:

◆ ~MultipleModulePort()

template<typename T>
dyno::MultipleModulePort< T >::~MultipleModulePort ( )
inline

Definition at line 192 of file ModulePort.h.

Here is the call graph for this function:

Member Function Documentation

◆ addDerivedModule()

template<typename T>
bool dyno::MultipleModulePort< T >::addDerivedModule ( T * m)
inline

Definition at line 210 of file ModulePort.h.

Here is the caller graph for this function:

◆ addModule()

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

Implements dyno::ModulePort.

Definition at line 280 of file ModulePort.h.

Here is the call graph for this function:

◆ clear()

template<typename T>
void dyno::MultipleModulePort< T >::clear ( )
inlineoverridevirtual

Reimplemented from dyno::ModulePort.

Definition at line 203 of file ModulePort.h.

Here is the call graph for this function:

◆ getDerivedModules()

template<typename T>
std::vector< T * > & dyno::MultipleModulePort< T >::getDerivedModules ( )
inline

Definition at line 274 of file ModulePort.h.

◆ getModules()

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

Reimplemented from dyno::ModulePort.

Definition at line 263 of file ModulePort.h.

Here is the call graph for this function:

◆ hasModule()

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

Implements dyno::ModulePort.

Definition at line 251 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::MultipleModulePort< T >::isKindOf ( Module * m)
inlineoverridevirtual

Implements dyno::ModulePort.

Definition at line 246 of file ModulePort.h.

Here is the call graph for this function:

◆ removeDerivedModule()

template<typename T>
bool dyno::MultipleModulePort< T >::removeDerivedModule ( T * m)
inline

Definition at line 228 of file ModulePort.h.

Here is the caller graph for this function:

◆ removeModule()

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

Implements dyno::ModulePort.

Definition at line 290 of file ModulePort.h.

Here is the call graph for this function:

Member Data Documentation

◆ mDerivedModules

template<typename T>
std::vector<T*> dyno::MultipleModulePort< T >::mDerivedModules
private

Definition at line 303 of file ModulePort.h.


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