FirteX-高性能全文索引和检索平台

API Documentation


首页 | 名字空间列表 | 类继承关系 | 组合类型列表 | $(BL\录(B | 文件列表 | 名字空间成员 | 组合类型成员 | 文件成员

typedefs.h

浏览该文件的文档。
00001 //
00002 // Copyright(C) 2005--2006 Institute of Computing Tech, Chinese Academy of Sciences. 
00003 // All rights reserved.
00004 // This file is part of FirteX (www.firtex.org)
00005 //
00006 // Use of the FirteX is subject to the terms of the software license set forth in 
00007 // the LICENSE file included with this software, and also available at
00008 // http://www.firtex.org/license.html
00009 //
00010 // Author       : 郭瑞杰(GuoRuijie)
00011 // Email        : ruijieguo@software.ict.ac.cn,ruijieguo@gmail.com
00012 // Created      : 2005/10/20
00013 //
00014 #ifndef __TYPEDEFS_H
00015 #define __TYPEDEFS_H
00016 
00017 #if _MSC_VER > 1000
00018 #pragma once
00019 #endif // _MSC_VER > 1000
00020 
00021 #include "platform.h"
00022 #include <string>
00023 
00024 namespace firtex
00025 {
00027         typedef int32_t         fieldid_t;
00028 
00030         typedef fieldid_t       schemaid_t;
00031 
00032         typedef int32_t         termid_t;
00033         typedef int32_t         wordid_t;
00035         typedef termid_t        loc_t;
00037         typedef termid_t        docid_t;
00039         typedef termid_t        count_t;
00041         typedef count_t         freq_t;
00042 
00044         typedef float           score_t;
00045         typedef float           weight_t;
00047         typedef std::string term_t;     
00048 
00049         typedef struct _tag_data_record
00050         {
00051                 byte*   data;
00052                 size_t  length;
00053         }datarecord;
00054 
00055         template<typename CharT>
00056                 struct _str 
00057                 {
00058                         CharT*  str;
00059                         size_t  length;
00060                 };
00061         
00062         typedef _str<char>              str_t;
00063         typedef _str<wchar_t>   wstr_t;
00064 }
00065 #endif

http://www.firtex.org http://www.sourceforge.net/projects/firtex