CLucene - a full-featured, c++ search engine
API Documentation


mem.h File Reference

#include "lucenebase.h"

Go to the source code of this file.

Classes

class  Array< T >

Defines

#define _CLNEW   new
#define LUCENE_BASE   public CL_NS(debug)::LuceneVoidBase
#define LUCENE_BASE_CHECK(obj)   (obj)->dummy__see_mem_h_for_details
#define _CL_POINTER(x)   (x==NULL?NULL:(x->__cl_addref()>=0?x:x))
#define LUCENE_REFBASE   public CL_NS(debug)::LuceneBase
#define LUCENE_BASE_CHECK(x)
#define _CL_NEWARRAY(type, size)   new type[size]
#define _CLDELETE_ARRAY(x)   if (x!=NULL){delete [] x; x=NULL;}
#define _CLDELETE_LARRAY(x)   if (x!=NULL){delete [] x;}
#define _CLDELETE_CARRAY(x)   if (x!=NULL){delete [] x; x=NULL;}
#define _CLDELETE_LCARRAY(x)   if (x!=NULL){delete [] x;}
#define _CLDELETE_CARRAY_ALL(x)   {if ( x!=NULL ){ for(int xcda=0;x[xcda]!=NULL;xcda++)_CLDELETE_CARRAY(x[xcda]);}_CLDELETE_ARRAY(x)};
#define _CLDELETE_ARRAY_ALL(x)   {if ( x!=NULL ){ for(int xcda=0;x[xcda]!=NULL;xcda++)_CLDELETE(x[xcda]);}_CLDELETE_ARRAY(x)};
#define _CLDELETE_CaARRAY   _CLDELETE_CARRAY
#define _CLDELETE_LCaARRAY   _CLDELETE_LCARRAY
#define _CLDELETE(x)   if (x!=NULL){ LUCENE_BASE_CHECK(x); delete x; x=NULL; }
#define _CLLDELETE(x)   if (x!=NULL){ LUCENE_BASE_CHECK(x); delete x; }
#define _CLDECDELETE(x)   if (x!=NULL){ CND_PRECONDITION((x)->__cl_refcount>=0,"__cl_refcount was < 0"); if ((x)->__cl_decref() <= 0)delete x; x=NULL; }
#define _CLLDECDELETE(x)   if (x!=NULL){ CND_PRECONDITION((x)->__cl_refcount>=0,"__cl_refcount was < 0"); if ((x)->__cl_decref() <= 0)delete x; }
#define _CLVDELETE(x)   if(x!=NULL){delete x; x=NULL;}

Define Documentation

#define _CL_NEWARRAY ( type,
size   )     new type[size]
#define _CL_POINTER ( x   )     (x==NULL?NULL:(x->__cl_addref()>=0?x:x))
#define _CLDECDELETE ( x   )     if (x!=NULL){ CND_PRECONDITION((x)->__cl_refcount>=0,"__cl_refcount was < 0"); if ((x)->__cl_decref() <= 0)delete x; x=NULL; }
#define _CLDELETE ( x   )     if (x!=NULL){ LUCENE_BASE_CHECK(x); delete x; x=NULL; }
#define _CLDELETE_ARRAY ( x   )     if (x!=NULL){delete [] x; x=NULL;}
#define _CLDELETE_ARRAY_ALL ( x   )     {if ( x!=NULL ){ for(int xcda=0;x[xcda]!=NULL;xcda++)_CLDELETE(x[xcda]);}_CLDELETE_ARRAY(x)};
#define _CLDELETE_CaARRAY   _CLDELETE_CARRAY
#define _CLDELETE_CARRAY ( x   )     if (x!=NULL){delete [] x; x=NULL;}
#define _CLDELETE_CARRAY_ALL ( x   )     {if ( x!=NULL ){ for(int xcda=0;x[xcda]!=NULL;xcda++)_CLDELETE_CARRAY(x[xcda]);}_CLDELETE_ARRAY(x)};
#define _CLDELETE_LARRAY ( x   )     if (x!=NULL){delete [] x;}
#define _CLDELETE_LCaARRAY   _CLDELETE_LCARRAY
#define _CLDELETE_LCARRAY ( x   )     if (x!=NULL){delete [] x;}
#define _CLLDECDELETE ( x   )     if (x!=NULL){ CND_PRECONDITION((x)->__cl_refcount>=0,"__cl_refcount was < 0"); if ((x)->__cl_decref() <= 0)delete x; }
#define _CLLDELETE ( x   )     if (x!=NULL){ LUCENE_BASE_CHECK(x); delete x; }
#define _CLNEW   new
#define _CLVDELETE ( x   )     if(x!=NULL){delete x; x=NULL;}
#define LUCENE_BASE   public CL_NS(debug)::LuceneVoidBase
#define LUCENE_BASE_CHECK ( x   ) 
#define LUCENE_BASE_CHECK ( obj   )     (obj)->dummy__see_mem_h_for_details
#define LUCENE_REFBASE   public CL_NS(debug)::LuceneBase

clucene.sourceforge.net