Structural Bioinformatics Library
Template C++ / Python API for developping structural bioinformatics applications.
T_Multiple_archives_serialization_xml_iarchive< DataType, InputArchive > Class Template Reference

XML input archive coupling the data from a secondary archive to the main xml archive. More...

#include <Multiple_archives_serialization_xml_iarchive.hpp>

Constructors / Destructors

 T_Multiple_archives_serialization_xml_iarchive (std::istream &in, std::istream &sec_in, const unsigned BOOST_PFTO int flags=0)
 Initializes with a file for the xml archive, and a file for the secondary archive. More...
 
 T_Multiple_archives_serialization_xml_iarchive (std::istream &in, Self &other, const unsigned BOOST_PFTO int flags=0)
 Initializes with a file for the xml archive, and fill the data map with an existing one. More...
 
template<class InputIterator >
 T_Multiple_archives_serialization_xml_iarchive (std::istream &in, InputIterator begin, InputIterator end, const unsigned BOOST_PFTO int flags=0)
 Initializes with a file for the xml archive, and fill the data map with an existing one. More...
 

Access Data

template<class OutputIterator >
OutputIterator get_data (OutputIterator out)
 Gets all the data read from the secondary archive. More...
 
template<class OutputIterator >
static OutputIterator get_data (std::istream &in, OutputIterator out)
 Gets all the data read from the secondary archive without instantiation of any xml archive. More...
 

Overrloaded Methods

template<class T >
void load_override (T &t, const unsigned BOOST_PFTO int flags)
 Loads any kind of data from the xml archive. More...
 
template<class T >
void load_override (T &t)
 Loads any kind of data from the xml archive. More...
 
void load_override (boost::serialization::nvp< DataType > t, const unsigned BOOST_PFTO int flags)
 Loads into the input data from the archive by loading its index and searching in the loaded data. More...
 
void load_override (boost::serialization::nvp< DataType > t)
 Loads into the input data from the archive by loading its index and searching in the loaded data. More...
 
void load_override (boost::serialization::nvp< DataType * > t, const unsigned BOOST_PFTO int flags)
 Loads into the input data from the archive by loading its index and searching in the loaded data, avoiding pointer tricks. More...
 
void load_override (boost::serialization::nvp< DataType * > t)
 Loads into the input data from the archive by loading its index and searching in the loaded data, avoiding pointer tricks. More...
 
template<class T , class Allocator >
void load_override (boost::serialization::nvp< std::list< T, Allocator > > t, const unsigned BOOST_PFTO int flags)
 Override list serialization. More...
 
template<class T , class Allocator >
void load_override (boost::serialization::nvp< std::list< T, Allocator > > t)
 Override list serialization. More...
 
template<class T , class Allocator >
void load_override (boost::serialization::nvp< std::vector< T, Allocator > > t, const unsigned BOOST_PFTO int flags)
 Override vector serialization. More...
 
template<class T , class Allocator >
void load_override (boost::serialization::nvp< std::vector< T, Allocator > > t)
 Override vector serialization. More...
 
template<class T , class Compare , class Allocator >
void load_override (boost::serialization::nvp< std::set< T, Compare, Allocator > > t, const unsigned BOOST_PFTO int flags)
 Override set serialization. More...
 
template<class T , class Compare , class Allocator >
void load_override (boost::serialization::nvp< std::set< T, Compare, Allocator > > t)
 Override set serialization. More...
 
template<class T , class Compare , class Allocator >
void load_override (boost::serialization::nvp< std::multiset< T, Compare, Allocator > > t, const unsigned BOOST_PFTO int flags)
 Override multiset serialization. More...
 
template<class T , class Compare , class Allocator >
void load_override (boost::serialization::nvp< std::multiset< T, Compare, Allocator > > t)
 Override multiset serialization. More...
 
template<class Key , class T , class Compare , class Allocator >
void load_override (boost::serialization::nvp< std::map< Key, T, Compare, Allocator > > t, const unsigned BOOST_PFTO int flags)
 Override map serialization. More...
 
template<class Key , class T , class Compare , class Allocator >
void load_override (boost::serialization::nvp< std::map< Key, T, Compare, Allocator > > t)
 Override map serialization. More...
 
template<class Key , class T , class Compare , class Allocator >
void load_override (boost::serialization::nvp< std::multimap< Key, T, Compare, Allocator > > t, const unsigned BOOST_PFTO int flags)
 Override multimap serialization. More...
 
template<class Key , class T , class Compare , class Allocator >
void load_override (boost::serialization::nvp< std::multimap< Key, T, Compare, Allocator > > t)
 Override multimap serialization. More...
 

Detailed Description

template<class DataType, class InputArchive = boost::archive::text_iarchive>
class SBL::IO::T_Multiple_archives_serialization_xml_iarchive< DataType, InputArchive >

XML input archive coupling the data from a secondary archive to the main xml archive.

