Classes | Namespaces | Macros | Functions
BentleyAllocator.h File Reference

Provides Bentley specific memory management functions (Bentley/BentleyAllocator.h). More...

#include "Bentley.h"
#include <memory>

Go to the source code of this file.

Classes

struct  BeVirtualMemory
 Utility functions for managing virtual memory. More...
 
class  BentleyAllocator< _Ty >
 An STL-compliant allocator that calls bentleyAllocator_malloc and bentleyAllocator_free. More...
 
struct  BentleyAllocator< _Ty >::rebind< _Other >
 

Namespaces

 Bentley
 The Bentley namespace contains types defined by the Bentley Library.
 

Macros

#define DEFINE_BENTLEY_NEW_DELETE_OPERATORS
 Convenience to declare Bentley overrides of new and delete to allow the operations to be inlined in header files. In this case, it should be included in a public: section. More...
 
#define BENTLEYALLOCATOR_EXPORT   IMPORT_ATTRIBUTE
 

Functions

void * bentleyAllocator_new (size_t)
 
void bentleyAllocator_delete (void *, size_t)
 
void * bentleyAllocator_malloc (size_t)
 
void * bentleyAllocator_realloc (void *, size_t)
 
void bentleyAllocator_free (void *, size_t)
 
void * bentleyAllocator_getNullRefBuffer ()
 
void bentleyAllocator_enableLowFragmentationCRTHeap ()
 
template<class _Ty , class _Other >
bool operator== (const BentleyAllocator< _Ty > &, const BentleyAllocator< _Other > &)
 
template<class _Ty , class _Other >
bool operator!= (const BentleyAllocator< _Ty > &, const BentleyAllocator< _Other > &)
 

Detailed Description

Provides Bentley specific memory management functions (Bentley/BentleyAllocator.h).

Macro Definition Documentation

#define BENTLEYALLOCATOR_EXPORT   IMPORT_ATTRIBUTE
#define DEFINE_BENTLEY_NEW_DELETE_OPERATORS
Value:
void* operator new(size_t size) { return bentleyAllocator_new(size); }\
void operator delete(void *rawMemory, size_t size) { bentleyAllocator_delete(rawMemory, size); }
void bentleyAllocator_delete(void *, size_t)
void * bentleyAllocator_new(size_t)
size_type size() const
Definition: stdcxx/bstdmap.h:214

Convenience to declare Bentley overrides of new and delete to allow the operations to be inlined in header files. In this case, it should be included in a public: section.

Function Documentation

void bentleyAllocator_delete ( void *  ,
size_t   
)
void bentleyAllocator_enableLowFragmentationCRTHeap ( )
void bentleyAllocator_free ( void *  ,
size_t   
)
void* bentleyAllocator_getNullRefBuffer ( )
void* bentleyAllocator_malloc ( size_t  )
void* bentleyAllocator_new ( size_t  )
void* bentleyAllocator_realloc ( void *  ,
size_t   
)

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.