FEDEM Model Database  R8.0
Source code of the FEDEM model database
Functions
FFaSwitchBoard Namespace Reference

Static switchboard that holds the connection information. More...

Functions

void connect (FFaSwitchBoardConnector *sender, int subject, FFaSlotBase *slot)
 Adds a new slot to the switchboard. More...
 
void disConnect (FFaSwitchBoardConnector *sender, int subject, FFaSlotBase *slot)
 Removes slot from the switchboard. More...
 
void removeAllOwnerConnections (FFaSwitchBoardConnector *owner)
 Removes all slots connected to owener. More...
 
FFaSlotList & getSlots (FFaSwitchBoardConnector *sender, int subject, unsigned int typeID)
 Used internally in switchboard mechanism classes. More...
 
FFaSlotList::iterator nextValidSlot (FFaSlotList::iterator it, FFaSlotList &slots, FFaSwitchBoardConnector *sender, int subject)
 Used internally by the switchboard mechanism classes. More...
 
void removeSlotReference (FFaSwitchBoardConnector *sender, int subject, FFaSlotBase *slot)
 Used by FFaSlotBase only. More...
 
void removeAllSenderConnections (FFaSwitchBoardConnector *sender)
 Used by FFaSwitchBoardConnector only. More...
 
void removeInstance ()
 Cleans up the heap-allocated switchboard container. More...
 

Detailed Description

Static switchboard that holds the connection information.

Function Documentation

◆ connect()

void FFaSwitchBoard::connect ( FFaSwitchBoardConnector *  sender,
int  subject,
FFaSlotBase *  slot 
)

Adds a new slot to the switchboard.

◆ disConnect()

void FFaSwitchBoard::disConnect ( FFaSwitchBoardConnector *  sender,
int  subject,
FFaSlotBase *  slot 
)

Removes slot from the switchboard.

◆ getSlots()

FFaSlotList & FFaSwitchBoard::getSlots ( FFaSwitchBoardConnector *  sender,
int  subject,
unsigned int  typeID 
)

Used internally in switchboard mechanism classes.

◆ nextValidSlot()

FFaSlotList::iterator FFaSwitchBoard::nextValidSlot ( FFaSlotList::iterator  it,
FFaSlotList &  slots,
FFaSwitchBoardConnector *  sender,
int  subject 
)

Used internally by the switchboard mechanism classes.

Function that finds the next slot that is available and valid for invoking. Used when a signal is emitted using the FFsSwitchBoardCall function to iterate over the slots that can be deleted as we go.

◆ removeAllOwnerConnections()

void FFaSwitchBoard::removeAllOwnerConnections ( FFaSwitchBoardConnector *  owner)

Removes all slots connected to owener.

◆ removeAllSenderConnections()

void FFaSwitchBoard::removeAllSenderConnections ( FFaSwitchBoardConnector *  sender)

Used by FFaSwitchBoardConnector only.

◆ removeInstance()

void FFaSwitchBoard::removeInstance ( )

Cleans up the heap-allocated switchboard container.

◆ removeSlotReference()

void FFaSwitchBoard::removeSlotReference ( FFaSwitchBoardConnector *  sender,
int  subject,
FFaSlotBase *  slot 
)

Used by FFaSlotBase only.