Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

IntTable Class Reference

#include <static_table.h>

Inheritance diagram for IntTable::

base List of all members.

Public Methods

 IntTable ()
void insertElem (int i)
void pr ()

Constructor & Destructor Documentation

IntTable::IntTable ( )
 

00105 {
00106    const int len = 10;
00107    static int tbl[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
00108 
00109    addTable( tbl, len );   
00110 }


Member Function Documentation

void IntTable::insertElem ( int i )
 

00024 {
00025    table[ix] = i;
00026 }

void IntTable::pr ( ) [virtual]
 

Reimplemented from base.

00030 {
00031    for (int i = 0; i < ix; i++) {
00032       printf("%3d: %d\n", i, table[i]);
00033    }
00034 }


The documentation for this class was generated from the following files:
Generated at Thu Jun 14 21:06:18 2001 for C++ Templates: the power, the swamp by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001