Zen
A cross-platform functional programming language

stack< V > Class Template Reference

Intrinsic stack type. More...

#include <zbl.hpp>

Inheritance diagram for stack< V >:
listbase< stack< V >, QStack< V >, QVectorIterator< V >, V > containerbase< QStack< V > >

List of all members.

Public Member Functions

V & top ()
 Return the topmost item in stack.
const V & top () const
 Return a const reference the topmost item in stack.
void push (const V &v)
 Push a value on the stackl.
pop ()
 Pop the topmst value from the stack.

Private Types

typedef listbase< stack< V >
, QStack< V >, QVectorIterator
< V >, V > 
baseT
 The base class type.

Detailed Description

template<typename V>
class z::stack< V >

Intrinsic stack type.


Member Function Documentation

V pop ( ) [inline]

Pop the topmst value from the stack.

Returns:
Topmost value in stack before popping.
void push ( const V &  v) [inline]

Push a value on the stackl.

Parameters:
vValue to push
V& top ( ) [inline]

Return the topmost item in stack.

Returns:
Reference to topmost item in stack
const V& top ( ) const [inline]

Return a const reference the topmost item in stack.

Returns:
Const reference to topmost item in stack

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines