Changeset 272 for trunk/src/SDMathWrapper.cc
- Timestamp:
- 01/24/05 01:00:14 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDMathWrapper.cc
r268 r272 228 228 } 229 229 230 void SDMathWrapper::velocityAlignmentInSitu (SDMemTableWrapper& in) 231 { 232 SDMemTable* pIn = in.getPtr(); 233 SDMath sdm; 234 SDMemTable* pOut = sdm.velocityAlignment(*pIn); 235 *pIn = *pOut; 236 delete pOut; 237 } 238 239 240 SDMemTableWrapper SDMathWrapper::velocityAlignment (const SDMemTableWrapper& in) 241 { 242 const CountedPtr<SDMemTable>& pIn = in.getCP(); 243 SDMath sdm; 244 return CountedPtr<SDMemTable>(sdm.velocityAlignment(*pIn)); 230 void SDMathWrapper::velocityAlignmentInSitu (SDMemTableWrapper& in, const std::string& refTime) 231 { 232 SDMemTable* pIn = in.getPtr(); 233 SDMath sdm; 234 SDMemTable* pOut = sdm.velocityAlignment(*pIn, String(refTime)); 235 *pIn = *pOut; 236 delete pOut; 237 } 238 239 240 SDMemTableWrapper SDMathWrapper::velocityAlignment (const SDMemTableWrapper& in, 241 const std::string& refTime) 242 { 243 const CountedPtr<SDMemTable>& pIn = in.getCP(); 244 SDMath sdm; 245 return CountedPtr<SDMemTable>(sdm.velocityAlignment(*pIn, String(refTime))); 245 246 } 246 247
Note: See TracChangeset
for help on using the changeset viewer.