Show / Hide Table of Contents

Class EmptyState

Dummy implementation of the IStateStack interface. Nothing can be stored within instance of this type. There's no Top of Stack object. Only the stack Depth is correctly tracked according to the number of Push() and Pop() operations already performed on the EmptyStack.

Inheritance
System.Object
EmptyState
Implements
IStateStack
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fusee.Xene
Assembly: Fusee.Xene.dll
Syntax
public class EmptyState : IStateStack

Properties

Depth

Retrieves the stack's depth.

Declaration
public 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
public void Clear()

Pop()

The stack's Pop operation. Decreases the stack Depth about one and restores the previous state.

Declaration
public void Pop()

Push()

The stack's Push operation. Increases the stack Depth about one and copies the top of stack.

Declaration
public void Push()

Implements

IStateStack
Generated by DocFX
GitHub Repo
Back to top