general/general.h File Reference

Go to the source code of this file.

Classes

class  invalid
class  nullpointer
class  unnamed

Defines

#define loopMap(r, v, t)
#define loopMapi(r, v, t)
#define loopSingle(r, v, t, s)
#define loopArray(r, v, t)


Define Documentation

#define loopArray ( r,
v,
 ) 

Value:

const t *v=r; \
    unsigned int v##_c=sizeof r/sizeof r[0]; \
    for ( \
        unsigned int v##_i=0; \
        v##_i< v##_c; \
        v##_i++, v=(v##_i<v##_c)?r+v##_i:0 \
    )

#define loopMap ( r,
v,
 ) 

Value:

map<string,t>& v##_t=(r); \
    map<string,t> :: iterator v##_i = v##_t.begin(); \
    for( \
        t* v=&v##_i->second; \
        v##_i != v##_t.end(); \
        v##_i++, v=(v##_i != v##_t.end())?&v##_i->second:0 \
    )

#define loopMapi ( r,
v,
 ) 

Value:

map<int,t>& v##_t=(r); \
    map<int,t> :: iterator v##_i = v##_t.begin(); \
    for( \
        t* v=&v##_i->second; \
        v##_i != v##_t.end(); \
        v##_i++, v=(v##_i != v##_t.end())?&v##_i->second:0 \
    )

#define loopSingle ( r,
v,
t,
 ) 

Value:

s<t>& v##_t=(r); \
    s<t> :: iterator v##_i = v##_t.begin(); \
    for( \
        t* v=&(*v##_i); \
        v##_i != v##_t.end(); \
        v##_i++, v=(v##_i != v##_t.end())?&(*v##_i):0 \
    )



Generated on Tue Jan 1 17:30:01 2008 for general/general.h File Reference by  doxygen   Visit the project page on SourceForge.net Logo