// file: circular_buffer/cb_debug_0.cc
//

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

// method: debug
//
// arguments: none
//  
// return: none
//
// this method displays the contents of circular buffer
//
void Circular_buffer::debug() {

  printf("Circular_buffer:\n");
  printf("  size = %d  ", size_d);
  for (int i = 0; i < dim_d; i++) {
    printf("\n%d: idx = %d, num = %d\n    ", i, idx_d[i], get_size_cc(i));
    for (int j = 0; j < size_d; j++) {
      printf("%f ", (float)buf_d[i][j]);
    }
  }
  printf("\n");
}
