MADNESS
version 0.9
|
Wraps an archive around a binary file stream for input. More...
#include <binfsar.h>
Public Member Functions | |
BinaryFstreamInputArchive (const char *filename=0, std::ios_base::openmode mode=std::ios_base::binary|std::ios_base::in) | |
template<class T > | |
madness::enable_if < madness::is_serializable< T > , void >::type | load (T *t, long n) const |
void | open (const char *filename, std::ios_base::openmode mode=std::ios_base::binary|std::ios_base::in) |
void | close () |
Public Member Functions inherited from madness::archive::BaseArchive | |
BaseArchive () | |
Additional Inherited Members | |
Static Public Attributes inherited from madness::archive::BaseInputArchive | |
static const bool | is_input_archive = true |
Static Public Attributes inherited from madness::archive::BaseArchive | |
static const bool | is_archive = true |
static const bool | is_input_archive = false |
static const bool | is_output_archive = false |
static const bool | is_parallel_archive = false |
Wraps an archive around a binary file stream for input.
madness::archive::BinaryFstreamInputArchive::BinaryFstreamInputArchive | ( | const char * | filename = 0 , |
std::ios_base::openmode | mode = std::ios_base::binary | std::ios_base::in |
||
) |
References open().
void madness::archive::BinaryFstreamInputArchive::close | ( | ) |
References madness::tr1::shptr::shared_ptr< T >::reset().
|
inline |
References std::tr1::T().
Referenced by open().
void madness::archive::BinaryFstreamInputArchive::open | ( | const char * | filename, |
std::ios_base::openmode | mode = std::ios_base::binary | std::ios_base::in |
||
) |
References ARCHIVE_COOKIE, madness::tr1::shptr::shared_ptr< T >::get(), load(), MADNESS_EXCEPTION, and madness::tr1::shptr::shared_ptr< T >::reset().
Referenced by BinaryFstreamInputArchive().