00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __GB_AttributeRef__
00019 #define __GB_AttributeRef__
00020
00021 #include "GB_API.h"
00022
00023 typedef int GB_AttributeRef;
00024
00025 static inline bool GBisAttributeRefValid(const GB_AttributeRef &a)
00026 { return a >= 0; }
00027 static inline bool GBisAttributeRefInvalid(const GB_AttributeRef &a)
00028 { return a < 0; }
00029 static inline GB_AttributeRef GBmakeInvalidAttributeRef()
00030 { return -1; }
00031 static inline void GBclearAttributeRef(GB_AttributeRef &a)
00032 { a = -1; }
00033
00034 #endif