Public Member Functions | Properties

Romulus.TransparentStack-g< T > Class Template Reference

Provides a stack with transparent access to all items in the stack, indexed by depth. More...

Inheritance diagram for Romulus.TransparentStack-g< T >:
ICollection IEnumerable

List of all members.

Public Member Functions

int IndexOf (T item)
void Push (T item)
T Pop ()
IList< T > Pop (int count)
IList< T > PopTo (T item)
 Pops and returns all items up to and including the specfied item.
IList< T > PopUntil (T item)
 Pops and returns all items up to, but not including, the specfied item.
T Peek ()
T Peek (int depth)
void Crop (T item)
 Crops the item deepest in the stack that is equal to the specified gameItem.
void CropAt (int index)
void CropAll (Predicate< T > condition)
void Clear ()
bool Contains (T item)

Properties

T this [int index] [get]
int Count [get]

Detailed Description

template<T>
class Romulus::TransparentStack-g< T >

Provides a stack with transparent access to all items in the stack, indexed by depth.

Template Parameters:
T The type of item the stack will store.

Member Function Documentation

template<T >
void Romulus.TransparentStack-g< T >.Crop ( T  item  ) 

Crops the item deepest in the stack that is equal to the specified gameItem.

template<T >
IList<T> Romulus.TransparentStack-g< T >.PopTo ( T  item  ) 

Pops and returns all items up to and including the specfied item.

template<T >
IList<T> Romulus.TransparentStack-g< T >.PopUntil ( T  item  ) 

Pops and returns all items up to, but not including, the specfied item.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Properties Events