- Buffer* newBuffer(string const &s, LyXRC *, bool =false);
-private:
- enum {
- /** The max number of buffers there are possible to have
- loaded at the same time. (this only applies when we use an
- array)
- */
- NUMBER_OF_BUFFERS = 50
- };
-
- /** The Bufferlist is currently implemented as a static array.
- The buffers are new'ed and deleted as reqested.
- */
- Buffer *buffer[NUMBER_OF_BUFFERS];
+ typedef Container::size_type size_type;
+ /**
+ Is the container empty or not.
+ \return True if the container is empty, False otherwise.
+ */
+ bool empty() const { return container.empty(); }
+ /**
+ Releases the passed buffer from the storage and deletes
+ all resources.
+ \param buf The buffer to release.
+ */
+ void release(Buffer * buf);
+ /**
+ \param s The name of the file to base the buffer on.
+ \param ronly If the buffer should be created read only of not.
+ \return The newly created buffer.
+ */
+ Buffer * newBuffer(string const & s, bool ronly = false);