8#ifndef INCLUDED_BDLMA_MEMORYBLOCKDESCRIPTOR
9#define INCLUDED_BDLMA_MEMORYBLOCKDESCRIPTOR
91#include <bdlscm_version.h>
206: d_address_p(address)
215: d_address_p(original.d_address_p)
216, d_size(original.d_size)
225 d_address_p = rhs.d_address_p;
257 return 0 == d_address_p;
265 const MemoryBlockDescriptor& rhs)
267 return lhs.address() == rhs.address() && lhs.size() == rhs.size();
272 const MemoryBlockDescriptor& rhs)
Definition bdlma_memoryblockdescriptor.h:111
size_type size() const
Return the size of the memory block described by this object.
Definition bdlma_memoryblockdescriptor.h:249
MemoryBlockDescriptor()
Create a memory block descriptor having an address and size of 0.
Definition bdlma_memoryblockdescriptor.h:197
MemoryBlockDescriptor & operator=(const MemoryBlockDescriptor &rhs)
Definition bdlma_memoryblockdescriptor.h:222
bool isNull() const
Definition bdlma_memoryblockdescriptor.h:255
void * address() const
Definition bdlma_memoryblockdescriptor.h:242
~MemoryBlockDescriptor()=default
Destroy this object.
void setAddressAndSize(void *address, size_type size)
Definition bdlma_memoryblockdescriptor.h:232
bsls::Types::size_type size_type
Definition bdlma_memoryblockdescriptor.h:115
#define BSLS_ASSERT(X)
Definition bsls_assert.h:1976
#define BSLS_IDENT(str)
BSLS_IDENT() - insert string into .comment binary segment (if supported)
Definition bsls_ident.h:238
Definition bdlma_alignedallocator.h:278
bool operator==(const MemoryBlockDescriptor &lhs, const MemoryBlockDescriptor &rhs)
bool operator!=(const MemoryBlockDescriptor &lhs, const MemoryBlockDescriptor &rhs)
ALLOCATOR const STRING_VIEW_LIKE_TYPE & rhs
Definition bslstl_string.h:3918
ALLOCATOR & lhs
Definition bslstl_string.h:3917
std::size_t size_type
Definition bsls_types.h:126