lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
|
File inserter class that follows the STL output iterator concept to allow for convenient buffered file output. More...
#include <raw_file_inserter.h>
Inherits noncopyable.
Classes | |
class | iterator |
Iterator type. More... | |
Public Types | |
typedef char & | reference |
Character reference type. | |
typedef const char & | const_reference |
Character reference type. | |
Public Member Functions | |
LEAN_INLINE | raw_file_inserter (raw_file &file) |
Constructs a file inserter from the given raw file. | |
LEAN_INLINE | ~raw_file_inserter () |
Copy constructor. | |
LEAN_INLINE void | insert (const_reference value) |
Assigns the given file inserter to this file inserter. | |
LEAN_INLINE iterator | iter () |
Gets an output iterator. |
File inserter class that follows the STL output iterator concept to allow for convenient buffered file output.
LEAN_INLINE lean::io::raw_file_inserter< BufferSize >::~raw_file_inserter | ( | ) | [inline] |
Copy constructor.
Flushes all buffered output.
LEAN_INLINE void lean::io::raw_file_inserter< BufferSize >::insert | ( | const_reference | value | ) | [inline] |
Assigns the given file inserter to this file inserter.
Inserts the given value.