Simulacrum  1.2
Public Types | Public Member Functions | Protected Member Functions | List of all members
Simulacrum::SConnectable Class Reference

#include <sconnectable.h>

Inheritance diagram for Simulacrum::SConnectable:
Inheritance graph
Collaboration diagram for Simulacrum::SConnectable:
Collaboration graph

Public Types

typedef unsigned ssignal_t
 
typedef bool sdepth_t
 

Public Member Functions

 SConnectable ()
 
virtual ~SConnectable ()
 
virtual void refresh (sdepth_t)
 
void emitRefresh (sdepth_t)
 
virtual void signal (ssignal_t, void *=nullptr)
 
void emitSignal (ssignal_t, void *=nullptr)
 
virtual void progress (int)
 
virtual bool sconnect (SConnectable &)
 
virtual bool sconnect (SConnectable &, bool delondiscon)
 
virtual bool sdisconnect (SConnectable &)
 
virtual void disconnectSources ()
 
virtual void disconnectListeners ()
 
virtual void disconnectListeners_Refresh ()
 
virtual bool isConnected (SConnectable &) const
 
virtual bool isConnected (SConnectable *) const
 
virtual void sconfigure (const std::string &)
 
virtual SConnectableend ()
 
virtual SConnectablepenum ()
 
virtual SConnectablepred ()
 
virtual SConnectablesucc ()
 
virtual void deleteOnDisconnect (bool)
 
virtual bool deleteOnDisconnect ()
 
virtual void setName (const std::string &)
 
virtual const std::string & getName () const
 
const std::map< std::string, double > & parameters ()
 
const std::map< std::string, std::string > & properties ()
 
bool hasProperty (const std::string &) const
 
bool hasParameter (const std::string &) const
 
void setProperty (const std::string &, const std::string &)
 
void setParameter (const std::string &, double)
 
std::string getProperty (const std::string &) const
 
double getParameter (const std::string &) const
 
- Public Member Functions inherited from Simulacrum::SLockable
virtual void lock ()
 
virtual void unlock ()
 
virtual bool try_lock ()
 
virtual void wait ()
 
virtual void refIncr ()
 
virtual void refDecr ()
 
virtual int refCount ()
 
 SLockable ()
 
 SLockable (const SLockable &)
 
virtual ~SLockable ()
 

Protected Member Functions

virtual bool addListener (SConnectable &)
 
virtual bool removeListener (SConnectable &)
 
virtual bool addTarget (SConnectable &)
 
virtual bool removeTarget (SConnectable &)
 

Member Typedef Documentation

◆ sdepth_t

◆ ssignal_t

Constructor & Destructor Documentation

◆ SConnectable()

SConnectable::SConnectable ( )

◆ ~SConnectable()

SConnectable::~SConnectable ( )
virtual

Member Function Documentation

◆ addListener()

bool SConnectable::addListener ( SConnectable newlis)
protectedvirtual

◆ addTarget()

bool SConnectable::addTarget ( SConnectable newtarg)
protectedvirtual

◆ deleteOnDisconnect() [1/2]

bool SConnectable::deleteOnDisconnect ( )
virtual

◆ deleteOnDisconnect() [2/2]

void SConnectable::deleteOnDisconnect ( bool  dodel)
virtual

◆ disconnectListeners()

void SConnectable::disconnectListeners ( )
virtual

◆ disconnectListeners_Refresh()

void SConnectable::disconnectListeners_Refresh ( )
virtual

◆ disconnectSources()

void SConnectable::disconnectSources ( )
virtual

◆ emitRefresh()

void SConnectable::emitRefresh ( SConnectable::sdepth_t  rval)

◆ emitSignal()

void SConnectable::emitSignal ( ssignal_t  ,
void *  = nullptr 
)

◆ end()

SConnectable & SConnectable::end ( )
virtual

◆ getName()

const std::string & SConnectable::getName ( ) const
virtual

Reimplemented in Simulacrum::SSlicer.

◆ getParameter()

double SConnectable::getParameter ( const std::string &  param) const

◆ getProperty()

std::string SConnectable::getProperty ( const std::string &  prop) const

◆ hasParameter()

bool SConnectable::hasParameter ( const std::string &  param) const

◆ hasProperty()

bool SConnectable::hasProperty ( const std::string &  prop) const

◆ isConnected() [1/2]

bool SConnectable::isConnected ( SConnectable targ) const
virtual

◆ isConnected() [2/2]

bool SConnectable::isConnected ( SConnectable targ) const
virtual

◆ parameters()

const std::map< std::string, double > & SConnectable::parameters ( )

◆ penum()

SConnectable & SConnectable::penum ( )
virtual

◆ pred()

SConnectable & SConnectable::pred ( )
virtual

◆ progress()

void SConnectable::progress ( int  prog)
virtual

◆ properties()

const std::map< std::string, std::string > & SConnectable::properties ( )

◆ refresh()

void SConnectable::refresh ( SConnectable::sdepth_t  rval)
virtual

◆ removeListener()

bool SConnectable::removeListener ( SConnectable oldlis)
protectedvirtual

◆ removeTarget()

bool SConnectable::removeTarget ( SConnectable oldtarg)
protectedvirtual

◆ sconfigure()

void SConnectable::sconfigure ( const std::string &  )
virtual

Reimplemented in Simulacrum::SSlicer.

◆ sconnect() [1/2]

bool SConnectable::sconnect ( SConnectable starget)
virtual

◆ sconnect() [2/2]

bool SConnectable::sconnect ( SConnectable starget,
bool  delondiscon 
)
virtual

◆ sdisconnect()

bool SConnectable::sdisconnect ( SConnectable starget)
virtual

◆ setName()

void SConnectable::setName ( const std::string &  newname)
virtual

Reimplemented in Simulacrum::SSlicer.

◆ setParameter()

void SConnectable::setParameter ( const std::string &  param,
double  val 
)

◆ setProperty()

void SConnectable::setProperty ( const std::string &  prop,
const std::string &  val 
)

◆ signal()

void SConnectable::signal ( ssignal_t  ,
void *  = nullptr 
)
virtual

◆ succ()

SConnectable & SConnectable::succ ( )
virtual

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