Changeset 768 for XIOS/trunk
- Timestamp:
- 10/30/15 16:33:48 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/declare_ref_func.hpp
r752 r768 17 17 C##type* getDirect##type##Reference(void) const; \ 18 18 C##type* getBase##type##Reference(void) const; \ 19 const std::vector<C##type*>& getAllReference(void) const; \20 19 void removeRefInheritance(); \ 21 20 const StdString& getBase##type##Id(void) const; \ … … 24 23 \ 25 24 private: \ 26 void addReference(C##type* _##name##_); \27 \28 std::vector<C##type*> refObject; \29 25 C##type* baseRefObject; \ 30 26 … … 78 74 } \ 79 75 } \ 80 \81 if (hasDirect##type##Reference()) baseRefObject->addReference(this); \82 76 } \ 83 77 \ … … 100 94 } \ 101 95 \ 102 const std::vector<C##type*>& C##type::getAllReference(void) const \103 { \104 return refObject; \105 } \106 \107 96 const StdString& C##type::getBase##type##Id(void) const \ 108 97 { \ 109 98 return this->getBase##type##Reference()->getId(); \ 110 } \111 \112 void C##type::addReference(C##type* _##name##_) \113 { \114 refObject.push_back(_##name##_); \115 99 } \ 116 100 \
Note: See TracChangeset
for help on using the changeset viewer.