Logo Search packages:      
Sourcecode: lttoolbox version File versions  Download package

template<class T>
Buffer< T >::Buffer ( unsigned int const   buf_size = 2048  )  [inline]

Constructor

Parameters:
buf_size buffer size

Definition at line 76 of file Buffer.H.

    {
      if(buf_size == 0)
      {
      cerr << "Error: Cannot create empty buffer." << endl;
      exit(EXIT_FAILURE);
      }    
      buf = new T[buf_size];
      size = buf_size;
      currentpos = 0;
      lastpos = 0;
    }


Generated by  Doxygen 1.6.0   Back to index