#include <mapped_file.hpp>
Classes | |
struct | category |
Public Types | |
typedef char | char_type |
typedef mapped_file_source::size_type | size_type |
typedef char * | iterator |
Public Member Functions | |
mapped_file_sink () | |
template<typename Path > | |
mapped_file_sink (const basic_mapped_file_params< Path > &p) | |
template<typename Path > | |
mapped_file_sink (const Path &path, size_type length=max_length, boost::intmax_t offset=0, mapmode flags=readwrite) | |
mapped_file_sink (const mapped_file_sink &other) | |
template<typename Path > | |
void | open (const basic_mapped_file_params< Path > &p) |
template<typename Path > | |
void | open (const Path &path, size_type length=max_length, boost::intmax_t offset=0, mapmode flags=readwrite) |
Private Types | |
typedef const char * | const_iterator |
enum | mapmode { readonly = 1, readwrite = 2, priv = 4 } |
Private Member Functions | |
BOOST_STATIC_CONSTANT (size_type, max_length=delegate_type::max_length) | |
operator mapped_file_source & () | |
operator const mapped_file_source & () const | |
template<typename Path > | |
void | open (const Path &path, mapmode mode, size_type length=max_length, stream_offset offset=0) |
template<typename Path > | |
void | open (const Path &path, BOOST_IOS::openmode mode=BOOST_IOS::in|BOOST_IOS::out, size_type length=max_length, stream_offset offset=0) |
bool | is_open () const |
void | close () |
operator safe_bool () const | |
bool | operator! () const |
mapmode | flags () const |
size_type | size () const |
char * | data () const |
const char * | const_data () const |
iterator | begin () const |
const_iterator | const_begin () const |
iterator | end () const |
const_iterator | const_end () const |
void | resize (stream_offset new_size) |
Static Private Member Functions | |
static int | alignment () |
Friends | |
struct | boost::iostreams::operations< mapped_file_sink > |
typedef char boost::iostreams::mapped_file::char_type |
typedef char* boost::iostreams::mapped_file::iterator |
|
inline |
|
explicit |
References open().
|
explicit |
References open().
boost::iostreams::mapped_file_sink::mapped_file_sink | ( | const mapped_file_sink & | other | ) |
void boost::iostreams::mapped_file_sink::open | ( | const basic_mapped_file_params< Path > & | p | ) |
References boost::iostreams::detail::mapped_file_params_base::flags, boost::flyweights::in, boost::iostreams::detail::mapped_file_params_base::mode, boost::iostreams::mapped_file::open(), boost::out, boost::iostreams::mapped_file_base::readonly, and boost::throw_exception().
Referenced by mapped_file_sink(), and open().
|
friend |