MADNESS 0.10.1
test_ar.cc File Reference
Include dependency graph for test_ar.cc:

Classes

class  A
struct  madness::archive::ArchiveLoadImpl< Archive, C >
struct  madness::archive::ArchiveLoadImpl< Archive, linked_list >
struct  madness::archive::ArchiveSerializeImpl< Archive, B >
struct  madness::archive::ArchiveStoreImpl< Archive, C >
struct  madness::archive::ArchiveStoreImpl< Archive, linked_list >
class  B
class  BinaryFstreamInputArchive
 Wraps an archive around a binary filestream for input. More...
class  BinaryFstreamOutputArchive
 Wraps an archive around a binary filestream for output. More...
class  BufferInputArchive
 Wraps an archive around a memory buffer for input. More...
class  BufferOutputArchive
 Wraps an archive around a memory buffer for output. More...
class  C
struct  D
struct  F
 simple class for testing the solver More...
struct  G1
class  linked_list
struct  NotStreammable
struct  pod_deserialize_dispatch< false >
struct  pod_deserialize_dispatch< true >
struct  pod_serialize_dispatch< false >
struct  pod_serialize_dispatch< true >
class  VectorInputArchive
 Wraps an archive around an STL vector for input. More...
class  VectorOutputArchive
 Wraps an archive around an STL vector for output. More...

Namespaces

namespace  madness
 Namespace for all elements and tools of MADNESS.
namespace  madness::archive
 Namespace for I/O tools.

Macros

#define TEST(cond)

Typedefs

typedef std::complex< double > double_complex
typedef std::map< short, std::complex< double > > madness::archive::map_short_complex_double
typedef std::pair< int, double > madness::archive::pair_int_double
typedef std::pair< short, std::complex< double > > madness::archive::pair_short_complex_double
typedef std::tuple< int, double, std::complex< float > > tuple_int_double_complexfloat

Functions

 madness::archive::ARCHIVE_REGISTER_TYPE_AND_PTR (A, 128)
 madness::archive::ARCHIVE_REGISTER_TYPE_AND_PTR (B, 129)
 madness::archive::ARCHIVE_REGISTER_TYPE_AND_PTR (C, 130)
 madness::archive::ARCHIVE_REGISTER_TYPE_AND_PTR (linked_list, 131)
 madness::archive::ARCHIVE_REGISTER_TYPE_AND_PTR (map_short_complex_double, 133)
 madness::archive::ARCHIVE_REGISTER_TYPE_AND_PTR (pair_int_double, 132)
 madness::archive::ARCHIVE_REGISTER_TYPE_AND_PTR (pair_short_complex_double, 134)
int main (int argc, char *argv[])
std::ostream & operator<< (std::ostream &os, const F &data)
int operator<< (std::ostream &os, const NotStreammable &data)
std::istream & operator>> (std::istream &os, F &data)
void operator>> (std::istream &os, NotStreammable &data)
void test_array_count_beyond_32_bits ()
template<class InputArchive>
void test_in (const InputArchive &iar)
template<class OutputArchive>
void test_out (const OutputArchive &oar)
template<class T>
archive_array< T > wrap (const T *ptr, std::size_t n)
 Factory function to wrap a dynamically allocated pointer as a typed archive_array.

Macro Definition Documentation

◆ TEST

#define TEST ( cond)
Value:
status &= cond; \
if (!(cond)) std::cout << #cond << " failed" << std::endl
const char * status[2]
Definition testperiodic.cc:43

Referenced by test_in().

Typedef Documentation

◆ double_complex

typedef std::complex<double> double_complex

◆ tuple_int_double_complexfloat

typedef std::tuple<int,double,std::complex<float> > tuple_int_double_complexfloat

Function Documentation

◆ main()

◆ operator<<() [1/2]

std::ostream & operator<< ( std::ostream & os,
const F & data )

◆ operator<<() [2/2]

int operator<< ( std::ostream & os,
const NotStreammable & data )

◆ operator>>() [1/2]

std::istream & operator>> ( std::istream & os,
F & data )

◆ operator>>() [2/2]

void operator>> ( std::istream & os,
NotStreammable & data )

◆ test_array_count_beyond_32_bits()

◆ test_in()

template<class InputArchive>
void test_in ( const InputArchive & iar)

◆ test_out()

template<class OutputArchive>
void test_out ( const OutputArchive & oar)

◆ wrap()

template<class T>
archive_array< T > madness::archive::wrap ( const T * ptr,
std::size_t n )
inline

Factory function to wrap a dynamically allocated pointer as a typed archive_array.

Template Parameters
TThe data type.
Parameters
[in]ptrThe pointer.
[in]nThe number of data elements in the array.
Returns
The wrapped pointer.

Referenced by test_array_count_beyond_32_bits(), test_in(), and test_out().