PeriDyno 1.0.0
Loading...
Searching...
No Matches
dyno::SingleNodePort< T > Class Template Reference

#include <NodePort.h>

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

Public Member Functions

 SingleNodePort (std::string name, std::string description, Node *parent=nullptr)
 
 ~SingleNodePort () override
 
bool isKindOf (Node *node) override
 
bool hasNode (Node *node)
 
std::vector< Node * > & getNodes () override
 
TgetDerivedNode ()
 
bool setDerivedNode (T *d_node)
 
- Public Member Functions inherited from dyno::NodePort
 NodePort (std::string name, std::string description, Node *parent=nullptr)
 
virtual ~NodePort ()
 
virtual std::string getPortName ()
 
NodePortType getPortType ()
 
void setPortType (NodePortType portType)
 
NodegetParent ()
 
virtual void clear ()
 
void attach (std::shared_ptr< FCallBackFunc > func)
 

Protected Member Functions

bool addNode (Node *node) override
 
bool removeNode (Node *node) override
 
- Protected Member Functions inherited from dyno::NodePort
virtual void notify ()
 

Private Attributes

Tm_derived_node = nullptr
 

Additional Inherited Members

- Protected Attributes inherited from dyno::NodePort
std::vector< Node * > m_nodes
 

Detailed Description

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

Definition at line 88 of file NodePort.h.

Constructor & Destructor Documentation

◆ SingleNodePort()

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

Definition at line 91 of file NodePort.h.

Here is the call graph for this function:

◆ ~SingleNodePort()

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

Definition at line 98 of file NodePort.h.

Here is the call graph for this function:

Member Function Documentation

◆ addNode()

template<typename T>
bool dyno::SingleNodePort< T >::addNode ( Node * node)
inlineoverrideprotectedvirtual

Implements dyno::NodePort.

Definition at line 158 of file NodePort.h.

Here is the call graph for this function:

◆ getDerivedNode()

template<typename T>
T * dyno::SingleNodePort< T >::getDerivedNode ( )
inline

Definition at line 127 of file NodePort.h.

◆ getNodes()

template<typename T>
std::vector< Node * > & dyno::SingleNodePort< T >::getNodes ( )
inlineoverridevirtual

Reimplemented from dyno::NodePort.

Definition at line 117 of file NodePort.h.

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

◆ hasNode()

template<typename T>
bool dyno::SingleNodePort< T >::hasNode ( Node * node)
inlinevirtual

Implements dyno::NodePort.

Definition at line 112 of file NodePort.h.

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

◆ isKindOf()

template<typename T>
bool dyno::SingleNodePort< T >::isKindOf ( Node * node)
inlineoverridevirtual

Implements dyno::NodePort.

Definition at line 107 of file NodePort.h.

Here is the call graph for this function:

◆ removeNode()

template<typename T>
bool dyno::SingleNodePort< T >::removeNode ( Node * node)
inlineoverrideprotectedvirtual

Implements dyno::NodePort.

Definition at line 169 of file NodePort.h.

Here is the call graph for this function:

◆ setDerivedNode()

template<typename T>
bool dyno::SingleNodePort< T >::setDerivedNode ( T * d_node)
inline

Definition at line 132 of file NodePort.h.

Here is the caller graph for this function:

Member Data Documentation

◆ m_derived_node

template<typename T>
T* dyno::SingleNodePort< T >::m_derived_node = nullptr
private

Definition at line 178 of file NodePort.h.


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