/* * CircBuffer.h * BrainSim * * Created by Joshua Hegie on 10/22/09. * Copyright 2009 3544776. All rights reserved. * */ #pragma once #define maxSize 100000 #include <stdio.h> #include "SendItem.h" class Buffer { public: Buffer (); ~Buffer (); void insert (const SendItem&); // insert at head bool remove (SendItem &); // remove from tail bool isEmpty ( ) const; bool isFull ( ) const; private: int head, tail; // Front and end of relevent data SendItem buff[maxSize]; };