Interface IStateStack
Defines the minimum set of operations on any data structure to be used as a stack during traversal. The main difference between StateStacks and "normal" stacks (System.Collections.Generic.Stack<T>) is that the Push operation here doesn't take an argument but simply replicates the current state (or rather - memorizes the current state for restoring it later with Push).
Namespace: Fusee.Xene
Assembly: Fusee.Xene.dll
Syntax
public interface IStateStack
Properties
Depth
Retrieves the stack's depth.
Declaration
int Depth { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The current depth of the stack. |
Methods
Clear()
Clears the stack. The Depth will be reset to zero.
Declaration
void Clear()
Pop()
The stack's Pop operation. Decreases the stack Depth about one and restores the previous state.
Declaration
void Pop()
Push()
The stack's Push operation. Increases the stack Depth about one and copies the top of stack.
Declaration
void Push()