MADNESS  version 0.9
Public Member Functions | List of all members
madness::archive::BufferOutputArchive Class Reference

Wraps an archive around a memory buffer for output. More...

#include <bufar.h>

Inheritance diagram for madness::archive::BufferOutputArchive:
Inheritance graph
[legend]
Collaboration diagram for madness::archive::BufferOutputArchive:
Collaboration graph
[legend]

Public Member Functions

 BufferOutputArchive ()
 
 BufferOutputArchive (void *ptr, std::size_t nbyte)
 
template<class T >
madness::enable_if
< madness::is_serializable< T >
, void >::type 
store (const T *t, long n) const
 
void open (std::size_t)
 
void close ()
 
void flush ()
 
bool count_only () const
 
std::size_t size () const
 
- Public Member Functions inherited from madness::archive::BaseArchive
 BaseArchive ()
 

Additional Inherited Members

- Static Public Attributes inherited from madness::archive::BaseOutputArchive
static const bool is_output_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
 

Detailed Description

Wraps an archive around a memory buffer for output.

Type checking is disabled for efficiency.

Throws MadnessException in case of buffer overflow

Default constructor can be used to count stuff.

Constructor & Destructor Documentation

madness::archive::BufferOutputArchive::BufferOutputArchive ( )
inline
madness::archive::BufferOutputArchive::BufferOutputArchive ( void *  ptr,
std::size_t  nbyte 
)
inline

Member Function Documentation

void madness::archive::BufferOutputArchive::close ( )
inline
bool madness::archive::BufferOutputArchive::count_only ( ) const
inline
void madness::archive::BufferOutputArchive::flush ( )
inline
void madness::archive::BufferOutputArchive::open ( std::size_t  )
inline
std::size_t madness::archive::BufferOutputArchive::size ( ) const
inline
template<class T >
madness::enable_if< madness::is_serializable<T>, void >::type madness::archive::BufferOutputArchive::store ( const T *  t,
long  n 
) const
inline

References m, madness::print(), and std::tr1::T().


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