BloombergLP::bdlma::MemoryBlockDescriptor

In-core value-semantic class describing the size and address of a memory block.

Synopsis

Declared in <bdlma_memoryblockdescriptor.h>

class MemoryBlockDescriptor;

Description

This is an in-core value-semantic class describing the size and address of a block of memory. A null block descriptor is defined as a descriptor having an address and size of 0. The behavior is undefined for a descriptor whose address is 0, but whose size if not also 0.

Type Aliases

NameDescription
size_type This typedef is an alias for the block size type.

Member Functions

NameDescription
MemoryBlockDescriptor [constructor]Constructors
operator= Assign to this memory block descriptor the value of the specified rhs descriptor and return a reference to this modifiable descriptor.
address Return the address of the modifiable memory block described by this object, or 0 if this is a null descriptor.
isNull Return true if this memory block descriptor describes a null memory block and false otherwise. A null memory block has an address and size of 0.
print Format the attributes of this memory block descriptor to stdout in some reasonable (single-line) format.
setAddressAndSize Set the address and size of the memory block described by this object.
size Return the size of the memory block described by this object.

Non-Member Functions

NameDescription
operator!=Return true if the specified lhs and rhs do not have the same value.
operator==Return true if the specified lhs and rhs have the same value.