Changeset 2448 in Sophya for trunk/ArchTOIPipe/Kernel/toiprocessor.cc
- Timestamp:
- Oct 13, 2003, 10:48:37 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/Kernel/toiprocessor.cc
r2282 r2448 3 3 // Christophe Magneville 4 4 // Reza Ansari 5 // $Id: toiprocessor.cc,v 1.2 7 2002-11-28 15:49:21aubourg Exp $5 // $Id: toiprocessor.cc,v 1.28 2003-10-13 20:48:37 aubourg Exp $ 6 6 7 7 #include "toiprocessor.h" … … 93 93 } 94 94 95 intTOIProcessor::getMinOut() {95 long TOIProcessor::getMinOut() { 96 96 // return snBegin + lowExtra; 97 97 return snBegin; 98 98 } 99 99 100 intTOIProcessor::getMaxOut() {100 long TOIProcessor::getMaxOut() { 101 101 // return snEnd - upExtra; 102 102 return snEnd; 103 103 } 104 104 105 intTOIProcessor::calcMinOut() {105 long TOIProcessor::calcMinOut() { 106 106 return getMinIn() + lowExtra; 107 107 } 108 108 109 intTOIProcessor::calcMaxOut() {109 long TOIProcessor::calcMaxOut() { 110 110 return getMaxIn() - upExtra; 111 111 } 112 112 113 intTOIProcessor::getMinIn() {113 long TOIProcessor::getMinIn() { 114 114 // return snBegin; 115 115 return snBegin - lowExtra; 116 116 } 117 117 118 intTOIProcessor::getMaxIn() {118 long TOIProcessor::getMaxIn() { 119 119 // return snEnd; 120 120 return snEnd + upExtra; … … 312 312 #ifndef NO_SOPHYA 313 313 /* ---- l'interface va etre modifiee, NE PAS UTILISER 314 Array TOIProcessor::getData(int toiIndex, int iStart, intiEnd) {314 Array TOIProcessor::getData(int toiIndex, long iStart, long iEnd) { 315 315 TOI* toi = getInputTOI(toiIndex); 316 316 toi->waitForData(iStart, iEnd); … … 318 318 } 319 319 320 Array TOIProcessor::getError(int toiIndex, int iStart, intiEnd) {320 Array TOIProcessor::getError(int toiIndex, long iStart, long iEnd) { 321 321 TOI* toi = getInputTOI(toiIndex); 322 322 toi->waitForData(iStart, iEnd); … … 324 324 } 325 325 326 TArray<int_4> TOIProcessor::getFlag(int toiIndex, int iStart, intiEnd) {326 TArray<int_4> TOIProcessor::getFlag(int toiIndex, long iStart, long iEnd) { 327 327 TOI* toi = getInputTOI(toiIndex); 328 328 toi->waitForData(iStart, iEnd); … … 332 332 #endif 333 333 334 double TOIProcessor::getData(int toiIndex, inti) {334 double TOIProcessor::getData(int toiIndex, long i) { 335 335 TOI* toi = getInputTOI(toiIndex); 336 336 if (toi->needSyncOldWay()) toi->waitForData(i); // seulement pour autre que segmented … … 339 339 } 340 340 341 void TOIProcessor::getData(int toiIndex, inti, double &data, uint_8 &flag)341 void TOIProcessor::getData(int toiIndex, long i, double &data, uint_8 &flag) 342 342 { 343 343 TOI* toi = getInputTOI(toiIndex); … … 348 348 } 349 349 350 void TOIProcessor::getData(int toiIndex, int i, intn, double* d)350 void TOIProcessor::getData(int toiIndex, long i, long n, double* d) 351 351 { 352 352 TOI* toi = getInputTOI(toiIndex); … … 357 357 } 358 358 359 void TOIProcessor::getData(int toiIndex, int i, intn, double* d, uint_8* f)359 void TOIProcessor::getData(int toiIndex, long i, long n, double* d, uint_8* f) 360 360 { 361 361 TOI* toi = getInputTOI(toiIndex); … … 368 368 369 369 /*RZCMV 370 double TOIProcessor::getError(int toiIndex, inti) {370 double TOIProcessor::getError(int toiIndex, long i) { 371 371 TOI* toi = getInputTOI(toiIndex); 372 372 toi->waitForData(i); … … 374 374 } 375 375 376 int_4 TOIProcessor::getFlag(int toiIndex, inti) {376 int_4 TOIProcessor::getFlag(int toiIndex, long i) { 377 377 TOI* toi = getInputTOI(toiIndex); 378 378 toi->waitForData(i); … … 381 381 */ 382 382 383 void TOIProcessor::setNeededHistory( intnsamples) {383 void TOIProcessor::setNeededHistory(long nsamples) { 384 384 neededHistory = nsamples; 385 385 } 386 386 387 void TOIProcessor::wontNeedBefore( inti) {387 void TOIProcessor::wontNeedBefore(long i) { 388 388 if (i<wontNeedValue) return; 389 389 wontNeedValue = i; … … 394 394 } 395 395 396 void TOIProcessor::autoWontNeed( intiCur) {396 void TOIProcessor::autoWontNeed(long iCur) { 397 397 if (neededHistory <=0) return; 398 398 if (iCur < lastAWN + neededHistory/10) return; … … 409 409 410 410 411 void TOIProcessor::putData(int toiIndex, inti, double value, uint_8 flg) {411 void TOIProcessor::putData(int toiIndex, long i, double value, uint_8 flg) { 412 412 TOI* toi = getOutputTOI(toiIndex); 413 413 if (toi == NULL) return; … … 417 417 } 418 418 419 void TOIProcessor::putData(int toiIndex, int i, intn, double const* val,419 void TOIProcessor::putData(int toiIndex, long i, long n, double const* val, 420 420 uint_8 const* flg) { 421 421 TOI* toi = getOutputTOI(toiIndex); … … 426 426 427 427 /*RZCMV 428 void TOIProcessor::putDataError(int toiIndex, inti, double value,428 void TOIProcessor::putDataError(int toiIndex, long i, double value, 429 429 double error, int_4 flg) { 430 430 TOI* toi = getOutputTOI(toiIndex);
Note:
See TracChangeset
for help on using the changeset viewer.