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_ */
Management classes for sigslots lite.
virtual unsigned int stored() const
Definition: managers.hpp:45
Used internally to retrieve info about members lots.
Definition: managers.hpp:43
This is the global slot interface.
Definition: managers.hpp:191
unsigned int member_slots_capacity(const FunctionClass &object)
Definition: utilities.hpp:44
virtual unsigned int capacity() const
Definition: managers.hpp:46
unsigned int member_slots_stored(const FunctionClass &object)
Definition: utilities.hpp:38
static unsigned int stored(const bool increment=false)
Number of slots currently stored.
Definition: managers.hpp:218
unsigned int global_slots_capacity()
Definition: utilities.hpp:33
unsigned int global_slots_stored()
Definition: utilities.hpp:29


ecl_sigslots_lite
Author(s): Daniel Stonier
autogenerated on Mon Jun 10 2019 13:09:06