utilities.hpp
Go to the documentation of this file.
1 
8 /*****************************************************************************
9 ** Ifdefs
10 *****************************************************************************/
11 
12 #ifndef ECL_SIGSLOTS_LITE_UTILITY_HPP_
13 #define ECL_SIGSLOTS_LITE_UTILITY_HPP_
14 
15 /*****************************************************************************
16 ** Includes
17 *****************************************************************************/
18 
19 #include "managers.hpp"
20 
21 /*****************************************************************************
22 ** Namespaces
23 *****************************************************************************/
24 
25 namespace ecl {
26 namespace lite {
27 
28 template <typename Data>
29 unsigned int global_slots_stored() {
31 }
32 template <typename Data>
33 unsigned int global_slots_capacity() {
35 }
36 
37 template <typename Data, typename FunctionClass>
38 unsigned int member_slots_stored(const FunctionClass &object) {
39  const sigslots::MemberSlotsBase<Data,FunctionClass> &member_slots = object;
40  return member_slots.stored();
41 }
42 
43 template <typename Data, typename FunctionClass>
44 unsigned int member_slots_capacity(const FunctionClass &object) {
45  const sigslots::MemberSlotsBase<Data,FunctionClass> &member_slots = object;
46  return member_slots.capacity();
47 }
48 
49 } // namespace lite
50 } // namespace ecl
51 
52 #endif /* ECL_SIGSLOTS_LITE_UTILITY_HPP_ */
ecl::lite::GlobalSlots::stored
static unsigned int stored(const bool increment=false)
Number of slots currently stored.
Definition: managers.hpp:232
managers.hpp
Management classes for sigslots lite.
ecl::lite::GlobalSlots::capacity
static const unsigned int capacity
Number of global functions of this type that can be slotted.
Definition: managers.hpp:207
ecl::lite::member_slots_capacity
unsigned int member_slots_capacity(const FunctionClass &object)
Definition: utilities.hpp:56
ecl::lite::sigslots::MemberSlotsBase::capacity
virtual unsigned int capacity() const
Definition: managers.hpp:62
ecl::lite::global_slots_capacity
unsigned int global_slots_capacity()
Definition: utilities.hpp:45
ecl::lite::global_slots_stored
unsigned int global_slots_stored()
Definition: utilities.hpp:41
ecl::lite::sigslots::MemberSlotsBase
Used internally to retrieve info about members lots.
Definition: managers.hpp:57
ecl
ecl::lite::member_slots_stored
unsigned int member_slots_stored(const FunctionClass &object)
Definition: utilities.hpp:50


ecl_sigslots_lite
Author(s): Daniel Stonier
autogenerated on Wed Mar 2 2022 00:13:56