amino  1.0-beta2
Lightweight Robot Utility Library
mem.hpp File Reference

C++ Memory Management. More...

#include <memory>
#include <limits>
#include <list>
#include <vector>
#include <map>

Go to the source code of this file.

Classes

class  amino::RegionScope
 
class  amino::RegionAllocator< T >
 An STL allocator that allocates out of a memory region. More...
 
struct  amino::RegionAllocator< T >::rebind< U >
 
struct  amino::RegionList< T >
 Typedefs for STL lists using region allocator. More...
 
struct  amino::RegionVector< T >
 Typedefs for STL vector using region allocator. More...
 
struct  amino::RegionMap< K, T, C >
 Typedefs for STL map using region allocator. More...
 

Namespaces

 amino
 amino namespace
 

Functions

void * operator new (size_t n, aa_mem_region_t *reg)
 Allocate memory for an object of a memory region. More...
 
void * operator new[] (size_t n, aa_mem_region_t *reg)
 Allocate memory for an array out of a memory region. More...
 

Detailed Description

C++ Memory Management.

Definition in file mem.hpp.

Function Documentation

◆ operator new()

void* operator new ( size_t  n,
aa_mem_region_t reg 
)
inline

Allocate memory for an object of a memory region.

Do not pass the pointer to delete.

Definition at line 64 of file mem.hpp.

◆ operator new[]()

void* operator new[] ( size_t  n,
aa_mem_region_t reg 
)
inline

Allocate memory for an array out of a memory region.

Do not pass the pointer to delete.

Definition at line 74 of file mem.hpp.