Protected Member Functions | Private Member Functions | Private Attributes | Friends
ecl::lite::MemberSlots< void, FunctionClass, Capacity > Class Template Reference

Specialisation for void member slots management. More...

#include <managers.hpp>

Inheritance diagram for ecl::lite::MemberSlots< void, FunctionClass, Capacity >:
Inheritance graph
[legend]

List of all members.

Protected Member Functions

 MemberSlots ()

Private Member Functions

sigslots::MemberSlot< void,
FunctionClass > * 
addSlot (void(FunctionClass::*func)(void), FunctionClass &instance)
 Add a slot.
unsigned int capacity () const
 The number of slots that can be attached to member functions.
unsigned int stored () const
 The number of slots stored.

Private Attributes

unsigned int size
sigslots::MemberSlot< void,
FunctionClass > 
slots [Capacity]

Friends

template<unsigned int Capacity_, typename FunctionClass_ >
sigslots::Error connect (Signal< void, Capacity_ > &signal, void(FunctionClass_::*f)(void), FunctionClass_ &o)
template<typename Data_ , typename FunctionClass_ >
unsigned int member_slots_capacity (const FunctionClass_ &object)
template<typename Data_ , typename FunctionClass_ >
unsigned int member_slots_stored (const FunctionClass_ &object)

Detailed Description

template<typename FunctionClass, unsigned int Capacity>
class ecl::lite::MemberSlots< void, FunctionClass, Capacity >

Specialisation for void member slots management.

Definition at line 257 of file managers.hpp.


Constructor & Destructor Documentation

template<typename FunctionClass , unsigned int Capacity>
ecl::lite::MemberSlots< void, FunctionClass, Capacity >::MemberSlots ( ) [inline, protected]

Definition at line 274 of file managers.hpp.


Member Function Documentation

template<typename FunctionClass , unsigned int Capacity>
sigslots::MemberSlot<void,FunctionClass>* ecl::lite::MemberSlots< void, FunctionClass, Capacity >::addSlot ( void(FunctionClass::*)(void)  func,
FunctionClass &  instance 
) [inline, private]

Add a slot.

This is used 'under the hood' by the connectors.

Parameters:
func: the function to slot.
instance: the class instance associated with the function.
Returns:
MemberSlot* : a pointer to a member slot.

Definition at line 300 of file managers.hpp.

template<typename FunctionClass , unsigned int Capacity>
unsigned int ecl::lite::MemberSlots< void, FunctionClass, Capacity >::capacity ( ) const [inline, private, virtual]

The number of slots that can be attached to member functions.

Returns:
unsigned int : the maximum capacity.

Reimplemented from ecl::lite::sigslots::MemberSlotsBase< void, FunctionClass >.

Definition at line 289 of file managers.hpp.

template<typename FunctionClass , unsigned int Capacity>
unsigned int ecl::lite::MemberSlots< void, FunctionClass, Capacity >::stored ( ) const [inline, private, virtual]

The number of slots stored.

Returns:
unsigned int : storage size.

Reimplemented from ecl::lite::sigslots::MemberSlotsBase< void, FunctionClass >.

Definition at line 282 of file managers.hpp.


Friends And Related Function Documentation

template<typename FunctionClass , unsigned int Capacity>
template<unsigned int Capacity_, typename FunctionClass_ >
sigslots::Error connect ( Signal< void, Capacity_ > &  signal,
void(FunctionClass_::*)(void)  f,
FunctionClass_ &  o 
) [friend]
template<typename FunctionClass , unsigned int Capacity>
template<typename Data_ , typename FunctionClass_ >
unsigned int member_slots_capacity ( const FunctionClass_ &  object) [friend]
template<typename FunctionClass , unsigned int Capacity>
template<typename Data_ , typename FunctionClass_ >
unsigned int member_slots_stored ( const FunctionClass_ &  object) [friend]

Member Data Documentation

template<typename FunctionClass , unsigned int Capacity>
unsigned int ecl::lite::MemberSlots< void, FunctionClass, Capacity >::size [private]

Definition at line 315 of file managers.hpp.

template<typename FunctionClass , unsigned int Capacity>
sigslots::MemberSlot<void,FunctionClass> ecl::lite::MemberSlots< void, FunctionClass, Capacity >::slots[Capacity] [private]

Definition at line 316 of file managers.hpp.


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


ecl_sigslots_lite
Author(s): Daniel Stonier
autogenerated on Sun Oct 5 2014 23:35:27