The combined struct of members that are allocated in the first buffer of the monotonic allocator.
Definition at line 116 of file sharedmonoval.hpp.
#include <sharedmonoval.hpp>
Public Field Index: | |
TMonoAllocator< TAllocator > | allocator |
The allocator that this class is contained in. | |
lang::Placeholder< T > | custom |
The space for the custom member. The instance will be constructed using placement-new. | |
TLock | lock |
The embedded lock. | |
std::atomic< unsigned int > | refCount |
The reference counter used to implement the std::shared_ptr behavior. | |
Public Method Index: | |
template<typename TEnableIf = TAllocator, ATMP_IF(std::is_default_constructible< TEnableIf >::value) > | |
FieldMembersWithLock (detail::Buffer *firstBuffer, size_t initialBufferSize, unsigned int bufferGrowthInPercent) | |
FieldMembersWithLock (TAllocator &pAllocator, detail::Buffer *firstBuffer, size_t initialBufferSize, unsigned int bufferGrowthInPercent) | |
TMonoAllocator<TAllocator> allocator |
The allocator that this class is contained in.
Definition at line 122 of file sharedmonoval.hpp.
lang::Placeholder<T> custom |
The space for the custom member. The instance will be constructed using placement-new.
Definition at line 119 of file sharedmonoval.hpp.
TLock lock |
The embedded lock.
Definition at line 128 of file sharedmonoval.hpp.
std::atomic<unsigned int> refCount |
The reference counter used to implement the std::shared_ptr
behavior.
Definition at line 125 of file sharedmonoval.hpp.
|
inline |
Constructor. Creates the allocator and initializes refCount. The custom contents will be constructed by an obligatory, separated call to ConstructT.
pAllocator | The chained allocator of the monotonic allocator. |
firstBuffer | The first argument to field allocator. |
initialBufferSize | The second argument to field allocator. |
bufferGrowthInPercent | Optional growth factor in percent, applied to the buffer size with each next buffer allocation. Values provided should be greater than 100. |
Definition at line 139 of file sharedmonoval.hpp.
|
inline |
Alternative constructor missing the allocator instance. This is used only with allocators that are default constructible (like HeapAllocator is).
firstBuffer | The first argument to field allocator. |
initialBufferSize | The second argument to field allocator. |
bufferGrowthInPercent | Optional growth factor in percent, applied to the buffer size with each next buffer allocation. Values provided should be greater than 100. |
Definition at line 156 of file sharedmonoval.hpp.