Torque3D Documentation / _generateds / internal::Stack

internal::Stack

Engine/source/persistence/rapidjson/internal/stack.h

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

More...

Private Attributes

Public Functions

Stack(Allocator * allocator, size_t stackCapacity)
T *
bool
T *
End()
const T *
End()
size_t
size_t
bool
T *
Pop(size_t count)
RAPIDJSON_FORCEINLINE T *
Push(size_t count)
RAPIDJSON_FORCEINLINE T *
PushUnsafe(size_t count)
RAPIDJSON_FORCEINLINE void
Reserve(size_t count)
Swap(Stack & rhs)
T *
Top()
const T *
Top()

Private Functions

Expand(size_t count)
Resize(size_t newCapacity)

Detailed Description

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

Parameters:

Allocator

Allocator for allocating stack memory.

Private Attributes

Allocator * allocator_ 
size_t initialCapacity_ 
Allocator * ownAllocator_ 
char * stack_ 
char * stackEnd_ 
char * stackTop_ 

Public Functions

Stack(Allocator * allocator, size_t stackCapacity)

~Stack()

Bottom()

Bottom()

Clear()

Empty()

End()

End()

GetAllocator()

GetCapacity()

GetSize()

HasAllocator()

Pop(size_t count)

Push(size_t count)

PushUnsafe(size_t count)

Reserve(size_t count)

ShrinkToFit()

Swap(Stack & rhs)

Top()

Top()

Private Functions

Stack(const Stack & )

Destroy()

Expand(size_t count)

operator=(const Stack & )

Resize(size_t newCapacity)