Assimp  v3.1.1 (June 2014)
internal::Stack< Allocator > Class Template Reference

A type-unsafe stack for storing different types of data. More...

Public Member Functions

template<typename T >
T * Bottom ()
 
void Clear ()
 
bool Empty () const
 
Allocator & GetAllocator ()
 
size_t GetCapacity () const
 
size_t GetSize () const
 
bool HasAllocator () const
 
template<typename T >
T * Pop (size_t count)
 
template<typename T >
RAPIDJSON_FORCEINLINE T * Push (size_t count=1)
 
void ShrinkToFit ()
 
 Stack (Allocator *allocator, size_t stackCapacity)
 
void Swap (Stack &rhs) RAPIDJSON_NOEXCEPT
 
template<typename T >
T * Top ()
 
 ~Stack ()
 

Detailed Description

template<typename Allocator>
class internal::Stack< Allocator >

A type-unsafe stack for storing different types of data.

Template Parameters
AllocatorAllocator for allocating stack memory.

Constructor & Destructor Documentation

§ Stack()

template<typename Allocator>
internal::Stack< Allocator >::Stack ( Allocator *  allocator,
size_t  stackCapacity 
)
inline

§ ~Stack()

template<typename Allocator>
internal::Stack< Allocator >::~Stack ( )
inline

Member Function Documentation

§ Bottom()

template<typename Allocator>
template<typename T >
T* internal::Stack< Allocator >::Bottom ( )
inline

§ Clear()

template<typename Allocator>
void internal::Stack< Allocator >::Clear ( )
inline

§ Empty()

template<typename Allocator>
bool internal::Stack< Allocator >::Empty ( ) const
inline

§ GetAllocator()

template<typename Allocator>
Allocator& internal::Stack< Allocator >::GetAllocator ( )
inline

§ GetCapacity()

template<typename Allocator>
size_t internal::Stack< Allocator >::GetCapacity ( ) const
inline

§ GetSize()

template<typename Allocator>
size_t internal::Stack< Allocator >::GetSize ( ) const
inline

§ HasAllocator()

template<typename Allocator>
bool internal::Stack< Allocator >::HasAllocator ( ) const
inline

§ Pop()

template<typename Allocator>
template<typename T >
T* internal::Stack< Allocator >::Pop ( size_t  count)
inline

§ Push()

template<typename Allocator>
template<typename T >
RAPIDJSON_FORCEINLINE T* internal::Stack< Allocator >::Push ( size_t  count = 1)
inline

§ ShrinkToFit()

template<typename Allocator>
void internal::Stack< Allocator >::ShrinkToFit ( )
inline

§ Swap()

template<typename Allocator>
void internal::Stack< Allocator >::Swap ( Stack< Allocator > &  rhs)
inline

§ Top()

template<typename Allocator>
template<typename T >
T* internal::Stack< Allocator >::Top ( )
inline

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