ERAV: Entity Relation Attribute Value:
Namespaces | Defines | Functions
ERAV.cpp File Reference
#include "ERAV.h"

Go to the source code of this file.


namespace  ERAV

[E]ntity [R]elation [A]ttribute [V]alue


#define nextChar(cursor, line)   { if ('\n'==*(*cursor)) { (*line)++; } (*cursor)++; }
 cursor++ && (line++ <==> '
#define USE_goto
#define USE_algorithm


void * memrev (void *ptr, size_t num)
 Reverses in place all bytes in ptr.
char * strrev (char *str)
 Reverses in place all characters in str.
char * itoa (int value, char *str, int base)
 Convert integer int to string str(non-standard function).
char * my_itoa (int i)
  return itoa(i,my_itoa::static_buffer,10).
int ERAV::tplcmp (const ERAV::tuple &l, const ERAV::tuple &r)
 (l<r)==>(-1) (l==r)==>((0)) (l>r)==>(+1).
bool ERAV::isLess (const ERAV::tuple &l, const ERAV::tuple &r)
 (l<r) ???.

Define Documentation

#define nextChar (   cursor,
)    { if ('\n'==*(*cursor)) { (*line)++; } (*cursor)++; }

cursor++ && (line++ <==> '

Definition at line 463 of file ERAV.cpp.

#define USE_goto
#define USE_algorithm

Definition at line 692 of file ERAV.cpp.

Function Documentation

void* memrev ( void *  ptr,
size_t  num 

Reverses in place all bytes in ptr.

  • Mnemonic: memrev() <==> memory-reverse.
  • Returns "ptr".

Definition at line 358 of file ERAV.cpp.

char* strrev ( char *  str) [inline]

Reverses in place all characters in str.

Changes all the characters in "str" to reverse order, except for the terminating null.

  • Mnemonic: strrev() <==> string-reverse.
  • Returns "str".

Definition at line 374 of file ERAV.cpp.

char* itoa ( int  value,
char *  str,
int  base 

Convert integer int to string str(non-standard function).

Converts an integer value to a null-terminated string using the specified base and stores the result in the array given by str parameter.

If base is 10 and value is negative, the resulting string is preceded with a minus sign (-). With any other base, value is always considered unsigned.

str should be an array long enough to contain any possible value: (sizeof(int)*8+1) for radix=2, i.e. 17 bytes in 16-bits platforms and 33 in 32-bits platforms.

Definition at line 393 of file ERAV.cpp.

char* my_itoa ( int  i) [inline]

return itoa(i,my_itoa::static_buffer,10).

Definition at line 430 of file ERAV.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Defines