Savarese Software Research Corporation
detail::array_device_adapter< Ch, mode_type > Class Template Reference

This is a Boost iostreams direct device whose begin and end pointers can be modified. More...

#include <serialization.h>

Classes

struct   category
 

Public Types

typedef Ch  char_type
 
typedef std::pair< char_type *, char_type * >  pair_type
 

Public Member Functions

  array_device_adapter ()
 
  array_device_adapter (char_type *begin, char_type *end)
 
  array_device_adapter (char_type *begin, std::size_t size)
 
void  init (char_type *begin, char_type *end)
 
void  init (char_type *begin, std::size_t size)
 
void  set_size (std::size_t size)
 
pair_type  input_sequence ()
 
pair_type  output_sequence ()
 

Detailed Description

template<typename Ch, typename mode_type = boost::iostreams::seekable>
class detail::array_device_adapter< Ch, mode_type >

This is a Boost iostreams direct device whose begin and end pointers can be modified.

Unfortunately, Boost iostreams stream buffers make their own copies of the pointers. Therefore, even after resetting the device pointers, you have to reopen the stream buffer.

Definition at line 68 of file serialization.h.

Member Typedef Documentation

template<typename Ch , typename mode_type = boost::iostreams::seekable>
typedef Ch detail::array_device_adapter< Ch, mode_type >::char_type

Definition at line 70 of file serialization.h.

template<typename Ch , typename mode_type = boost::iostreams::seekable>
typedef std::pair<char_type*, char_type*> detail::array_device_adapter< Ch, mode_type >::pair_type

Definition at line 71 of file serialization.h.

Constructor & Destructor Documentation

template<typename Ch , typename mode_type = boost::iostreams::seekable>
detail::array_device_adapter< Ch, mode_type >::array_device_adapter ( )
inline

Definition at line 84 of file serialization.h.

template<typename Ch , typename mode_type = boost::iostreams::seekable>
detail::array_device_adapter< Ch, mode_type >::array_device_adapter ( char_type begin,
char_type end 
)
inline

Definition at line 86 of file serialization.h.

template<typename Ch , typename mode_type = boost::iostreams::seekable>
detail::array_device_adapter< Ch, mode_type >::array_device_adapter ( char_type begin,
std::size_t  size 
)
inline

Definition at line 90 of file serialization.h.

Member Function Documentation

template<typename Ch , typename mode_type = boost::iostreams::seekable>
void detail::array_device_adapter< Ch, mode_type >::init ( char_type begin,
char_type end 
)
inline

Definition at line 94 of file serialization.h.

Referenced by Packer< Archive >::pack(), and Unpacker< Archive >::unpack().

template<typename Ch , typename mode_type = boost::iostreams::seekable>
void detail::array_device_adapter< Ch, mode_type >::init ( char_type begin,
std::size_t  size 
)
inline

Definition at line 99 of file serialization.h.

template<typename Ch , typename mode_type = boost::iostreams::seekable>
pair_type detail::array_device_adapter< Ch, mode_type >::input_sequence ( )
inline

Definition at line 108 of file serialization.h.

template<typename Ch , typename mode_type = boost::iostreams::seekable>
pair_type detail::array_device_adapter< Ch, mode_type >::output_sequence ( )
inline

Definition at line 112 of file serialization.h.

template<typename Ch , typename mode_type = boost::iostreams::seekable>
void detail::array_device_adapter< Ch, mode_type >::set_size ( std::size_t  size )
inline

Definition at line 104 of file serialization.h.


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

Savarese Software Research Corporation
Copyright © 2006-2012 Savarese Software Research Corporation. All rights reserved.