Wraps an archive around an STL vector for output.
More...
#include <vector_archive.h>
|
| std::vector< unsigned char > * | v |
| | The STL vector being wrapped.
|
|
| using | is_saving = std::true_type |
| | Type used by Boost.Serialization to determine if this object is an output archive.
|
| using | is_loading = std::false_type |
| | Type used by Boost.Serialization to determine if this object is an input archive.
|
| using | is_saving = std::false_type |
| | Type used by Boost.Serialization to determine if this object is an output archive.
|
| static constexpr bool | is_output_archive = true |
| | Flag to determine if this object is an output archive.
|
| static constexpr bool | is_archive = true |
| | Flag to determine if this object is an archive.
|
| static constexpr bool | is_input_archive = false |
| | Flag to determine if this object is an input archive.
|
| static constexpr bool | is_output_archive = false |
| | Flag to determine if this object is an output archive.
|
| static constexpr bool | is_parallel_archive = false |
| | Flag to determine if this object is a parallel archive.
|
Wraps an archive around an STL vector for output.
◆ VectorOutputArchive()
| madness::archive::VectorOutputArchive::VectorOutputArchive |
( |
std::vector< unsigned char > & | v, |
|
|
std::size_t | hint = 262144 ) |
|
inline |
Create a buffer to wrap the specified vector.
- Parameters
-
| [in] | v | The vector. |
| [in] | hint | The minimum capacity of the vector. |
References open(), and v.
◆ close()
| void madness::archive::VectorOutputArchive::close |
( |
| ) |
|
|
inline |
Close the archive.
Referenced by main().
◆ flush()
| void madness::archive::VectorOutputArchive::flush |
( |
| ) |
|
|
inline |
◆ open()
| void madness::archive::VectorOutputArchive::open |
( |
std::size_t | hint = 262144 | ) |
|
|
inline |
Clear any data in the vector and ensure its capacity is at least hint.
- Parameters
-
| [in] | hint | The minimum capacity for the vector. |
References v.
Referenced by VectorOutputArchive().
◆ store()
Appends data to the end of the vector.
- Todo
- Verify/complete the documentation.
- Template Parameters
-
| T | The type of data to be appended. |
- Parameters
-
| [in] | t | Pointer to the data to be appended. |
| [in] | n | The number of data items to be appended. |
- Returns
- Description needed.
References v.
| std::vector<unsigned char>* madness::archive::VectorOutputArchive::v |
|
mutable |
The documentation for this class was generated from the following file: