Click or drag to resize

EmptyState Class

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 Hierarchy
SystemObject
  Fusee.XeneEmptyState

Namespace:  Fusee.Xene
Assembly:  Fusee.Xene (in Fusee.Xene.dll) Version: 0.7.0.0 (0.7.0.0)
Syntax
C#
public class EmptyState : IStateStack

The EmptyState type exposes the following members.

Constructors
  NameDescription
Public methodEmptyState
Initializes a new instance of the EmptyState class
Top
Properties
  NameDescription
Public propertyDepth
Retrieves the stack's depth.
Top
Methods
  NameDescription
Public methodClear
Clears the stack. The Depth will be reset to zero.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPop
The stack's Pop operation. Decreases the stack Depth about one and restores the previous state.
Public methodPush
The stack's Push operation. Increases the stack Depth about one and copies the top of stack.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also