Revision 1312 trunk/src/df1b2-separable/df1b2f10.cpp

df1b2f10.cpp (revision 1312)
23 23
  end_saved=0;
24 24
}
25 25

  
26
void xxx_yyy(df1b2variable * tmp){;}
27

  
28 26
/**
29
 * Description not yet available.
30
 * \param
31
 */
27
Default constructor
28
*/
32 29
test_smartlist::test_smartlist(void)
33 30
{
34 31
  bufsize=0;
......
250 247
 */
251 248
void test_smartlist::read_buffer(void)
252 249
{
253
  off_t pos;
254
  unsigned int nbytes;
255 250
  if (!written_flag)
256 251
  {
257 252
    if (direction ==-1)
......
261 256
  }
262 257
  else
263 258
  {
259
    off_t pos;
264 260
    if (direction ==-1) // we are going backwards
265 261
    {
266 262
      // offset of the begining of the record is at the end
......
272 268
      //*(off_t*)(bptr)=lseek(fp,pos,SEEK_SET);
273 269
    }
274 270
    // get the record size
271
    unsigned int nbytes = 0;
275 272
    ::read(fp,&nbytes,sizeof(int));
276 273
    if (nbytes>bufsize)
277 274
    {
......
347 344
 * Description not yet available.
348 345
 * \param
349 346
 */
350
void test_smartlist::operator -= (int n)
347
void test_smartlist::operator-=(int n)
351 348
{
352 349
  if (bptr-n<buffer)
353 350
  {
......
373 370
 * Description not yet available.
374 371
 * \param
375 372
 */
376
void test_smartlist::operator += (int nsize)
373
void test_smartlist::operator+=(int nsize)
377 374
{
378 375
  if ( bptr+nsize-1 > buffend)
379 376
  {
......
396 393
    bptr+=nsize;
397 394
  }
398 395
}
399

  
400 396
/**
401
 * Description not yet available.
402
 * \param
403
 */
397
Destructor
398
*/
404 399
test_smartlist::~test_smartlist()
405 400
{
406 401
  end_saved=0;
......
410 405
  direction=0;
411 406
  bufsize=0;
412 407

  
413
  //delete true_buffer;
414
  delete [] true_buffer;
415
  true_buffer=0;
408
  if (true_buffer)
409
  {
410
    delete [] true_buffer;
411
    true_buffer=0;
412
  }
416 413
  true_buffend=0;
417 414
  buffer=0;
418 415
  buffend=0;
......
429 426
  }
430 427
  close(fp);
431 428
  fp=0;
432
  #if defined ( __SUN__) ||  defined ( __GNU__)
433
   unlink(filename);
434
  #else
435
   remove(filename);
436
  #endif
429
#if defined ( __SUN__) ||  defined ( __GNU__)
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff