IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
NUnit.Framework.Constraints.ConstraintBuilder.OperatorStack Class Reference

OperatorStack is a type-safe stack for holding ConstraintOperators More...

Public Member Functions

 OperatorStack (ConstraintBuilder builder)
 Initializes a new instance of the OperatorStack class. More...
 
void Push (ConstraintOperator op)
 Pushes the specified operator onto the stack. More...
 
ConstraintOperator Pop ()
 Pops the topmost operator from the stack. More...
 

Properties

bool Empty [get]
 Gets a value indicating whether this OperatorStack is empty. More...
 
ConstraintOperator Top [get]
 Gets the topmost operator without modifying the stack. More...
 

Private Attributes

readonly Stack
< ConstraintOperator
stack = new Stack<ConstraintOperator>()
 

Detailed Description

OperatorStack is a type-safe stack for holding ConstraintOperators

Constructor & Destructor Documentation

NUnit.Framework.Constraints.ConstraintBuilder.OperatorStack.OperatorStack ( ConstraintBuilder  builder)
inline

Initializes a new instance of the OperatorStack class.

Parameters
builderThe ConstraintBuilder using this stack.

Member Function Documentation

void NUnit.Framework.Constraints.ConstraintBuilder.OperatorStack.Push ( ConstraintOperator  op)
inline

Pushes the specified operator onto the stack.

Parameters
opThe operator to put onto the stack.
ConstraintOperator NUnit.Framework.Constraints.ConstraintBuilder.OperatorStack.Pop ( )
inline

Pops the topmost operator from the stack.

Returns
The topmost operator on the stack

Member Data Documentation

readonly Stack<ConstraintOperator> NUnit.Framework.Constraints.ConstraintBuilder.OperatorStack.stack = new Stack<ConstraintOperator>()
private

Property Documentation

bool NUnit.Framework.Constraints.ConstraintBuilder.OperatorStack.Empty
get

Gets a value indicating whether this OperatorStack is empty.

true if empty; otherwise, false.

ConstraintOperator NUnit.Framework.Constraints.ConstraintBuilder.OperatorStack.Top
get

Gets the topmost operator without modifying the stack.


The documentation for this class was generated from the following file: