neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neolib::variable_stack< T > Struct Template Reference

#include <thread_local.hpp>

Public Types

typedef T value_type
 
typedef std::unique_ptr< value_typepointer_type
 
typedef std::vector< pointer_typestack_type
 

Public Member Functions

value_typecurrent ()
 
void push ()
 
void pop ()
 

Public Attributes

std::size_t stackPointer = 0
 
stack_type stack
 

Detailed Description

template<typename T>
struct neolib::variable_stack< T >

Definition at line 45 of file thread_local.hpp.

Member Typedef Documentation

◆ pointer_type

template<typename T >
typedef std::unique_ptr<value_type> neolib::variable_stack< T >::pointer_type

Definition at line 48 of file thread_local.hpp.

◆ stack_type

template<typename T >
typedef std::vector<pointer_type> neolib::variable_stack< T >::stack_type

Definition at line 49 of file thread_local.hpp.

◆ value_type

template<typename T >
typedef T neolib::variable_stack< T >::value_type

Definition at line 47 of file thread_local.hpp.

Member Function Documentation

◆ current()

template<typename T >
value_type & neolib::variable_stack< T >::current ( )
inline

Definition at line 54 of file thread_local.hpp.

◆ pop()

template<typename T >
void neolib::variable_stack< T >::pop ( )
inline

Definition at line 69 of file thread_local.hpp.

◆ push()

template<typename T >
void neolib::variable_stack< T >::push ( )
inline

Definition at line 62 of file thread_local.hpp.

Member Data Documentation

◆ stack

Definition at line 52 of file thread_local.hpp.

◆ stackPointer

template<typename T >
std::size_t neolib::variable_stack< T >::stackPointer = 0

Definition at line 51 of file thread_local.hpp.


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