Click or drag to resize

CollapsingStateStackT Class

An IStateStack implementation behaving better in situations where many subsequent Push (and Pop) operations occur without actually altering the Tos contents.
Inheritance Hierarchy
SystemObject
  Fusee.XeneCollapsingStateStackT

Namespace:  Fusee.Xene
Assembly:  Fusee.Xene (in Fusee.Xene.dll) Version: 0.7.0.0 (0.7.0.0)
Syntax
C#
public class CollapsingStateStack<T> : IStateStack

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "T:Fusee.Xene.CollapsingStateStack`1"]

The CollapsingStateStackT type exposes the following members.

Constructors
  NameDescription
Public methodCollapsingStateStackT
Initializes a new instance of the CollapsingStateStackT class.
Top
Properties
  NameDescription
Public propertyDepth
Retrieves the stack's depth.
Public propertyTos
Gets or sets the Top of stack.
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
Remarks
Using instances of this class is recommended if the Type parameter is a large value type. Defines the Tos property granting read and write access the current Top of stack. The type of the entries stored within the stack.
See Also