PeriDyno 1.2.1
Loading...
Searching...
No Matches
WtNodeState Class Reference

#include <WtNode.h>

Collaboration diagram for WtNodeState:

Public Types

enum  ReactToConnectionState { REACTING , NOT_REACTING }
 
using ConnectionPtrSet = std::unordered_map<Wt::Guid, WtConnection*>
 

Public Member Functions

 WtNodeState (std::unique_ptr< WtNodeDataModel > const &model)
 
std::vector< ConnectionPtrSet > const & getEntries (PortType) const
 
std::vector< ConnectionPtrSet > & getEntries (PortType)
 
ConnectionPtrSet connections (PortType portType, PortIndex portIndex) const
 
void setConnection (PortType portType, PortIndex portIndex, WtConnection &connection)
 
void eraseConnection (PortType portType, PortIndex portIndex, Wt::Guid id)
 
ReactToConnectionState reaction () const
 
PortType reactingPortType () const
 
NodeDataType reactingDataType () const
 
void setReaction (ReactToConnectionState reaction, PortType reactingPortType=PortType::None, NodeDataType reactingDataType=NodeDataType())
 
bool isReacting () const
 
void setResizing (bool resizing)
 
bool resizing () const
 

Private Attributes

std::vector< ConnectionPtrSet_inConnections
 
std::vector< ConnectionPtrSet_outConnections
 
ReactToConnectionState _reaction
 
PortType _reactingPortType
 
NodeDataType _reactingDataType
 
bool _resizing
 

Detailed Description

Definition at line 187 of file WtNode.h.

Member Typedef Documentation

◆ ConnectionPtrSet

using WtNodeState::ConnectionPtrSet = std::unordered_map<Wt::Guid, WtConnection*>

Definition at line 200 of file WtNode.h.

Member Enumeration Documentation

◆ ReactToConnectionState

Enumerator
REACTING 
NOT_REACTING 

Definition at line 190 of file WtNode.h.

Constructor & Destructor Documentation

◆ WtNodeState()

WtNodeState::WtNodeState ( std::unique_ptr< WtNodeDataModel > const & model)

Definition at line 574 of file WtNode.cpp.

Member Function Documentation

◆ connections()

WtNodeState::ConnectionPtrSet WtNodeState::connections ( PortType portType,
PortIndex portIndex ) const

Definition at line 598 of file WtNode.cpp.

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

◆ eraseConnection()

void WtNodeState::eraseConnection ( PortType portType,
PortIndex portIndex,
Wt::Guid id )

Definition at line 616 of file WtNode.cpp.

Here is the call graph for this function:

◆ getEntries() [1/2]

std::vector< WtNodeState::ConnectionPtrSet > & WtNodeState::getEntries ( PortType portType)

Definition at line 590 of file WtNode.cpp.

◆ getEntries() [2/2]

std::vector< WtNodeState::ConnectionPtrSet > const & WtNodeState::getEntries ( PortType portType) const

Returns vector of connections ID. Some of them can be empty (null)

Definition at line 582 of file WtNode.cpp.

Here is the caller graph for this function:

◆ isReacting()

bool WtNodeState::isReacting ( ) const

Definition at line 651 of file WtNode.cpp.

Here is the caller graph for this function:

◆ reactingDataType()

NodeDataType WtNodeState::reactingDataType ( ) const

Definition at line 634 of file WtNode.cpp.

Here is the caller graph for this function:

◆ reactingPortType()

PortType WtNodeState::reactingPortType ( ) const

Definition at line 629 of file WtNode.cpp.

Here is the caller graph for this function:

◆ reaction()

WtNodeState::ReactToConnectionState WtNodeState::reaction ( ) const

Definition at line 624 of file WtNode.cpp.

Here is the caller graph for this function:

◆ resizing()

bool WtNodeState::resizing ( ) const

Definition at line 661 of file WtNode.cpp.

Here is the caller graph for this function:

◆ setConnection()

void WtNodeState::setConnection ( PortType portType,
PortIndex portIndex,
WtConnection & connection )

Definition at line 605 of file WtNode.cpp.

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

◆ setReaction()

void WtNodeState::setReaction ( ReactToConnectionState reaction,
PortType reactingPortType = PortType::None,
NodeDataType reactingDataType = NodeDataType() )

Definition at line 639 of file WtNode.cpp.

Here is the call graph for this function:

◆ setResizing()

void WtNodeState::setResizing ( bool resizing)

Definition at line 656 of file WtNode.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ _inConnections

std::vector<ConnectionPtrSet> WtNodeState::_inConnections
private

Definition at line 239 of file WtNode.h.

◆ _outConnections

std::vector<ConnectionPtrSet> WtNodeState::_outConnections
private

Definition at line 240 of file WtNode.h.

◆ _reactingDataType

NodeDataType WtNodeState::_reactingDataType
private

Definition at line 244 of file WtNode.h.

◆ _reactingPortType

PortType WtNodeState::_reactingPortType
private

Definition at line 243 of file WtNode.h.

◆ _reaction

ReactToConnectionState WtNodeState::_reaction
private

Definition at line 242 of file WtNode.h.

◆ _resizing

bool WtNodeState::_resizing
private

Definition at line 246 of file WtNode.h.


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