GvRealPort Class Reference

#include <gv_port.h>

Public Member Functions

 GvRealPort (GvPortIO io)
 
virtual ~GvRealPort ()
 
Bool Init (Int32 port_main_id, Int32 port_sub_id, GvDataID type=400006000)
 
GvPortFlags GetFlags () const
 
void SetFlags (GvPortFlags v)
 
Bool GetVisible () const
 
void SetVisible (Bool v)
 
Bool GetIterate () const
 
void SetIterate (Bool v)
 
GvPortIO GetIO () const
 
void SetIO (GvPortIO io)
 
Int32 GetMainID () const
 
void SetMainID (Int32 id)
 
Int32 GetSubID () const
 
void SetSubID (Int32 id)
 
Int32 GetUserID () const
 
void SetUserID (Int32 id)
 
Bool SetValueType (GvValueID type)
 
GvValueID GetValueType () const
 
Bool SetDataType (GvDataID type)
 
GvDataID GetDataType () const
 
GeDataGetUserData ()
 
void SetUserData (const GeData &data)
 
const String GetName (GvRealNode *node) const
 
void SetName (const String &n)
 
Bool InitValue (Int32 cpu_count)
 
void FreeValue ()
 
Bool SetIncoming (GvRealNode *source_node, GvRealPort *source_port, GvRealNode *dest_node, GvRealPort *dest_port)
 
void RemoveIncoming ()
 
Bool GetIncomingDestination (GvRealNode *&node, GvRealPort *&port) const
 
Bool IsIncomingConnected () const
 
Bool GetIncomingSource (GvRealNode *&node, GvRealPort *&port) const
 
Bool GetIncomingSource (GvRealNodeData *&node, GvRealPort *&port) const
 
void RemoveConnections (Bool remove_incoming=true, Bool remove_outgoing=true)
 

Private Member Functions

Bool AddOutgoing (GvRealNode *node, GvRealPort *port)
 
void RemoveOutgoing (GvRealNode *node, GvRealPort *port)
 
Bool OutgoingExists (GvRealNode *node, GvRealPort *port)
 

Private Attributes

GvPortValue value
 
GvValueID value_type_id
 
GvValueIndex value_type_idx
 
GvDataID data_type
 
Int32 nr_of_cpus
 
GvPortIO port_type
 
GvPortFlags flags
 
GvConnection incoming
 
GvDestArray outgoing
 
Int32 main_id
 
Int32 sub_id
 
Int32 user_id
 
String name
 
GeData userData
 

Friends

class GvRealNodeData
 
class GvRealNodeMasterData
 
class GvRealValue
 

Detailed Description

Since
R20

Constructor & Destructor Documentation

◆ GvRealPort()

◆ ~GvRealPort()

virtual ~GvRealPort ( )
virtual

Member Function Documentation

◆ Init()

Bool Init ( Int32  port_main_id,
Int32  port_sub_id,
GvDataID  type = 400006000 
)

◆ GetFlags()

GvPortFlags GetFlags ( ) const

◆ SetFlags()

void SetFlags ( GvPortFlags  v)

◆ GetVisible()

Bool GetVisible ( ) const

◆ SetVisible()

void SetVisible ( Bool  v)

◆ GetIterate()

Bool GetIterate ( ) const

◆ SetIterate()

void SetIterate ( Bool  v)

◆ GetIO()

GvPortIO GetIO ( ) const

◆ SetIO()

void SetIO ( GvPortIO  io)

◆ GetMainID()

Int32 GetMainID ( ) const

◆ SetMainID()

void SetMainID ( Int32  id)

◆ GetSubID()

Int32 GetSubID ( ) const

◆ SetSubID()

void SetSubID ( Int32  id)

◆ GetUserID()

Int32 GetUserID ( ) const

◆ SetUserID()

void SetUserID ( Int32  id)

◆ SetValueType()

Bool SetValueType ( GvValueID  type)

◆ GetValueType()

GvValueID GetValueType ( ) const

◆ SetDataType()

Bool SetDataType ( GvDataID  type)

◆ GetDataType()

GvDataID GetDataType ( ) const

◆ GetUserData()

GeData* GetUserData ( )

◆ SetUserData()

void SetUserData ( const GeData data)

◆ GetName()

const String GetName ( GvRealNode node) const

◆ SetName()

void SetName ( const String n)

◆ InitValue()

Bool InitValue ( Int32  cpu_count)

◆ FreeValue()

void FreeValue ( )

◆ SetIncoming()

Bool SetIncoming ( GvRealNode source_node,
GvRealPort source_port,
GvRealNode dest_node,
GvRealPort dest_port 
)

◆ RemoveIncoming()

void RemoveIncoming ( )

◆ GetIncomingDestination()

Bool GetIncomingDestination ( GvRealNode *&  node,
GvRealPort *&  port 
) const

◆ IsIncomingConnected()

Bool IsIncomingConnected ( ) const

◆ GetIncomingSource() [1/2]

Bool GetIncomingSource ( GvRealNode *&  node,
GvRealPort *&  port 
) const

◆ GetIncomingSource() [2/2]

Bool GetIncomingSource ( GvRealNodeData *&  node,
GvRealPort *&  port 
) const

◆ RemoveConnections()

void RemoveConnections ( Bool  remove_incoming = true,
Bool  remove_outgoing = true 
)

◆ AddOutgoing()

Bool AddOutgoing ( GvRealNode node,
GvRealPort port 
)
private

◆ RemoveOutgoing()

void RemoveOutgoing ( GvRealNode node,
GvRealPort port 
)
private

◆ OutgoingExists()

Bool OutgoingExists ( GvRealNode node,
GvRealPort port 
)
private

Friends And Related Function Documentation

◆ GvRealNodeData

friend class GvRealNodeData
friend

◆ GvRealNodeMasterData

friend class GvRealNodeMasterData
friend

◆ GvRealValue

friend class GvRealValue
friend

Member Data Documentation

◆ value

GvPortValue value
private

◆ value_type_id

GvValueID value_type_id
private

◆ value_type_idx

GvValueIndex value_type_idx
private

◆ data_type

GvDataID data_type
private

◆ nr_of_cpus

Int32 nr_of_cpus
private

◆ port_type

GvPortIO port_type
private

◆ flags

GvPortFlags flags
private

◆ incoming

GvConnection incoming
private

◆ outgoing

GvDestArray outgoing
private

◆ main_id

Int32 main_id
private

◆ sub_id

Int32 sub_id
private

◆ user_id

Int32 user_id
private

◆ name

String name
private

◆ userData

GeData userData
private