cppexpose  1.0.0.b785e04f23b8
C++ library for type introspection, reflection, and scripting interface
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
cppexpose::AbstractSignal Class Referenceabstract

Abstract base class for signals. More...

#include <cppexpose/include/cppexpose/signal/AbstractSignal.h>

Inheritance diagram for cppexpose::AbstractSignal:
Inheritance graph
[legend]

Public Member Functions

 AbstractSignal ()
 Constructor. More...
 
virtual ~AbstractSignal ()
 Destructor. More...
 

Protected Member Functions

Connection createConnection () const
 Create new empty connection. More...
 
void disconnect (Connection &connection) const
 Disconnect connection. More...
 
virtual void disconnectId (Connection::Id id) const =0
 Disconnect connection by ID. More...
 

Protected Attributes

Connection::Id m_nextId
 Next free connection ID. More...
 
std::unordered_map< Connection::Id, Connectionm_connections
 Map of connections by ID. More...
 

Friends

class Connection
 

Detailed Description

Abstract base class for signals.

Constructor & Destructor Documentation

cppexpose::AbstractSignal::AbstractSignal ( )

Constructor.

virtual cppexpose::AbstractSignal::~AbstractSignal ( )
virtual

Destructor.

Member Function Documentation

Connection cppexpose::AbstractSignal::createConnection ( ) const
protected

Create new empty connection.

Returns
Connection

Referenced by cppexpose::Signal< Arguments >::connect().

void cppexpose::AbstractSignal::disconnect ( Connection connection) const
protected

Disconnect connection.

Parameters
[in]connectionConnection
virtual void cppexpose::AbstractSignal::disconnectId ( Connection::Id  id) const
protectedpure virtual

Friends And Related Function Documentation

friend class Connection
friend

Member Data Documentation

Connection::Id cppexpose::AbstractSignal::m_nextId
mutableprotected

Next free connection ID.

std::unordered_map<Connection::Id, Connection> cppexpose::AbstractSignal::m_connections
mutableprotected

Map of connections by ID.


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