FirteX-高性能全文索引和检索平台API Documentation |
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 00012 // Created : 2006/1/4 00013 // 00014 #ifndef _NORMBYTES_H 00015 #define _NORMBYTES_H 00016 #include "../utility/StdHeader.h" 00017 00018 namespace firtex 00019 { 00020 namespace index 00021 { 00022 class CNormBytes 00023 { 00024 public: 00025 CNormBytes() 00026 { 00027 bytes = NULL; 00028 len = 0; 00029 } 00030 ~CNormBytes() 00031 { 00032 if(bytes) 00033 { 00034 delete[] bytes; 00035 bytes = NULL; 00036 } 00037 len = 0; 00038 } 00039 public: 00040 byte* bytes; 00041 size_t len; 00042 }; 00043 } 00044 } 00045 #endif
http://www.firtex.org http://www.sourceforge.net/projects/firtex