Public Member Functions | Private Attributes | List of all members
MemoryAllocator Class Reference

#include <memory_allocator.hpp>

Public Member Functions

returnValue acquire (ExportIndex &_obj)
 
returnValue add (const ExportIndex &_obj)
 
std::vector< ExportIndexgetPool (void)
 
 MemoryAllocator ()
 
returnValue release (const ExportIndex &_obj)
 
 ~MemoryAllocator ()
 

Private Attributes

ObjectPool< ExportIndex, ExportIndexComparatorindices
 

Detailed Description

Definition at line 41 of file memory_allocator.hpp.

Constructor & Destructor Documentation

◆ MemoryAllocator()

MemoryAllocator::MemoryAllocator ( )
inline

Definition at line 44 of file memory_allocator.hpp.

◆ ~MemoryAllocator()

MemoryAllocator::~MemoryAllocator ( )
inline

Definition at line 47 of file memory_allocator.hpp.

Member Function Documentation

◆ acquire()

BEGIN_NAMESPACE_ACADO returnValue MemoryAllocator::acquire ( ExportIndex _obj)

Definition at line 38 of file memory_allocator.cpp.

◆ add()

returnValue MemoryAllocator::add ( const ExportIndex _obj)

Definition at line 67 of file memory_allocator.cpp.

◆ getPool()

std::vector< ExportIndex > MemoryAllocator::getPool ( void  )

Definition at line 78 of file memory_allocator.cpp.

◆ release()

returnValue MemoryAllocator::release ( const ExportIndex _obj)

Definition at line 56 of file memory_allocator.cpp.

Member Data Documentation

◆ indices

ObjectPool<ExportIndex, ExportIndexComparator> MemoryAllocator::indices
private

Definition at line 59 of file memory_allocator.hpp.


The documentation for this class was generated from the following files:


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Mon Feb 28 2022 21:32:22