FEDEM Model Database  R8.0
Source code of the FEDEM model database
Public Member Functions | Protected Attributes | Static Protected Attributes | Private Types | Private Attributes | List of all members
FFaSlotBase Class Referenceabstract

The most basic slot class. More...

#include <FFaSwitchBoard.H>

Public Member Functions

 FFaSlotBase ()
 Default constructor. More...
 
virtual ~FFaSlotBase ()
 The destructor removes this from the switchboard. More...
 
virtual bool operator== (FFaSlotBase &otherSlot)=0
 Equality operator. More...
 
unsigned int getTypeID () const
 Returns the myTypeID of this slot. More...
 
bool addConnection (FFaSwitchBoardConnector *sender, int subject)
 
bool removeConnection (FFaSwitchBoardConnector *sender, int subject)
 
virtual FFaSwitchBoardConnector * getObject ()=0
 
virtual anyMethodType getMethod ()=0
 
virtual anyFunctionType getFunction ()=0
 
virtual bool isStaticSlot () const =0
 

Protected Attributes

unsigned int myTypeID
 Class type Id of this slot. More...
 

Static Protected Attributes

static int uniqueTypeId = 0
 Running counter to ensure unique Ids. More...
 

Private Types

using IntMap = std::map< int, int >
 
using SwbMap = std::map< FFaSwitchBoardConnector *, IntMap >
 Convenience type alias, switchboard connection mapping. More...
 

Private Attributes

SwbMap mySwitchBoardLookups
 sender --> (subject,count) More...
 
bool IAmDeletingMe
 Set to true during destruction. More...
 

Detailed Description

The most basic slot class.

Member Typedef Documentation

◆ IntMap

using FFaSlotBase::IntMap = std::map<int,int>
private

Convenience type alias

◆ SwbMap

Convenience type alias, switchboard connection mapping.

Constructor & Destructor Documentation

◆ FFaSlotBase()

FFaSlotBase::FFaSlotBase ( )
inline

Default constructor.

◆ ~FFaSlotBase()

FFaSlotBase::~FFaSlotBase ( )
virtual

The destructor removes this from the switchboard.

Member Function Documentation

◆ addConnection()

bool FFaSlotBase::addConnection ( FFaSwitchBoardConnector *  sender,
int  subject 
)

◆ getFunction()

virtual anyFunctionType FFaSlotBase::getFunction ( )
pure virtual

◆ getMethod()

virtual anyMethodType FFaSlotBase::getMethod ( )
pure virtual

◆ getObject()

virtual FFaSwitchBoardConnector* FFaSlotBase::getObject ( )
pure virtual

◆ getTypeID()

unsigned int FFaSlotBase::getTypeID ( ) const
inline

Returns the myTypeID of this slot.

◆ isStaticSlot()

virtual bool FFaSlotBase::isStaticSlot ( ) const
pure virtual

◆ operator==()

virtual bool FFaSlotBase::operator== ( FFaSlotBase &  otherSlot)
pure virtual

Equality operator.

◆ removeConnection()

bool FFaSlotBase::removeConnection ( FFaSwitchBoardConnector *  sender,
int  subject 
)

Member Data Documentation

◆ IAmDeletingMe

bool FFaSlotBase::IAmDeletingMe
private

Set to true during destruction.

◆ mySwitchBoardLookups

SwbMap FFaSlotBase::mySwitchBoardLookups
private

sender --> (subject,count)

◆ myTypeID

unsigned int FFaSlotBase::myTypeID
protected

Class type Id of this slot.

◆ uniqueTypeId

int FFaSlotBase::uniqueTypeId = 0
staticprotected

Running counter to ensure unique Ids.


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