Go to the documentation of this file. 1 #ifndef _DDD_CLASS_INVARIANT_H
2 #define _DDD_CLASS_INVARIANT_H
45 #if defined( DDD_DEBUG )
48 #define DDD_CLASS_INVARIANT_DECLARATION( ClassName ) \
49 class ClassInvariant \
52 ClassInvariant( const ClassName &inst ) : \
64 const ClassName &_inst; \
68 #define DDD_CLASS_INVARIANT_CHECK( ClassName ) ClassName::ClassInvariant localScopeClassInvariant( *this )
74 #define DDD_CLASS_INVARIANT_EVALUATE( ClassName ) ClassName::Invariant()
76 #else // GLS_DEBUG is not defined
79 #define DDD_CLASS_INVARIANT_DECLARATION( ClassName )
80 #define DDD_CLASS_INVARIANT_CHECK( ClassName )
81 #define DDD_CLASS_INVARIANT_EVALUATE( ClassName )
85 #endif // _GLS_CLASS_INVARIANT_H