| 56 | | #define OLD_OSG_GEN_INTERNALPTR(CLASST) \ |
|---|
| 57 | | typedef CLASST * ObjPtr; \ |
|---|
| 58 | | typedef CLASST * const ObjPtrConst; \ |
|---|
| 59 | | typedef const CLASST * ObjConstPtr; \ |
|---|
| 60 | | typedef CLASST * const ObjPtrConstArg |
|---|
| 61 | | |
|---|
| 62 | | #if 0 |
|---|
| 63 | | typedef const CLASST * const ObjConstPtrConst; \ |
|---|
| 64 | | \ |
|---|
| 65 | | typedef CLASST * ObjPtrArg; \ |
|---|
| 66 | | typedef const CLASST * ObjConstPtrArg |
|---|
| 67 | | #endif |
|---|
| 68 | | |
|---|
| 69 | | #define OLD_OSG_GEN_CONTAINERPTR(CLASST) \ |
|---|
| 70 | | typedef CLASST * CLASST##Ptr; \ |
|---|
| 71 | | typedef CLASST * const CLASST##PtrConst; \ |
|---|
| 72 | | typedef const CLASST * CLASST##ConstPtrArg; \ |
|---|
| 73 | | typedef CLASST * const CLASST##PtrConstArg; \ |
|---|
| 74 | | typedef const CLASST * const CLASST##ConstPtrConst; \ |
|---|
| 75 | | typedef CLASST * CLASST##PtrArg; \ |
|---|
| 76 | | typedef const CLASST * CLASST##ConstPtr; |
|---|
| 77 | | |
|---|
| 78 | | #define NEW_REFPTR |
|---|
| 79 | | |
|---|
| 80 | | |
|---|
| 81 | | #define TMP_INTERNAL_PTR(CLASST) \ |
|---|
| 82 | | typedef TransitPtr< CLASST > ObjTransitPtr; \ |
|---|
| 83 | | typedef RefCountPtr<CLASST, RecordedRefCountPolicy > ObjRecPtr; \ |
|---|
| 84 | | typedef RefCountPtr<CLASST, UnrecordedRefCountPolicy> ObjUnrecPtr; \ |
|---|
| 85 | | typedef RefCountPtr<CLASST, WeakRefCountPolicy > ObjWeakPtr; |
|---|
| 86 | | |
|---|
| 87 | | #define TMP_PTR(CLASST) \ |
|---|
| 88 | | typedef TransitPtr < CLASST > CLASST##TransitPtr; \ |
|---|
| 89 | | typedef RefCountPtr< CLASST, \ |
|---|
| 90 | | RecordedRefCountPolicy > CLASST##RecPtr; \ |
|---|
| 91 | | typedef RefCountPtr< CLASST, \ |
|---|
| 92 | | UnrecordedRefCountPolicy> CLASST##UnrecPtr; \ |
|---|
| 93 | | typedef RefCountPtr< CLASST, \ |
|---|
| 94 | | WeakRefCountPolicy > CLASST##WeakPtr; \ |
|---|
| 95 | | typedef RefCountPtr< CLASST, \ |
|---|
| 96 | | MTRecordedRefCountPolicy> CLASST##MTRecPtr; \ |
|---|
| 97 | | typedef CLASST##RecPtr CLASST##RefPtr; |
|---|
| 98 | | |
|---|
| 99 | | |
|---|
| 100 | | #define OSG_GEN_INTERNALPTR(CLASST) \ |
|---|
| 101 | | typedef CLASST * ObjCPtr; \ |
|---|
| 102 | | typedef CLASST * const ObjCPtrConst; \ |
|---|
| 103 | | typedef const CLASST * ObjConstCPtr; \ |
|---|
| 104 | | typedef const CLASST * const ObjConstCPtrConst; \ |
|---|
| 105 | | \ |
|---|
| 106 | | typedef CLASST * ObjCPtrArg; \ |
|---|
| 107 | | typedef CLASST * const ObjCPtrConstArg; \ |
|---|
| 108 | | typedef const CLASST * ObjConstCPtrArg; \ |
|---|
| 109 | | \ |
|---|
| 110 | | TMP_INTERNAL_PTR(CLASST) \ |
|---|
| 111 | | \ |
|---|
| 112 | | OLD_OSG_GEN_INTERNALPTR(CLASST) |
|---|
| 113 | | |
|---|
| 114 | | |
|---|
| 115 | | |
|---|
| 116 | | #define OSG_GEN_CONTAINERPTR(CLASST) \ |
|---|
| 117 | | typedef CLASST * CLASST##CPtr; \ |
|---|
| 118 | | typedef CLASST * const CLASST##CPtrConst; \ |
|---|
| 119 | | typedef const CLASST * CLASST##ConstCPtr; \ |
|---|
| 120 | | typedef const CLASST * const CLASST##ConstCPtrConst; \ |
|---|
| 121 | | \ |
|---|
| 122 | | typedef CLASST * CLASST##CPtrArg; \ |
|---|
| 123 | | typedef CLASST * const CLASST##CPtrConstArg; \ |
|---|
| 124 | | typedef const CLASST * CLASST##ConstCPtrArg; \ |
|---|
| 125 | | \ |
|---|
| 126 | | TMP_PTR(CLASST) \ |
|---|
| 127 | | \ |
|---|
| 128 | | OLD_OSG_GEN_CONTAINERPTR(CLASST) |
|---|
| 129 | | |
|---|
| 130 | | |
|---|
| 131 | | #define OSG_GEN_NAMED_PTR(CLASST, NAME) \ |
|---|
| 132 | | typedef CLASST * NAME##Ptr; \ |
|---|
| 133 | | typedef CLASST * const NAME##PtrConst; \ |
|---|
| 134 | | typedef CLASST const * NAME##ConstPtr; \ |
|---|
| 135 | | typedef CLASST const * const NAME##ConstPtrConst; \ |
|---|
| 136 | | \ |
|---|
| 137 | | typedef CLASST * NAME##PtrArg; \ |
|---|
| 138 | | typedef CLASST * const NAME##PtrConstArg; \ |
|---|
| 139 | | typedef CLASST const * NAME##ConstPtrArg |
|---|
| 140 | | |
|---|
| | 56 | #define OSG_GEN_INTERNALPTR(CLASST) \ |
|---|
| | 57 | typedef TransitPtr< CLASST > ObjTransitPtr; \ |
|---|
| | 58 | typedef RefCountPtr<CLASST, RecordedRefCountPolicy > ObjRecPtr; \ |
|---|
| | 59 | typedef RefCountPtr<CLASST, UnrecordedRefCountPolicy> ObjUnrecPtr; \ |
|---|
| | 60 | typedef RefCountPtr<CLASST, WeakRefCountPolicy > ObjWeakPtr; \ |
|---|
| | 61 | \ |
|---|
| | 62 | typedef CLASST * ObjPtr; \ |
|---|
| | 63 | typedef CLASST const * ConstObjPtr; \ |
|---|
| | 64 | \ |
|---|
| | 65 | typedef CLASST * ObjCPtr; \ |
|---|
| | 66 | typedef CLASST const * ConstObjCPtr; |
|---|
| | 67 | |
|---|
| | 68 | |
|---|
| | 69 | |
|---|
| | 70 | |
|---|
| | 71 | #define OSG_GEN_CONTAINERPTR(CLASST) \ |
|---|
| | 72 | typedef TransitPtr < CLASST > CLASST##TransitPtr; \ |
|---|
| | 73 | typedef RefCountPtr< CLASST, \ |
|---|
| | 74 | RecordedRefCountPolicy > CLASST##RecPtr; \ |
|---|
| | 75 | typedef RefCountPtr< CLASST, \ |
|---|
| | 76 | UnrecordedRefCountPolicy> CLASST##UnrecPtr; \ |
|---|
| | 77 | typedef RefCountPtr< CLASST, \ |
|---|
| | 78 | WeakRefCountPolicy > CLASST##WeakPtr; \ |
|---|
| | 79 | typedef RefCountPtr< CLASST, \ |
|---|
| | 80 | MTRecordedRefCountPolicy> CLASST##MTRecPtr; \ |
|---|
| | 81 | typedef CLASST##RecPtr CLASST##RefPtr; \ |
|---|
| | 82 | typedef CLASST##MTRecPtr CLASST##MTRefPtr; \ |
|---|
| | 83 | \ |
|---|
| | 84 | typedef CLASST * CLASST##Ptr; \ |
|---|
| | 85 | typedef CLASST const * Const##CLASST##Ptr; \ |
|---|
| | 86 | \ |
|---|
| | 87 | typedef CLASST * CLASST##CPtr; \ |
|---|
| | 88 | typedef CLASST const * Const##CLASST##CPtr; |
|---|
| | 89 | |
|---|
| | 90 | |
|---|
| | 91 | #define OSG_GEN_NAMED_PTR(CLASST, NAME) \ |
|---|
| | 92 | typedef CLASST * NAME##Ptr; \ |
|---|
| | 93 | typedef CLASST const * Const##NAME##Ptr; |
|---|