Static Public Attributes | Static Private Member Functions | Friends
ecl::lite::GlobalSlots< void, Dummy > Class Template Reference

Specialisation for void global slots management. More...

#include <managers.hpp>

List of all members.

Static Public Attributes

static const unsigned int capacity
 Number of global void functions that can be slotted.

Static Private Member Functions

static sigslots::GlobalSlot
< void > * 
addSlot (void(*func)(void))
 Add a slot.
static unsigned int stored (const bool increment=false)
 Number of slots currently stored.

Friends

template<unsigned int Capacity_>
sigslots::Error connect (Signal< void, Capacity_ > &signal, void(*function)(void))
template<typename Data >
unsigned int global_slots_stored ()

Detailed Description

template<typename Dummy>
class ecl::lite::GlobalSlots< void, Dummy >

Specialisation for void global slots management.

Template Parameters:
Dummy: dummy argument to enable capacity to be a const expr for array bounds

Definition at line 325 of file managers.hpp.


Member Function Documentation

template<typename Dummy >
static sigslots::GlobalSlot<void>* ecl::lite::GlobalSlots< void, Dummy >::addSlot ( void(*)(void)  func) [inline, static, private]

Add a slot.

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

Parameters:
func: the function to slot.
Returns:
GlobalSlot* : a pointer to a global slot.

Definition at line 366 of file managers.hpp.

template<typename Dummy >
static unsigned int ecl::lite::GlobalSlots< void, Dummy >::stored ( const bool  increment = false) [inline, static, private]

Number of slots currently stored.

This is used for two purposes, 1) for recall and 2) to increment since it holds a static variable internally. This is triggered by the boolean argument which has a default value that can be hidden when doing 1).

Parameters:
increment: increment the storage value (called from addSlot)
Returns:
: number of slots currently stored.

Definition at line 352 of file managers.hpp.


Friends And Related Function Documentation

template<typename Dummy >
template<unsigned int Capacity_>
sigslots::Error connect ( Signal< void, Capacity_ > &  signal,
void(*)(void)  function 
) [friend]
template<typename Dummy >
template<typename Data >
unsigned int global_slots_stored ( ) [friend]

Definition at line 29 of file utilities.hpp.


Member Data Documentation

template<typename Dummy >
const unsigned int ecl::lite::GlobalSlots< void, Dummy >::capacity [static]

Number of global void functions that can be slotted.

Definition at line 327 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