It reads from an archive all the data of type DataType and store them in a vector, their position corresopnding to their index. Then, when deserializing the main xml input archive, each time that the data is encountered and represetned by its index, it is taken from the data stored in the vector, avoiding duplication.

Template Parameters
DataTypeData to partially serialize.
InputArchiveSecondary archive type (default is text).

Constructor & Destructor Documentation

◆ T_Multiple_archives_serialization_xml_iarchive() [1/3]

T_Multiple_archives_serialization_xml_iarchive ( std::istream &  in,
std::istream &  sec_in,
const unsigned BOOST_PFTO int  flags = 0 
)
inline

Initializes with a file for the xml archive, and a file for the secondary archive.

◆ T_Multiple_archives_serialization_xml_iarchive() [2/3]

T_Multiple_archives_serialization_xml_iarchive ( std::istream &  in,
Self other,
const unsigned BOOST_PFTO int  flags = 0 
)
inline

Initializes with a file for the xml archive, and fill the data map with an existing one.

◆ T_Multiple_archives_serialization_xml_iarchive() [3/3]

T_Multiple_archives_serialization_xml_iarchive ( std::istream &  in,
InputIterator  begin,
InputIterator  end,
const unsigned BOOST_PFTO int  flags = 0 
)
inline

Initializes with a file for the xml archive, and fill the data map with an existing one.

Member Function Documentation

◆ get_data() [1/2]

OutputIterator get_data ( OutputIterator  out)
inline

Gets all the data read from the secondary archive.

◆ get_data() [2/2]

OutputIterator get_data ( std::istream &  in,
OutputIterator  out 
)
inlinestatic

Gets all the data read from the secondary archive without instantiation of any xml archive.

◆ load_override() [1/18]

void load_override ( boost::serialization::nvp< DataType * >  t)
inline

Loads into the input data from the archive by loading its index and searching in the loaded data, avoiding pointer tricks.

◆ load_override() [2/18]

void load_override ( boost::serialization::nvp< DataType * >  t,
const unsigned BOOST_PFTO int  flags 
)
inline

Loads into the input data from the archive by loading its index and searching in the loaded data, avoiding pointer tricks.

◆ load_override() [3/18]

void load_override ( boost::serialization::nvp< DataType >  t)
inline

Loads into the input data from the archive by loading its index and searching in the loaded data.

◆ load_override() [4/18]

void load_override ( boost::serialization::nvp< DataType >  t,
const unsigned BOOST_PFTO int  flags 
)
inline

Loads into the input data from the archive by loading its index and searching in the loaded data.

◆ load_override() [5/18]

void load_override ( boost::serialization::nvp< std::list< T, Allocator > >  t)
inline

Override list serialization.

◆ load_override() [6/18]

void load_override ( boost::serialization::nvp< std::list< T, Allocator > >  t,
const unsigned BOOST_PFTO int  flags 
)
inline

Override list serialization.

◆ load_override() [7/18]

void load_override ( boost::serialization::nvp< std::map< Key, T, Compare, Allocator > >  t)
inline

Override map serialization.

◆ load_override() [8/18]

void load_override ( boost::serialization::nvp< std::map< Key, T, Compare, Allocator > >  t,
const unsigned BOOST_PFTO int  flags 
)
inline

Override map serialization.

◆ load_override() [9/18]

void load_override ( boost::serialization::nvp< std::multimap< Key, T, Compare, Allocator > >  t)
inline

Override multimap serialization.

◆ load_override() [10/18]

void load_override ( boost::serialization::nvp< std::multimap< Key, T, Compare, Allocator > >  t,
const unsigned BOOST_PFTO int  flags 
)
inline

Override multimap serialization.

◆ load_override() [11/18]

void load_override ( boost::serialization::nvp< std::multiset< T, Compare, Allocator > >  t)
inline

Override multiset serialization.

◆ load_override() [12/18]

void load_override ( boost::serialization::nvp< std::multiset< T, Compare, Allocator > >  t,
const unsigned BOOST_PFTO int  flags 
)
inline

Override multiset serialization.

◆ load_override() [13/18]

void load_override ( boost::serialization::nvp< std::set< T, Compare, Allocator > >  t)
inline

Override set serialization.

◆ load_override() [14/18]

void load_override ( boost::serialization::nvp< std::set< T, Compare, Allocator > >  t,
const unsigned BOOST_PFTO int  flags 
)
inline

Override set serialization.

◆ load_override() [15/18]

void load_override ( boost::serialization::nvp< std::vector< T, Allocator > >  t)
inline

Override vector serialization.

◆ load_override() [16/18]

void load_override ( boost::serialization::nvp< std::vector< T, Allocator > >  t,
const unsigned BOOST_PFTO int  flags 
)
inline

Override vector serialization.

◆ load_override() [17/18]

void load_override ( T &  t)
inline

Loads any kind of data from the xml archive.

◆ load_override() [18/18]

void load_override ( T &  t,
const unsigned BOOST_PFTO int  flags 
)
inline

Loads any kind of data from the xml archive.