![]() |
Lumiera 0.pre.04
»edit your freedom«
|
#include "lib/typed-counter.hpp"
Utility providing a set of counters, each tied to a specific type.
The actual allocation of id numbers is delegated to TypedContext. Such a counter is used to build symbolic instance IDs with a per-type running counter. Such IDs are used for lib::idi::EntryID and for lib::diff::GenNode.
Definition at line 139 of file typed-counter.hpp.
Public Member Functions | |
| template<class X > | |
| int64_t | get () const |
| template<class X > | |
| int64_t | inc () |
| template<class X > | |
| int64_t | dec () |
| size_t | size () const |
| bool | empty () const |
Private Member Functions | |
| template<typename TY > | |
| IxID | slot () const |
Private Attributes | |
| deque< std::atomic_int64_t > | counters_ |
Additional Inherited Members | |
Static Public Member Functions inherited from Sync< CONF > | |
| static Monitor & | getMonitor (Sync const *forThis) |
|
inlineprivate |
Definition at line 146 of file typed-counter.hpp.
References TypedCounter::counters_, and TypedCounter::size().
Here is the call graph for this function:
|
inline |
Definition at line 164 of file typed-counter.hpp.
References TypedCounter::counters_.
Referenced by WrappedStandardExeBuilder::invokeOriginalBuilder(), TypedAllocationManager::numSlots(), and TypedCounter_test::simpleUsageTest().
Here is the caller graph for this function:
|
inline |
Definition at line 171 of file typed-counter.hpp.
References TypedCounter::counters_.
Referenced by TypedAllocationManager::allocateSlot(), and TypedCounter_test::simpleUsageTest().
Here is the caller graph for this function:
|
inline |
Definition at line 178 of file typed-counter.hpp.
References TypedCounter::counters_.
Referenced by TypedAllocationManager::releaseSlot(), and TypedCounter_test::simpleUsageTest().
Here is the caller graph for this function:
|
inline |
Definition at line 186 of file typed-counter.hpp.
References TypedCounter::counters_.
Referenced by TypedCounter_test::simpleUsageTest(), and TypedCounter::slot().
Here is the caller graph for this function:
|
inline |
Definition at line 187 of file typed-counter.hpp.
References TypedCounter::counters_.
|
mutableprivate |
Definition at line 142 of file typed-counter.hpp.
Referenced by TypedCounter::dec(), TypedCounter::empty(), TypedCounter::get(), TypedCounter::inc(), TypedCounter::size(), and TypedCounter::slot().
Inheritance diagram for TypedCounter:
Collaboration diagram for TypedCounter: