Dillo v3.1.1-119-g140d9ebd
Loading...
Searching...
No Matches
lout::signal::Receiver Class Reference

The base class for signal receiver base classes. More...

#include <signal.hh>

Public Member Functions

 Receiver ()
 
 ~Receiver ()
 
void intoStringBuffer (misc::StringBuffer *sb)
 Store a textual representation of the object in a misc::StringBuffer.
 
- Public Member Functions inherited from lout::object::Object
virtual ~Object ()
 The destructor is defined as virtual (but not abstract), so that destruction of Object's works properly.
 
virtual bool equals (Object *other)
 Returns, whether two objects are equal.
 
virtual int hashValue ()
 Return a hash value for the object.
 
virtual Objectclone ()
 Return an exact copy of the object.
 
const char * toString ()
 Use object::Object::intoStringBuffer to return a textual representation of the object.
 
virtual size_t sizeOf ()
 Return the number of bytes, this object totally uses.
 

Private Member Functions

void connectTo (Emitter *emitter)
 
void unconnectFrom (Emitter *emitter)
 

Private Attributes

container::typed::List< Emitter > * emitters
 

Friends

class Emitter
 

Detailed Description

The base class for signal receiver base classes.

If defining a signal group, a sub class of this class must be defined, in which only the abstract signal methods must be defined.

See also
signal

Definition at line 253 of file signal.hh.

Constructor & Destructor Documentation

◆ Receiver()

lout::signal::Receiver::Receiver ( )

Definition at line 113 of file signal.cc.

References emitters.

◆ ~Receiver()

lout::signal::Receiver::~Receiver ( )

Definition at line 118 of file signal.cc.

References emitters, and lout::signal::Emitter::unconnect().

Member Function Documentation

◆ connectTo()

void lout::signal::Receiver::connectTo ( Emitter emitter)
private

Definition at line 133 of file signal.cc.

References emitters.

Referenced by lout::signal::Emitter::connect().

◆ intoStringBuffer()

void lout::signal::Receiver::intoStringBuffer ( misc::StringBuffer sb)
virtual

Store a textual representation of the object in a misc::StringBuffer.

This is used by object::Object::toString.

Reimplemented from lout::object::Object.

Definition at line 127 of file signal.cc.

References lout::misc::StringBuffer::append().

◆ unconnectFrom()

void lout::signal::Receiver::unconnectFrom ( Emitter emitter)
private

Definition at line 138 of file signal.cc.

References emitters.

Referenced by lout::signal::Emitter::~Emitter().

Friends And Related Symbol Documentation

◆ Emitter

friend class Emitter
friend

Definition at line 255 of file signal.hh.

Member Data Documentation

◆ emitters

container::typed::List<Emitter>* lout::signal::Receiver::emitters
private

Definition at line 258 of file signal.hh.

Referenced by connectTo(), Receiver(), unconnectFrom(), and ~Receiver().


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