Struct TMP_XmlTagStack<T>
Structure used to track XML tags of various types.
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: TMPro
Syntax
public struct TMP_XmlTagStack<T>
Type Parameters
Name | Description |
---|---|
T |
Constructors
TMP_XmlTagStack(T[])
Constructor to create a new item stack.
Declaration
public TMP_XmlTagStack(T[] tagStack)
Parameters
Type | Name | Description |
---|---|---|
T[] | tagStack |
Fields
index
Declaration
public int index
Field Value
Type | Description |
---|---|
System.Int32 |
itemStack
Declaration
public T[] itemStack
Field Value
Type | Description |
---|---|
T[] |
Methods
Add(T)
Function to add a new item to the stack.
Declaration
public void Add(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |
Clear()
Function to clear and reset stack to first item.
Declaration
public void Clear()
CurrentItem()
Declaration
public T CurrentItem()
Returns
Type | Description |
---|---|
T |
Pop()
Declaration
public T Pop()
Returns
Type | Description |
---|---|
T |
PreviousItem()
Function to retrieve the previous item without affecting the stack.
Declaration
public T PreviousItem()
Returns
Type | Description |
---|---|
T |
Push(T)
Declaration
public void Push(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |
Remove()
Function to retrieve an item from the stack.
Declaration
public T Remove()
Returns
Type | Description |
---|---|
T |
SetDefault(T)
Function to set the first item on the stack and reset index.
Declaration
public void SetDefault(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |