Changeset 816 in dev for branches/egtra/ab5.0/abdev/ab_common/include/Lexical/Method.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/Method.h
r776 r816 25 25 { 26 26 } 27 27 28 CMethod() 28 { 29 } 30 29 : MemberPrototype() 30 , pUserProc() 31 { 32 } 33 34 protected: 35 CMethod(CMethod const& y) 36 : MemberPrototype(y) 37 , pUserProc(y.pUserProc) 38 { 39 } 40 41 public: 31 42 const UserProc &GetUserProc() const 32 43 { … … 50 61 51 62 virtual bool Resolve( const ObjectModule &resolver, ResolveErrors &resolveErrors ); 63 64 private: 65 CMethod& operator =(CMethod const&); 52 66 }; 53 67 … … 103 117 { 104 118 } 105 DynamicMethod( const CMethod &method )119 explicit DynamicMethod( const CMethod &method ) 106 120 : CMethod( &method.GetUserProc(), method.GetAccessibility() ) 107 121 , isAbstract( method.IsAbstract() ) … … 116 130 } 117 131 132 DynamicMethod(DynamicMethod&& y) 133 : CMethod(std::move(y)) 134 , isAbstract(std::move(y.isAbstract)) 135 , isVirtual(std::move(y.isVirtual)) 136 , isConst(std::move(y.isConst)) 137 , pInheritsClass(std::move(y.pInheritsClass)) 138 , isNotUse(std::move(y.isNotUse)) 139 { 140 } 141 142 DynamicMethod(DynamicMethod const& y) 143 : CMethod(y) 144 , isAbstract(y.isAbstract) 145 , isVirtual(y.isVirtual) 146 , isConst(y.isConst) 147 , pInheritsClass(y.pInheritsClass) 148 , isNotUse(y.isNotUse) 149 { 150 } 151 152 DynamicMethod& operator =(DynamicMethod const&); 153 118 154 DynamicMethod::OverrideResult::EnumType Override( const UserProc *pUserProc, Prototype::Accessibility accessibility, bool isOverrideModifier ); 119 155 … … 182 218 } 183 219 220 // ムーブコンストラクタ 221 StaticMethod(StaticMethod&& y); 222 184 223 // コピーコンストラクタ 185 224 StaticMethod( const StaticMethod &staticMethod ); … … 255 294 Methods(); 256 295 296 // ムーブコンストラクタ 297 Methods(Methods&& methods); 298 257 299 // コピーコンストラクタ 258 Methods( const Methods &methods ); 300 Methods(const Methods &methods); 301 302 Methods& operator =(Methods&& methods) 303 { 304 std::vector<CMethod *>::operator =(std::move(methods)); 305 return *this; 306 } 307 308 Methods& operator =(const Methods &methods) 309 { 310 return *this = Methods(methods); 311 } 259 312 260 313 // デストラクタ
Note:
See TracChangeset
for help on using the changeset viewer.