IT++ Logo
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Friends | List of all members
itpp::Base_Slot< DataType > Class Template Referenceabstract

Base Slot class. More...

#include <itpp/protocol/signals_slots.h>

Inheritance diagram for itpp::Base_Slot< DataType >:
itpp::Slot< itpp::ACK_Channel, itpp::ACK * > itpp::Slot< itpp::Packet_Channel, bool > itpp::Slot< itpp::Packet_Channel, itpp::Link_Packet * > itpp::Slot< itpp::Packet_Channel, int > itpp::Slot< itpp::Packet_Generator, bool > itpp::Slot< itpp::Packet_Generator, itpp::Packet * > itpp::Slot< itpp::Selective_Repeat_ARQ_Receiver, itpp::Array< itpp::Packet * > > itpp::Slot< itpp::Selective_Repeat_ARQ_Sender, itpp::Packet * > itpp::Slot< itpp::Selective_Repeat_ARQ_Sender, itpp::Array< itpp::Packet * > > itpp::Slot< itpp::Selective_Repeat_ARQ_Sender, void * > itpp::Slot< itpp::Selective_Repeat_ARQ_Sender, int > itpp::Slot< itpp::Sink, itpp::Packet * > itpp::Slot< itpp::TCP_Client_Application, int > itpp::Slot< itpp::TCP_Receiver, itpp::Packet * > itpp::Slot< itpp::TCP_Receiver, std::string > itpp::Slot< itpp::TTimer, double > itpp::Slot< itpp::TCP_Sender, itpp::Packet * > itpp::Slot< itpp::TCP_Sender, std::string > itpp::Slot< ObjectType, DataType >

Public Member Functions

 Base_Slot (const std::string slot_name="Unamed Base_Slot")
 Default Constructor.
 
virtual ~Base_Slot ()
 Desctuctor.
 
void set_name (const std::string &slot_name)
 set slot name
 
virtual void operator() (DataType signal)=0
 ADD DOCUMENTATION HERE.
 

Protected Types

typedef std::list< Signal< DataType > *, std::allocator< Signal< DataType > * > >::iterator Signal_Iterator
 ADD DOCUMENTATION HERE.
 

Protected Member Functions

void _connect (Signal< DataType > *signal)
 ADD DOCUMENTATION HERE.
 
void _disconnect (Signal< DataType > *signal)
 ADD DOCUMENTATION HERE.
 

Protected Attributes

std::string name
 ADD DOCUMENTATION HERE.
 
std::list< Signal< DataType > *, std::allocator< Signal< DataType > * > > connected_signals
 ADD DOCUMENTATION HERE.
 

Friends

class Signal< DataType >
 

Detailed Description

template<class DataType>
class itpp::Base_Slot< DataType >

Base Slot class.

Definition at line 184 of file signals_slots.h.

Member Typedef Documentation

◆ Signal_Iterator

template<class DataType >
typedef std::list<Signal<DataType>*,std::allocator<Signal<DataType>*>>::iterator itpp::Base_Slot< DataType >::Signal_Iterator
protected

ADD DOCUMENTATION HERE.

Definition at line 204 of file signals_slots.h.

Constructor & Destructor Documentation

◆ Base_Slot()

template<class DataType >
itpp::Base_Slot< DataType >::Base_Slot ( const std::string  slot_name = "Unamed Base_SlotDataType >")

Default Constructor.

Definition at line 539 of file signals_slots.h.

◆ ~Base_Slot()

template<class DataType >
itpp::Base_Slot< DataType >::~Base_Slot ( )
virtual

Desctuctor.

Definition at line 551 of file signals_slots.h.

Member Function Documentation

◆ set_name()

template<class DataType >
void itpp::Base_Slot< DataType >::set_name ( const std::string &  slot_name)

set slot name

Definition at line 545 of file signals_slots.h.

◆ operator()()

template<class DataType >
virtual void itpp::Base_Slot< DataType >::operator() ( DataType  signal)
pure virtual

◆ _connect()

template<class DataType >
void itpp::Base_Slot< DataType >::_connect ( Signal< DataType > *  signal)
protected

ADD DOCUMENTATION HERE.

Definition at line 566 of file signals_slots.h.

◆ _disconnect()

template<class DataType >
void itpp::Base_Slot< DataType >::_disconnect ( Signal< DataType > *  signal)
protected

ADD DOCUMENTATION HERE.

Definition at line 572 of file signals_slots.h.

Friends And Related Symbol Documentation

◆ Signal< DataType >

template<class DataType >
friend class Signal< DataType >
friend

Definition at line 175 of file signals_slots.h.

Member Data Documentation

◆ name

template<class DataType >
std::string itpp::Base_Slot< DataType >::name
protected

ADD DOCUMENTATION HERE.

Definition at line 206 of file signals_slots.h.

◆ connected_signals

template<class DataType >
std::list<Signal<DataType>*, std::allocator<Signal<DataType>* > > itpp::Base_Slot< DataType >::connected_signals
protected

ADD DOCUMENTATION HERE.

Definition at line 212 of file signals_slots.h.


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

Generated on Tue Aug 17 2021 10:59:15 for IT++ by Doxygen 1.9.8