Source: table.h


Annotated List
Files
Globals
Hierarchy
Index
#ifndef _TABLE_H_
#define _TABLE_H_

#include "compound.h"

/** the table is thought to contain references. It has an own scratch() implementation
*/
class Table : public Compound
{
 private:

 public:
  Table();
  Table(const Table&);

  // void add(Element*,Element*);
  Element * operator[](Element*);
  Element * getEntry(const char*);
  void removeEntry(Element*);
  void deleteEntry(Element*);
  bool hasEntry(Element*);

  /** walks through the table and deletes each entry. If an entry is a reference, it deletes key as well as value (if not null).
   */
  void scratch();

  virtual ostream & print(int,ostream&) const;
  virtual void flush(const char*) const;
  virtual Element * copy() const;

};

#endif

Generated by: wuerthne on clouseau on Fri Sep 21 19:20:46 2001, using kdoc 2.0a53.