23#if defined(ONIXS_CMEMDH_ENABLE_TRACING)
47#if defined(ONIXS_CMEMDH_ENABLE_TRACING)
48 virtual void trace(std::ostream&) = 0;
66 MemoryPool& operator=(
const MemoryPool&)
73template <
class Object>
87 template <
class Other>
108 template <
class Other>
142 pool_->deallocate(block);
168 template <
class Other>
180template <
class Object,
class OtherObject>
186template <
class Object,
class OtherObject>
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
#define ONIXS_CMEMDH_NAMESPACE_END
#define ONIXS_CMEMDH_NULLPTR
#define ONIXS_CMEMDH_EXPORTED
MemoryPoolAllocator(const MemoryPoolAllocator &other)
MemoryPool & memoryPool() const
MemoryPoolAllocator(const MemoryPoolAllocator< Other > &other)
MemoryPoolAllocator(MemoryPool &memoryPool)
const_pointer address(const_reference x) const
const Order & const_reference
void deallocate(pointer block, size_type)
MemoryPoolAllocator & operator=(const MemoryPoolAllocator< Other > &other)
size_type max_size() const
MemoryPoolAllocator & operator=(const MemoryPoolAllocator &other)
pointer allocate(size_type qty)
void construct(pointer block, const value_type &obj)
void destroy(pointer obj)
const Order * const_pointer
pointer address(reference obj) const
std::ptrdiff_t difference_type
virtual void deallocate(void *)=0
Releases previously allocated memory block.
virtual ~MemoryPool()
Destruction is through descendants.
virtual void release()=0
Releases given instance.
MemoryPool()
Default initialization.
virtual void * allocate(size_t)=0
Allocates memory block of given size.
bool operator!=(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
bool operator==(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
MemoryPool * makeMemoryPool(size_t, size_t, size_t, size_t)
Constructs a memory pool instance according to the given configuration.
MemoryPoolAllocator< Other > other