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 69 of file serialization.h.
Member Typedef Documentation
| typedef Ch detail::array_device_adapter< Ch, mode_type >::char_type |
Definition at line 71 of file serialization.h.
| typedef std::pair<char_type*, char_type*> detail::array_device_adapter< Ch, mode_type >::pair_type |
Definition at line 72 of file serialization.h.
Constructor & Destructor Documentation
| detail::array_device_adapter< Ch, mode_type >::array_device_adapter | ( | ) | [inline] |
Definition at line 85 of file serialization.h.
| detail::array_device_adapter< Ch, mode_type >::array_device_adapter | ( | char_type * | begin, |
| char_type * | end | ||
| ) | [inline] |
Definition at line 87 of file serialization.h.
| detail::array_device_adapter< Ch, mode_type >::array_device_adapter | ( | char_type * | begin, |
| std::size_t | size | ||
| ) | [inline] |
Definition at line 91 of file serialization.h.
Member Function Documentation
| void detail::array_device_adapter< Ch, mode_type >::init | ( | char_type * | begin, |
| char_type * | end | ||
| ) | [inline] |
Definition at line 95 of file serialization.h.
Referenced by Packer< Archive >::pack(), and Unpacker< Archive >::unpack().
| void detail::array_device_adapter< Ch, mode_type >::init | ( | char_type * | begin, |
| std::size_t | size | ||
| ) | [inline] |
Definition at line 100 of file serialization.h.
| pair_type detail::array_device_adapter< Ch, mode_type >::input_sequence | ( | ) | [inline] |
Definition at line 109 of file serialization.h.
| pair_type detail::array_device_adapter< Ch, mode_type >::output_sequence | ( | ) | [inline] |
Definition at line 113 of file serialization.h.
| void detail::array_device_adapter< Ch, mode_type >::set_size | ( | std::size_t | size | ) | [inline] |
Definition at line 105 of file serialization.h.
The documentation for this class was generated from the following file: