DeSR Dependency Parser |
00001 /* 00002 ** IXE C++ Library 00003 ** ixe/include/ixe.h: basic types for IXE 00004 ** ---------------------------------------------------------------------- 00005 ** Copyright (c) 2000 Ideare SpA. 00006 ** Copyright (c) 2000 Giuseppe Attardi (attardi@di.unipi.it). 00007 ** ---------------------------------------------------------------------- 00008 ** 00009 ** This file is part of DeSR. 00010 ** 00011 ** DeSR is free software; you can redistribute it and/or modify it 00012 ** under the terms of the GNU General Public License, version 3, 00013 ** as published by the Free Software Foundation. 00014 ** 00015 ** DeSR is distributed in the hope that it will be useful, 00016 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 ** GNU General Public License for more details. 00019 ** 00020 ** You should have received a copy of the GNU General Public License 00021 ** along with this program. If not, see <http://www.gnu.org/licenses/>. 00022 ** ---------------------------------------------------------------------- 00023 */ 00024 00025 #ifndef IXE_IXE_H 00026 #define IXE_IXE_H 00027 00028 #include "platform.h" 00029 00038 namespace IXE { 00039 00044 typedef unsigned DocID; 00045 DocID const noDocID = 0; 00046 00051 typedef unsigned short HitPosition; 00052 HitPosition const noPosition = 0; 00053 HitPosition const maxPosition = (HitPosition)-1; 00054 00058 typedef unsigned short Occurrences; 00059 Occurrences const maxOccurrences = (Occurrences)-1; 00060 00065 typedef short TermColor; 00066 TermColor const noColor = -1; 00067 TermColor const color_Not_Found = -2; 00068 00069 typedef unsigned TermID; 00070 typedef unsigned Count; 00071 typedef unsigned Size; 00072 00073 int const num_bigrams = 256*256 + 1; 00074 00075 typedef unsigned char byte; 00076 00077 // Align value 'x' to boundary 'b' which should be power of 2 00078 #define ALIGN(x, b) (((x) + (b) - 1) & ~((b) - 1)) 00079 00080 } // namespace IXE 00081 00082 #endif /* IXE_IXE_H */