version 3.3

typeinfo.h File Reference

#include <vrs/config.h>
#include <vrs/id.h>
#include <vrs/serializationmacros.h>
#include <typeinfo>

Go to the source code of this file.

Namespaces

namespace  VRS

Classes

class  VRS::ClassInfo

Defines

#define VRS_TYPEINFO(THIS_CLASS, BASE_CLASS)
#define VRS_TEMPLATE_ARGS_1(T1, CLASS)   CLASS< T1 >
#define VRS_TEMPLATE_ARGS_2(T1, T2, CLASS)   CLASS< T1, T2 >
#define VRS_TEMPLATE_ARGS_3(T1, T2, T3, CLASS)   CLASS< T1, T2, T3 >
#define VRS_TEMPLATE_ARGS_4(T1, T2, T3, T4, CLASS)   CLASS< T1, T2, T3, T4 >
#define VRS_TEMPLATE_ARGS_5(T1, T2, T3, T4, T5, CLASS)   CLASS< T1, T2, T3, T4, T5 >


Define Documentation

#define VRS_TEMPLATE_ARGS_1 ( T1,
CLASS   )     CLASS< T1 >

#define VRS_TEMPLATE_ARGS_2 ( T1,
T2,
CLASS   )     CLASS< T1, T2 >

#define VRS_TEMPLATE_ARGS_3 ( T1,
T2,
T3,
CLASS   )     CLASS< T1, T2, T3 >

#define VRS_TEMPLATE_ARGS_4 ( T1,
T2,
T3,
T4,
CLASS   )     CLASS< T1, T2, T3, T4 >

#define VRS_TEMPLATE_ARGS_5 ( T1,
T2,
T3,
T4,
T5,
CLASS   )     CLASS< T1, T2, T3, T4, T5 >

#define VRS_TYPEINFO ( THIS_CLASS,
BASE_CLASS   ) 

Value:

typedef THIS_CLASS VRS_ThisClass;                                 \
    typedef BASE_CLASS VRS_BaseClass;                                 \
    virtual bool isEqual(const ::VRS::SharedObj* other) const {       \
        if(!other) { return false; }                                  \
        if(this == other) { return true; }                            \
        if(ClassInfoVRS() != other->classInfoVRS()) { return false; } \
        return (*this == static_cast<const THIS_CLASS&>(*other));     \
    }                                                                 \
    static const ::VRS::ClassInfo* ClassInfoVRS() {                   \
        static const ::VRS::ClassInfo cInfo(                          \
            typeid(THIS_CLASS),                                       \
            BASE_CLASS::ClassInfoVRS()                                \
        );                                                            \
        return &cInfo;                                                \
    }                                                                 \
    virtual const ::VRS::ClassInfo* classInfoVRS() const {            \
        return ClassInfoVRS();                                        \
    }                                                                 \
    static const ::VRS::ID& ClassNameVRS() {                          \
        return ClassInfoVRS()->name();                                \
    }                                                                 \
    VRS_VISITABLE;


Generated on Mon May 20 06:00:23 2013 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact