Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::iostreams::mapped_file_source Class Reference

#include <mapped_file.hpp>

Inheritance diagram for boost::iostreams::mapped_file_source:
Collaboration diagram for boost::iostreams::mapped_file_source:

Classes

struct  category
 

Public Types

typedef char char_type
 
typedef std::size_t size_type
 
typedef const char * iterator
 
enum  mapmode {
  readonly = 1,
  readwrite = 2,
  priv = 4
}
 

Public Member Functions

 BOOST_STATIC_CONSTANT (size_type, max_length=static_cast< size_type >(-1))
 
 mapped_file_source ()
 
template<typename Path >
 mapped_file_source (const basic_mapped_file_params< Path > &p)
 
template<typename Path >
 mapped_file_source (const Path &path, size_type length=max_length, boost::intmax_t offset=0)
 
 mapped_file_source (const mapped_file_source &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)
 
bool is_open () const
 
void close ()
 
 operator safe_bool () const
 
bool operator! () const
 
mapmode flags () const
 
size_type size () const
 
const char * data () const
 
iterator begin () const
 
iterator end () const
 

Static Public Member Functions

static int alignment ()
 

Friends

class mapped_file
 
class detail::mapped_file_impl
 
struct boost::iostreams::operations< mapped_file_source >
 

Member Typedef Documentation

Member Enumeration Documentation

Enumerator
readonly 
readwrite 
priv 

Constructor & Destructor Documentation

boost::iostreams::mapped_file_source::mapped_file_source ( )
template<typename Path >
boost::iostreams::mapped_file_source::mapped_file_source ( const basic_mapped_file_params< Path > &  p)
explicit

References open().

template<typename Path >
boost::iostreams::mapped_file_source::mapped_file_source ( const Path &  path,
size_type  length = max_length,
boost::intmax_t  offset = 0 
)
explicit

References open().

boost::iostreams::mapped_file_source::mapped_file_source ( const mapped_file_source other)

Member Function Documentation

static int boost::iostreams::mapped_file_source::alignment ( )
static
iterator boost::iostreams::mapped_file_source::begin ( ) const
boost::iostreams::mapped_file_source::BOOST_STATIC_CONSTANT ( size_type  ,
max_length  = static_cast< size_type >(-1) 
)
void boost::iostreams::mapped_file_source::close ( )
const char* boost::iostreams::mapped_file_source::data ( ) const
iterator boost::iostreams::mapped_file_source::end ( ) const
mapmode boost::iostreams::mapped_file_source::flags ( ) const
bool boost::iostreams::mapped_file_source::is_open ( ) const
template<typename Path >
void boost::iostreams::mapped_file_source::open ( const Path &  path,
size_type  length = max_length,
boost::intmax_t  offset = 0 
)
boost::iostreams::mapped_file_source::operator safe_bool ( ) const
bool boost::iostreams::mapped_file_source::operator! ( ) const
size_type boost::iostreams::mapped_file_source::size ( ) const

Friends And Related Function Documentation

friend class detail::mapped_file_impl
friend
friend class mapped_file
friend

The documentation for this class was generated from the following file: