// file: circular_buffer/cb_clean_0.cc
//

// isip include files
//
#include "CircularBuffer.h"

// method: empty_cc
//
// arguments: none
//
// return: none
//
// this method cleans up the circular buffer.
//
void Circular_buffer::empty_cc() {
  
  // check if a buffer already exists
  //
  if (idx_d != (int*)NULL) {
    for (int i = 0; i < dim_d; i++) {
      idx_d[i] = -1;
    }
  }

  if (num_d != (int*)NULL) {
    for (int i = 0; i < dim_d; i++) {
      num_d[i] = 0;
    }
  }  

  // exit gracefully
  //
}
