7#ifndef MEMORY_SEGMENT_LOCAL_H
8#define MEMORY_SEGMENT_LOCAL_H
53 virtual void deallocate(
void* ptr,
size_t size);
88 size_t allocated_size_;
90 std::map<std::string, void*> named_addrs_;
malloc/free based Memory Segment class
virtual bool setNamedAddressImpl(const char *name, void *addr)
Local segment version of setNamedAddress.
virtual bool clearNamedAddressImpl(const char *name)
Local segment version of clearNamedAddress.
virtual void * allocate(size_t size)
Allocate/acquire a segment of memory.
virtual bool allMemoryDeallocated() const
Check if all allocated memory was deallocated.
virtual ~MemorySegmentLocal()
Destructor.
MemorySegmentLocal()
Constructor.
virtual NamedAddressResult getNamedAddressImpl(const char *name) const
Local segment version of getNamedAddress.
virtual void deallocate(void *ptr, size_t size)
Free/release a segment of memory.
std::pair< bool, void * > NamedAddressResult
Type definition for result returned by getNamedAddress()
Defines the logger used by the top-level component of kea-lfc.