Zen
A cross-platform functional programming language

ListBase< ItemT > Class Template Reference

Base template class for all container classes. More...

#include <Ast.hpp>

Inheritance diagram for ListBase< ItemT >:
Node

List of all members.

Public Types

typedef z::list< const ItemT * > List
 Default list of items in container.

Public Member Functions

 ListBase ()
 Default constructor.
const ListgetList () const
 Returns a reference to the list of items in the container.
void addItem (const ItemT &item)
 Add an item to the list.

Private Attributes

List _list
 List of items in the container.

Detailed Description

template<typename ItemT>
class Ast::ListBase< ItemT >

Base template class for all container classes.


Member Function Documentation

void addItem ( const ItemT &  item) [inline]

Add an item to the list.

Parameters:
itemThe item to be added
const List& getList ( ) const [inline]

Returns a reference to the list of items in the container.

Returns:
List of items in the container

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