|
MADNESS 0.10.1
|
Wraps an archive around an STL vector for output.
More...
#include <vector_archive.h>


Public Member Functions | |
| VectorOutputArchive (std::vector< unsigned char > &v, std::size_t hint=262144) | |
Create a buffer to wrap the specified vector. | |
| void | close () |
| Close the archive. | |
| void | flush () |
| Flush the archive. | |
| void | open (std::size_t hint=262144) |
Clear any data in the vector and ensure its capacity is at least hint. | |
| template<class T > | |
| std::enable_if< madness::is_trivially_serializable< T >::value, void >::type | store (const T *t, long n) const |
| Appends data to the end of the vector. | |
Public Member Functions inherited from madness::archive::BaseArchive | |
| BaseArchive () | |
Public Attributes | |
| std::vector< unsigned char > * | v |
| The STL vector being wrapped. | |
Additional Inherited Members | |
Public Types inherited from madness::archive::BaseOutputArchive | |
| using | is_saving = std::true_type |
| Type used by Boost.Serialization to determine if this object is an output archive. | |
Public Types inherited from madness::archive::BaseArchive | |
| 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 Public Attributes inherited from madness::archive::BaseOutputArchive | |
| static constexpr bool | is_output_archive = true |
| Flag to determine if this object is an output archive. | |
Static Public Attributes inherited from madness::archive::BaseArchive | |
| 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.
|
inline |
Create a buffer to wrap the specified vector.
| [in] | v | The vector. |
| [in] | hint | The minimum capacity of the vector. |
References madness::nonlinear_vector_solver(), and open().
|
inline |
Close the archive.
Referenced by main().
|
inline |
Flush the archive.
|
inline |
Clear any data in the vector and ensure its capacity is at least hint.
| [in] | hint | The minimum capacity for the vector. |
References madness::nonlinear_vector_solver(), and v.
Referenced by VectorOutputArchive().
|
inline |
Appends data to the end of the vector.
| T | The type of data to be appended. |
| [in] | t | Pointer to the data to be appended. |
| [in] | n | The number of data items to be appended. |
Referenced by madness::archive::MPIOutputArchive::store(), and madness::archive::ContainerRecordOutputArchive::store().