#ifndef __BUFFERLIST_HPP #define __BUFFERLIST_HPP class ICEBuffer; class BufferList { struct entry { ICEBuffer *buf; entry *prev,next; }; entry *first; public: BufferList(); virtual ~BufferList(); int insert(ICEBuffer *buf); ICEBuffer *queryFirstBuffer(); ICEBuffer *queryPreviousBuffer(ICEBuffer *buf); ICEBuffer *queryNextBuffer(ICEBuffer *buf); void remove(ICEBuffer *buf); }; #endif