#include "support/docstring.h"
-#include <boost/noncopyable.hpp>
-
#include <vector>
* The class holds all all open buffers, and handles construction
* and deletions of new ones.
*/
-class BufferList : boost::noncopyable {
+class BufferList {
public:
typedef std::vector<Buffer *>::iterator iterator;
typedef std::vector<Buffer *>::const_iterator const_iterator;
/// returns true if the buffer is loaded
bool isLoaded(Buffer const * b) const;
+ /// return index of named buffer in buffer list
+ int bufferNum(std::string const & name) const;
/// returns a pointer to the buffer with the given name.
Buffer * getBuffer(std::string const &);
/// returns a pointer to the buffer with the given number.
void setCurrentAuthor(docstring const & name, docstring const & email);
private:
+ /// noncopiable
+ BufferList(BufferList const &);
+ void operator=(BufferList const &);
+
/// ask to save a buffer on quit, returns false if should cancel
bool quitWriteBuffer(Buffer * buf);