iLab Neuromorphic Robotics Toolkit  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nrt::memorydetail::aligned_alloc< src_type, N > Struct Template Reference

#include <nrt/Core/Memory/details/AllocationHelpers.H>

template<class src_type, size_t N>
struct nrt::memorydetail::aligned_alloc< src_type, N >

Allocate memory that is aligned on an N-byte boundary.

Definition at line 318 of file AllocationHelpers.H.

Public Member Functions

 aligned_alloc (aligned_alloc const &other)=delete
 
void set_debug (bool do_debug)
 
void set_allow_caching (bool on)
 
void show_stats (int verbosity, const char *pfx, const size_t block_size, const size_t overhead) const
 
void * allocate (size_t user_nbytes)
 
void deallocate (void *user_addr)
 
void release_free_mem ()
 

Public Attributes

src_type src_alloc
 
bool do_debug_printing
 
double nbytes_allocated
 
size_t nallocations
 
size_t nbytes_current
 
size_t nallocations_current
 

The documentation for this struct was generated from the following file: