Helper
[Base]

Defines

#define OSG_PROPERTY_DECL(OSGPROP)   enum OSG##OSGPROP##Prop { osg##OSGPROP##Prop }
#define OSG_PROPERTY_SPEC(OSGPROPERTYNAMESPACE, OSGPROP)
#define OSG_PROPERTY_VIOLATION(OSGPROP)
#define OSG_PROPERTY_REQUIREMENT(OSGCLASS, OSGPROP)

Functions

template<class TypeT >
void osg::osgSinkUnusedWarning (TypeT)

Detailed Description

ToDo


Define Documentation

#define OSG_PROPERTY_DECL ( OSGPROP   )     enum OSG##OSGPROP##Prop { osg##OSGPROP##Prop }

Definition at line 58 of file OSGConceptPropertyChecks.h.

#define OSG_PROPERTY_SPEC ( OSGPROPERTYNAMESPACE,
OSGPROP   ) 
Value:
template<class T1>                                              \
struct _OSG_##OSGPROP##_Property_Spec                           \
{                                                               \
    static void _OSG_##OSGPROP##_Property_violation(T1 t1)      \
    {                                                           \
        OSGPROPERTYNAMESPACE::                                  \
           __OSG_##OSGPROP##_Property_violation(t1);            \
    }                                                           \
}

Definition at line 64 of file OSGConceptPropertyChecks.h.

#define OSG_PROPERTY_VIOLATION ( OSGPROP   ) 
Value:
template<class T1>                                                       \
static void __OSG_##OSGPROP##_Property_violation(T1)                     \
{                                                                        \
    while(0)                                                             \
    {                                                                    \
        typename T1::OSG##OSGPROP##Prop v1 = T1::osg##OSGPROP##Prop;     \
                                                                         \
        osgSinkUnusedWarning(v1);                                        \
    }                                                                    \
}

Definition at line 78 of file OSGConceptPropertyChecks.h.

#define OSG_PROPERTY_REQUIREMENT ( OSGCLASS,
OSGPROP   ) 
Value:
typedef void (* _OSG##OSGPROP##PropReqDummyFuncFor##OSGCLASS)(OSGCLASS); \
                                                                         \
template<_OSG##OSGPROP##PropReqDummyFuncFor##OSGCLASS FuncTypeT>         \
struct _OSG##OSGPROP##PropReqDummyStructFor##OSGCLASS                    \
{                                                                        \
};                                                                       \
                                                                         \
static _OSG##OSGPROP##PropReqDummyStructFor##OSGCLASS<                   \
    _OSG_##OSGPROP##_Property_Spec<OSGCLASS>::                           \
        _OSG_##OSGPROP##_Property_violation>                             \
            _OSG##OSGPROP##PropReqDummyStructInstFor##OSGCLASS

Definition at line 97 of file OSGConceptPropertyChecks.h.


Function Documentation

template<class TypeT >
void osg::osgSinkUnusedWarning ( TypeT   )  [inline]

Definition at line 53 of file OSGConceptPropertyChecks.h.

00053 { }


Generated on 8 Feb 2010 for OpenSG by  doxygen 1.6.1