Changeset 828 in dev for trunk/ab5.0/abdev/ab_common/include/Lexical/NativeCode.h
- Timestamp:
- Mar 19, 2012, 1:59:48 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to
/branches/egtra merged eligible
-
Property svn:mergeinfo
set to
-
trunk/ab5.0/abdev
-
Property svn:ignore
set to
*.opensdf
*.sdf
*.suo
*.user
int
ipch
out
-
Property svn:ignore
set to
-
trunk/ab5.0/abdev/ab_common/include/Lexical/NativeCode.h
r641 r828 97 97 } 98 98 } 99 Schedule(Schedule&& y) 100 : type(std::move(y.type)) 101 , offset(std::move(y.offset)) 102 , lpValue(std::move(y.lpValue)) 103 { 104 } 105 Schedule(Schedule const& y) 106 : type(y.type) 107 , offset(y.offset) 108 , lpValue(y.lpValue) 109 { 110 } 111 Schedule& operator =(Schedule&& y) 112 { 113 type = std::move(y.type); 114 offset = std::move(y.offset); 115 lpValue = std::move(y.lpValue); 116 return *this; 117 } 118 Schedule& operator =(Schedule const& y) 119 { 120 return *this = std::move(Schedule(y)); 121 } 99 122 ~Schedule() 100 123 { … … 151 174 { 152 175 } 176 SourceLine(SourceLine const& y) 177 : nativeCodePos(y.nativeCodePos) 178 , codeType(y.codeType) 179 , sourceCodePosition(y.sourceCodePosition) 180 { 181 } 182 SourceLine(SourceLine&& y) 183 : nativeCodePos(std::move(y.nativeCodePos)) 184 , codeType(std::move(y.codeType)) 185 , sourceCodePosition(std::move(y.sourceCodePosition)) 186 { 187 } 188 SourceLine& operator =(SourceLine&& y) 189 { 190 nativeCodePos = std::move(y.nativeCodePos); 191 codeType = std::move(y.codeType); 192 sourceCodePosition = std::move(y.sourceCodePosition); 193 return *this; 194 } 195 SourceLine& operator =(SourceLine const& y) 196 { 197 return *this = std::move(SourceLine(y)); 198 } 153 199 154 200 long GetNativeCodePos() const
Note:
See TracChangeset
for help on using the changeset viewer.