34 #define helpTextSmallInt "TODO smallInt help brief, class description methods, examples" 37 #define cIn(self) ( (smallIntt*) self ) 41 typedef char* (*toStringSmallIntFt) (
smallIntt *
self);
58 typedef const char* (*helpSmallIntFt) (
smallIntt *
self);
94 typedef int64_t* (*getPSmallIntFt) (
smallIntt *
self);
169 #define SMALLINTFUNCTIONST \ 170 helpSmallIntFt help;\ 173 setBoolSmallIntFt setBool;\ 174 setDoubleSmallIntFt setDouble;\ 175 setInt32SmallIntFt setInt32;\ 176 setUint32SmallIntFt setUint32;\ 177 setUint64SmallIntFt setUint64;\ 178 setSSmallIntFt setS;\ 179 setSmallBoolSmallIntFt setSmallBool;\ 180 setSmallDoubleSmallIntFt setSmallDouble;\ 181 setSmallIntSmallIntFt setSmallInt;\ 182 setSmallJsonSmallIntFt setSmallJson;\ 183 setSmallStringSmallIntFt setSmallString;\ 184 getPSmallIntFt getP;\ 185 equalSmallIntChaFt equalCha;\ 186 equalSmallIntCharFt equalChar;\ 187 equalSmallIntBaseFt equalBase;\ 188 equalSmallIntBoolFt equalBool;\ 189 equalSmallIntDoubleFt equalDouble;\ 190 equalSmallIntInt64Ft equalInt64;\ 191 equalSmallIntInt32Ft equalInt32;\ 192 equalSmallIntUint32Ft equalUint32;\ 193 equalSmallIntUint64Ft equalUint64;\ 194 equalSmallIntSmallBoolFt equalSmallBool;\ 195 equalSmallIntSmallBytesFt equalSmallBytes;\ 196 equalSmallIntSmallDoubleFt equalSmallDouble;\ 197 equalSmallIntFt equal;\ 198 equalSmallIntSmallJsonFt equalSmallJson;\ 199 equalSmallIntSmallStringFt equalSmallString;\ 200 readFileSmallIntFt readFile;\ 201 readFileSmallJsonSmallIntFt readFileSmallJson;\ 202 readFileSmallStringSmallIntFt readFileSmallString;\ 203 readStreamSmallIntFt readStream;\ 204 writeFileSmallIntFt writeFile;\ 205 writeFileSmallJsonSmallIntFt writeFileSmallJson;\ 206 writeFileSmallStringSmallIntFt writeFileSmallString;\ 207 writeStreamSmallIntFt writeStream;\ 208 appendFileSmallIntFt appendFile;\ 209 appendFileSmallStringSmallIntFt appendFileSmallString 234 #define createSmallInt(obj) ;smallIntt obj; initiateSmallInt(&obj) 235 #define createAllocateSmallInt(obj) ;smallIntt *obj; initiateAllocateSmallInt(&obj) 262 #define cleanSmallIntP(name) smallIntt *name CLEANUP(cleanUpSmallIntTerminateG) 267 #define cleanAllocateSmallInt(obj) ;cleanSmallIntP(obj); initiateAllocateSmallInt(&obj) 272 #define cleanSmallInt(name) smallIntt name CLEANUP(cleanUpSmallIntFreeLocalG); initiateSmallInt(&name) 277 #define cleanFreeSmallInt(name) smallIntt *name CLEANUP(cleanUpSmallIntFreeG) 282 #define cleanFinishSmallIntP(name) smallIntt *name CLEANUP(cleanUpSmallIntFinishG) void finalizeSmallInt(void)
smallIntt * readFileSmallIntG(smallIntt *self, const char *filePath)
bool(* equalSmallIntInt64Ft)(smallIntt *self, int64_t p2)
smallIntt * setUint64SmallIntG(smallIntt *self, uint64_t p2)
void registerMethodsSmallInt(smallIntFunctionst *f)
bool equalSmallIntInt64G(smallIntt *self, int64_t p2)
void cleanUpSmallIntTerminateG(smallIntt **val)
int writeFileSmallIntG(smallIntt *self, const char *filePath)
bool(* equalSmallIntCharFt)(smallIntt *self, const char *p2)
bool equalSmallIntUint64G(smallIntt *self, uint64_t p2)
bool(* equalSmallIntBaseFt)(smallIntt *self, baset *p2)
bool equalSmallIntBaseG(smallIntt *self, baset *p2)
void(* terminateSmallIntFt)(smallIntt **self)
int writeFileSmallStringSmallIntG(smallIntt *self, smallStringt *filePath)
bool equalSmallIntCharG(smallIntt *self, const char *p2)
int64_t getIntSmallIntG(smallIntt *self, int64_t retType UNUSED, int64_t index UNUSED)
bool equalSmallIntChaG(smallIntt *self, char p2)
void finalizeRecycleSmallInt(void *arg UNUSED)
bool equalSmallIntSmallJsonG(smallIntt *self, smallJsont *p2)
bool equalSmallIntDoubleG(smallIntt *self, double p2)
void initiateSmallInt(smallIntt *self)
int writeFileSmallJsonSmallIntG(smallIntt *self, smallJsont *filePath)
int64_t(* getSmallIntFt)(smallIntt *self)
get int
smallIntt * duplicateSmallIntG(smallIntt *self)
smallIntt * setUint32SmallIntG(smallIntt *self, uint32_t p2)
smallIntt * readStreamSmallIntG(smallIntt *self, FILE *fp)
terminateSmallIntFt terminate
bool equalSmallIntBoolG(smallIntt *self, bool p2)
bool(* equalSmallIntSmallBytesFt)(smallIntt *self, smallBytest *p2)
int(* writeFileSmallJsonSmallIntFt)(smallIntt *self, smallJsont *filePath)
void(* finishSmallIntFt)(smallIntt **self)
free container
bool(* equalSmallIntSmallDoubleFt)(smallIntt *self, smallDoublet *p2)
int64_t * getIntPSmallIntG(smallIntt *self, int64_t *retType UNUSED, int64_t index UNUSED)
void cleanUpSmallIntFinishG(smallIntt **val)
uint32_t * getUint32PSmallIntG(smallIntt *self, uint32_t *retType UNUSED, int64_t index UNUSED)
int appendFileSmallStringSmallIntG(smallIntt *self, smallStringt *filePath)
bool equalSmallIntSmallDoubleG(smallIntt *self, smallDoublet *p2)
smallIntt * readFileSmallJsonSmallIntG(smallIntt *self, smallJsont *filePath)
int appendFileSmallIntFG(smallIntt *self, const char *filePath)
smallIntt * setDoubleSmallIntG(smallIntt *self, double p2)
smallIntt * allocSmallInt(int64_t value)
smallIntt * setInt32SmallIntG(smallIntt *self, int32_t p2)
uint32_t getUint32SmallIntG(smallIntt *self, uint32_t retType UNUSED, int64_t index UNUSED)
int32_t getInt32SmallIntG(smallIntt *self, int32_t retType UNUSED, int64_t index UNUSED)
int(* appendFileSmallIntFt)(smallIntt *self, const char *filePath)
append int to filePath
bool(* equalSmallIntFt)(smallIntt *self, smallIntt *p2)
int32_t * getInt32PSmallIntG(smallIntt *self, int32_t *retType UNUSED, int64_t index UNUSED)
bool equalSmallIntInt32G(smallIntt *self, int32_t p2)
bool(* equalSmallIntBoolFt)(smallIntt *self, bool p2)
bool equalSmallIntSmallStringG(smallIntt *self, smallStringt *p2)
smallIntt * setSSmallIntG(smallIntt *self, const char *p2)
uint64_t * getUintPSmallIntG(smallIntt *self, uint64_t *retType UNUSED, int64_t index UNUSED)
int(* writeStreamSmallIntFt)(smallIntt *self, FILE *fp)
bool(* equalSmallIntChaFt)(smallIntt *self, char p2)
int(* writeFileSmallStringSmallIntFt)(smallIntt *self, smallStringt *filePath)
void(* freeSmallIntFt)(smallIntt *self)
smallIntt * setSmallIntSmallIntG(smallIntt *self, smallIntt *p2)
smallIntt * setSmallIntG(smallIntt *self, int64_t p2)
int(* writeFileSmallIntFt)(smallIntt *self, const char *filePath)
write int to file
bool(* equalSmallIntSmallJsonFt)(smallIntt *self, smallJsont *p2)
void freeSmallIntG(smallIntt *self)
smallIntt * readFileSmallStringSmallIntG(smallIntt *self, smallStringt *filePath)
bool(* equalSmallIntUint64Ft)(smallIntt *self, uint64_t p2)
bool equalSmallIntUint32G(smallIntt *self, uint32_t p2)
bool equalSmallIntSmallBoolG(smallIntt *self, smallBoolt *p2)
bool(* equalSmallIntInt32Ft)(smallIntt *self, int32_t p2)
void cleanUpSmallIntFreeLocalG(smallIntt *val)
int(* appendFileSmallStringSmallIntFt)(smallIntt *self, smallStringt *filePath)
bool equalSmallIntSmallBytesG(smallIntt *self, smallBytest *p2)
void initiateAllocateSmallInt(smallIntt **self)
bool(* equalSmallIntUint32Ft)(smallIntt *self, uint32_t p2)
toStringSmallIntFt toString
void cleanUpSmallIntFreeG(smallIntt **val)
smallIntt *(* duplicateSmallIntFt)(smallIntt *self)
bool equalSmallIntFG(smallIntt *self, smallIntt *p2)
smallIntt * setSmallJsonSmallIntG(smallIntt *self, smallJsont *p2)
bool(* equalSmallIntDoubleFt)(smallIntt *self, double p2)
char *(* toStringSmallIntFt)(smallIntt *self)
void(* smashSmallIntFt)(smallIntt **self)
free self but not the smallInt buffer
int writeStreamSmallIntG(smallIntt *self, FILE *fp)
smallIntt * setBoolSmallIntG(smallIntt *self, bool p2)
smallIntt * setSmallDoubleSmallIntG(smallIntt *self, smallDoublet *p2)
smallIntt * setSmallBoolSmallIntG(smallIntt *self, smallBoolt *p2)
smallIntt * setSmallStringSmallIntG(smallIntt *self, smallStringt *p2)
bool(* equalSmallIntSmallBoolFt)(smallIntt *self, smallBoolt *p2)
bool(* equalSmallIntSmallStringFt)(smallIntt *self, smallStringt *p2)
uint64_t getUintSmallIntG(smallIntt *self, uint64_t retType UNUSED, int64_t index UNUSED)
duplicateSmallIntFt duplicate