Changeset 816 in dev for branches/egtra/ab5.0/abdev/ab_common/include/Lexical/Interface.h
- Timestamp:
- Mar 19, 2011, 9:13:12 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/egtra/ab5.0/abdev/ab_common/include/Lexical/Interface.h
r728 r816 17 17 18 18 public: 19 DynamicMethodsPrototype() {}20 DynamicMethodsPrototype( const DynamicMethodsPrototype &dynamicMethodsPrototype)21 : dynamicMethods( dynamicMethodsPrototype.dynamicMethods)19 DynamicMethodsPrototype() {} 20 DynamicMethodsPrototype(DynamicMethodsPrototype&& dynamicMethodsPrototype) 21 : dynamicMethods(std::move(dynamicMethodsPrototype.dynamicMethods)) 22 22 { 23 23 } 24 DynamicMethodsPrototype(const DynamicMethodsPrototype &dynamicMethodsPrototype) 25 : dynamicMethods(dynamicMethodsPrototype.dynamicMethods) 26 { 27 } 28 29 DynamicMethodsPrototype& operator =(DynamicMethodsPrototype&& y) 30 { 31 dynamicMethods = std::move(y.dynamicMethods); 32 return *this; 33 } 34 35 DynamicMethodsPrototype& operator =(DynamicMethodsPrototype const& y) 36 { 37 return *this = std::move(DynamicMethodsPrototype(y)); 38 } 39 24 40 ~DynamicMethodsPrototype(){} 25 41 … … 62 78 public: 63 79 Interface( const CClass *pInterfaceClass, const Types &actualTypeParameters ); 80 Interface(Interface&& objInterface) 81 : DynamicMethodsPrototype(std::move(objInterface)) 82 , pInterfaceClass(std::move(objInterface.pInterfaceClass)) 83 , vtblOffset(std::move(objInterface.vtblOffset)) 84 { 85 } 64 86 Interface( const Interface &objInterface ) 65 87 : DynamicMethodsPrototype( objInterface ) … … 72 94 , vtblOffset( NULL ) 73 95 { 96 } 97 98 Interface& operator =(Interface&& y) 99 { 100 DynamicMethodsPrototype::operator =(std::move(y)); 101 pInterfaceClass = std::move(y.pInterfaceClass); 102 vtblOffset = std::move(y.vtblOffset); 103 return *this; 104 } 105 106 Interface& operator =(Interface const& y) 107 { 108 return *this = std::move(Interface(y)); 74 109 } 75 110
Note:
See TracChangeset
for help on using the changeset viewer.