Changeset 768 for XIOS/trunk/src


Ignore:
Timestamp:
10/30/15 16:33:48 (8 years ago)
Author:
rlacroix
Message:

Remove now unused reference tracking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/declare_ref_func.hpp

    r752 r768  
    1717  C##type* getDirect##type##Reference(void) const;          \ 
    1818  C##type* getBase##type##Reference(void) const;            \ 
    19   const std::vector<C##type*>& getAllReference(void) const; \ 
    2019  void removeRefInheritance();                              \ 
    2120  const StdString& getBase##type##Id(void) const;           \ 
     
    2423                                                            \ 
    2524private:                                                    \ 
    26   void addReference(C##type* _##name##_);                   \ 
    27                                                             \ 
    28   std::vector<C##type*> refObject;                          \ 
    2925  C##type* baseRefObject;                                   \ 
    3026 
     
    7874    }                                                                  \ 
    7975  }                                                                    \ 
    80                                                                        \ 
    81   if (hasDirect##type##Reference()) baseRefObject->addReference(this); \ 
    8276}                                                                      \ 
    8377                                                                       \ 
     
    10094}                                                                      \ 
    10195                                                                       \ 
    102 const std::vector<C##type*>& C##type::getAllReference(void) const      \ 
    103 {                                                                      \ 
    104   return refObject;                                                    \ 
    105 }                                                                      \ 
    106                                                                        \ 
    10796const StdString& C##type::getBase##type##Id(void) const                \ 
    10897{                                                                      \ 
    10998  return this->getBase##type##Reference()->getId();                    \ 
    110 }                                                                      \ 
    111                                                                        \ 
    112 void C##type::addReference(C##type* _##name##_)                        \ 
    113 {                                                                      \ 
    114   refObject.push_back(_##name##_);                                     \ 
    11599}                                                                      \ 
    116100                                                                       \ 
Note: See TracChangeset for help on using the changeset viewer.