00001 // Copyright (C) 2001, Compaq Computer Corporation 00002 00003 // This file is part of Vesta. 00004 00005 // Vesta is free software; you can redistribute it and/or 00006 // modify it under the terms of the GNU Lesser General Public 00007 // License as published by the Free Software Foundation; either 00008 // version 2.1 of the License, or (at your option) any later version. 00009 00010 // Vesta is distributed in the hope that it will be useful, 00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 // Lesser General Public License for more details. 00014 00015 // You should have received a copy of the GNU Lesser General Public 00016 // License along with Vesta; if not, write to the Free Software 00017 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00018 00019 // Last modified on Mon Apr 18 16:23:53 EDT 2005 by irina.furman@intel.com 00020 // modified on Wed Jun 2 18:17:20 EDT 2004 by ken@xorian.net 00021 // modified on Mon May 3 16:04:45 PDT 1999 by heydon 00022 // modified on Tue Dec 5 10:53:35 PST 1995 by levin 00023 00024 // **************** 00025 // * Generics.H * 00026 // **************** 00027 00028 // Common generic types 00029 00030 #ifndef _Generics 00031 #define _Generics 00032 00033 #include <Basics.H> 00034 #include "Sequence.H" 00035 #include "Table.H" 00036 #include "IntKey.H" 00037 #include "Atom.H" 00038 00039 // Sequences 00040 typedef Sequence<int, true> IntSeq; 00041 typedef Sequence<Text> TextSeq; 00042 typedef Sequence<Atom> AtomSeq; 00043 00044 // Tables (for each table, there is a table and an interator type) 00045 typedef Table<Text,int>::Default TextIntTbl; 00046 typedef Table<Text,int>::Iterator TextIntIter; 00047 typedef Table<Text,Text>::Default TextTextTbl; 00048 typedef Table<Text,Text>::Iterator TextTextIter; 00049 typedef Table<Text,const char*>::Default TextStringTbl; 00050 typedef Table<Text,const char*>::Iterator TextStringIter; 00051 typedef Table<IntKey,int>::Default IntIntTbl; 00052 typedef Table<IntKey,int>::Iterator IntIntIter; 00053 00054 #endif /* _Generics */