visStack Class Reference

[VisAPI Index] [VisAPI Hierarchy]


VisApi stack container implementation. More...

#include <VisApi/platform.h>

Inherits: visObject

Public Members

Private Members


Detailed Description

A typical stack that can be used as a template implementation along with primitve datatypes.


 visStack()

construct vector of any size, given size or given size and initialized array.

void empty()

Clear all elements from stack. Size becomes zero.

T& operator[](unsigned int i)

Return the i-th element in the stack.

void push(T x)

Push element x on the top of the stack.

T pop()

Pop i-th element from the top of the stack and return it.

int getSize()

Return the number of elements in the stack.


  • Author: Peter Breitling
  • Version: 03-18-98
  • Documentation generated by breitlip@atzenger10 on Mon Jan 17 19:29:23 CET 2000
Kdoc