An object of type alloc_ct contains information about one allocated memory block. More...
#include <class_alloc.h>
Public Member Functions | |
size_t | size () const |
The allocated size in bytes. | |
void const * | start () const |
A pointer to the start of the allocated memory block. | |
memblk_types_nt | memblk_type () const |
A flag indicating the type of allocation. | |
type_info_ct const & | type_info () const |
A reference to the type info of the pointer to the allocated memory block. More... | |
char const * | description () const |
A pointer to a description of the allocated memory block. More... | |
struct timeval const & | time () const |
The time at which this allocation was made. More... | |
location_ct const & | location () const |
The source file location that the allocator was called from. More... | |
Protected Member Functions | |
alloc_ct (void const *s, size_t sz, memblk_types_nt type, type_info_ct const &ti, struct timeval const &t, location_ct const *l) | |
Construct an alloc_ct object with attributes s, sz, type, ti, t and l. | |
virtual | ~alloc_ct () |
Destructor. | |
Protected Attributes | |
void const * | a_start |
Duplicate of (original) memblk_key_ct. | |
size_t | a_size |
Duplicate of (original) memblk_key_ct. | |
memblk_types_nt | a_memblk_type |
A flag which indicates the type of allocation. | |
type_info_ct const * | type_info_ptr |
Type info of related object. | |
_private_::smart_ptr | a_description |
A label describing this memblk. | |
struct timeval | a_time |
The time at which the memory was allocated. | |
location_ct const * | M_location |
Pointer into the location cache, with the source file, function and line number from where the allocator was called from. | |
An object of type alloc_ct contains information about one allocated memory block.
|
inline |
A pointer to a description of the allocated memory block.
This is a character string that is the result of writing the second parameter of AllocTag() to an ostrstream.
References a_description.
|
inline |
The source file location that the allocator was called from.
References M_location.
|
inline |
The time at which this allocation was made.
References a_time.
|
inline |
A reference to the type info of the pointer to the allocated memory block.
p1
is the first parameter that was passed to AllocTag(). References type_info_ptr.