8#ifndef INCLUDED_BDLMA_MEMORYBLOCKDESCRIPTOR
9#define INCLUDED_BDLMA_MEMORYBLOCKDESCRIPTOR
91#include <bdlscm_version.h>
203: d_address_p(address)
212: d_address_p(original.d_address_p)
213, d_size(original.d_size)
222 d_address_p = rhs.d_address_p;
254 return 0 == d_address_p;
262 const MemoryBlockDescriptor& rhs)
264 return lhs.address() == rhs.address() && lhs.size() == rhs.size();
269 const MemoryBlockDescriptor& rhs)
271 return !(lhs == rhs);
Definition bdlma_memoryblockdescriptor.h:110
size_type size() const
Return the size of the memory block described by this object.
Definition bdlma_memoryblockdescriptor.h:246
MemoryBlockDescriptor()
Create a memory block descriptor having an address and size of 0.
Definition bdlma_memoryblockdescriptor.h:194
MemoryBlockDescriptor & operator=(const MemoryBlockDescriptor &rhs)
Definition bdlma_memoryblockdescriptor.h:219
bool isNull() const
Definition bdlma_memoryblockdescriptor.h:252
void * address() const
Definition bdlma_memoryblockdescriptor.h:239
~MemoryBlockDescriptor()=default
void setAddressAndSize(void *address, size_type size)
Definition bdlma_memoryblockdescriptor.h:229
bsls::Types::size_type size_type
Definition bdlma_memoryblockdescriptor.h:114
#define BSLS_ASSERT(X)
Definition bsls_assert.h:1804
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition bdlma_alignedallocator.h:276
bool operator==(const MemoryBlockDescriptor &lhs, const MemoryBlockDescriptor &rhs)
bool operator!=(const MemoryBlockDescriptor &lhs, const MemoryBlockDescriptor &rhs)
std::size_t size_type
Definition bsls_types.h:124