Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members

FD::Buffer Class Reference

#include <Buffer.h>

Inheritance diagram for FD::Buffer:

Inheritance graph
[legend]
Collaboration diagram for FD::Buffer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Buffer (int bLength)
 Buffer (const Buffer &)
ObjectRefget (int ind) const
ObjectRefoperator[] (int ind)
int isValid (int ind) const
void printOn (std::ostream &out=std::cout) const
int getCurrentPos ()

Protected Attributes

std::vector< ObjectRefdata
std::vector< int > flags
int bufferLength
int bufferPos
int currentPos

Detailed Description

A rotating buffer implementation. This buffer keeps the last N lines (frames) it has


Constructor & Destructor Documentation

FD::Buffer::Buffer int  bLength  )  [inline]
 

Constructor, requires the buffer length (bLength)

FD::Buffer::Buffer const Buffer  )  [inline]
 

Copy constructor (not implemented, do we need one?)


Member Function Documentation

ObjectRef & FD::Buffer::get int  ind  )  const [inline]
 

Indexing operator, read-only

ObjectRef & FD::Buffer::operator[] int  ind  )  [inline]
 

Indexing operator, also sets the indexed frame as being the current frame

void FD::Buffer::printOn std::ostream &  out = std::cout  )  const [inline, virtual]
 

Prints the Buffer

Implements FD::Object.


Member Data Documentation

int FD::Buffer::bufferLength [protected]
 

The number N of objects kept

std::vector<ObjectRef> FD::Buffer::data [mutable, protected]
 

Pointers to objects


The documentation for this class was generated from the following file:
Generated on Wed Oct 5 14:29:12 2005 for FlowDesigner by  doxygen 1.4.4