C# 클래스 Sgml.HWStack

This stack maintains a high water mark for allocated objects so the client can reuse the objects in the stack to reduce memory allocations, this is used to maintain current state of the parser for element stack, and attributes in each element.
파일 보기 프로젝트 열기: Synergex/Baconography

Private Properties

프로퍼티 타입 설명
RemoveAt void

공개 메소드들

메소드 설명
HWStack ( int growth ) : System

Initialises a new instance of the HWStack class.

Pop ( ) : object

Removes and returns the item at the top of the stack

Push ( ) : object

Pushes a new slot at the top of the stack.

This method tries to reuse a slot, if it returns null then the user has to call the other Push method.

this ( int i ) : object

Returns the item at the requested index or null if index is out of bounds

비공개 메소드들

메소드 설명
RemoveAt ( int i ) : void

메소드 상세

HWStack() 공개 메소드

Initialises a new instance of the HWStack class.
public HWStack ( int growth ) : System
growth int The amount to grow the stack space by, if more space is needed on the stack.
리턴 System

Pop() 공개 메소드

Removes and returns the item at the top of the stack
public Pop ( ) : object
리턴 object

Push() 공개 메소드

Pushes a new slot at the top of the stack.
This method tries to reuse a slot, if it returns null then the user has to call the other Push method.
public Push ( ) : object
리턴 object

this() 공개 메소드

Returns the item at the requested index or null if index is out of bounds
public this ( int i ) : object
i int The index of the item to retrieve.
리턴 object