DHART
Loading...
Searching...
No Matches
nanort::StackAllocator< T, stack_capacity >::Source Struct Reference

#include <nanort.h>

+ Collaboration diagram for nanort::StackAllocator< T, stack_capacity >::Source:

Public Member Functions

 Source ()
 
T * stack_buffer ()
 
const T * stack_buffer () const
 

Public Attributes

char stack_buffer_ [sizeof(T[stack_capacity])]
 
bool used_stack_buffer_
 

Detailed Description

template<typename T, size_t stack_capacity>
struct nanort::StackAllocator< T, stack_capacity >::Source

Definition at line 146 of file nanort.h.

Constructor & Destructor Documentation

◆ Source()

template<typename T , size_t stack_capacity>
nanort::StackAllocator< T, stack_capacity >::Source::Source ( )
inline

Definition at line 147 of file nanort.h.

Member Function Documentation

◆ stack_buffer() [1/2]

template<typename T , size_t stack_capacity>
T * nanort::StackAllocator< T, stack_capacity >::Source::stack_buffer ( )
inline

Definition at line 150 of file nanort.h.

References nanort::StackAllocator< T, stack_capacity >::Source::stack_buffer_.

Referenced by nanort::StackAllocator< T, stack_capacity >::allocate(), and nanort::StackAllocator< T, stack_capacity >::deallocate().

+ Here is the caller graph for this function:

◆ stack_buffer() [2/2]

template<typename T , size_t stack_capacity>
const T * nanort::StackAllocator< T, stack_capacity >::Source::stack_buffer ( ) const
inline

Member Data Documentation

◆ stack_buffer_

template<typename T , size_t stack_capacity>
char nanort::StackAllocator< T, stack_capacity >::Source::stack_buffer_[sizeof(T[stack_capacity])]

◆ used_stack_buffer_

template<typename T , size_t stack_capacity>
bool nanort::StackAllocator< T, stack_capacity >::Source::used_stack_buffer_

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