40 #ifndef SCI_project_PersistentSTL_h
41 #define SCI_project_PersistentSTL_h 1
55 template <
class Key,
class Data>
57 Pio(Piostream& stream, std::map<Key, Data>&
data );
62 void Pio(Piostream& stream, std::vector<T>&
data);
64 template<
class T,
class S>
66 Pio( Piostream &stream, std::pair<T,S>& pair);
74 template <
class Key,
class Data>
88 for (
int i = 0; i <
n; i++) {
101 for (
auto iter = data.begin(); iter != data.end(); iter++) {
106 Key ik = (*iter).first;
107 Data dk = (*iter).second;
120 #define STLVECTOR_VERSION 2
130 SCISHARE void Pio(Piostream& stream, std::vector<unsigned char>&
data);
134 SCISHARE void Pio(Piostream& stream, std::vector<unsigned short>&
data);
142 SCISHARE void Pio(Piostream& stream, std::vector<unsigned long long>&
data);
160 int size=
static_cast<int>(data.size());
167 for (
int i = 0; i <
size; i++)
169 Pio(stream, data[i]);
187 int size=
static_cast<int>(data.size());
194 for (
int i = 0; i <
size; i++)
196 Pio(stream, *data[i]);
206 #define STLLIST_VERSION 1
213 int size=data.size();
220 for (
typename std::list<T>::iterator ii=data.begin(); ii!=data.end(); ii++)
229 #define STLPAIR_VERSION 1
231 template <
class T,
class S>
236 Pio(stream, data.first);
237 Pio(stream, data.second);
244 #endif // SCI_project_PersistentSTL_h
bool reading() const
Definition: Persistent.h:164
virtual std::string peek_class()
Definition: Persistent.cc:131
virtual void io(bool &)
Definition: Persistent.cc:193
Definition: Persistent.h:89
#define SCISHARE
Definition: share.h:39
virtual void begin_cheap_delim()
Definition: Persistent.cc:183
virtual int begin_class(const std::string &name, int current_version)
Definition: Persistent.cc:143
#define STLVECTOR_VERSION
Definition: PersistentSTL.h:120
Base class for persistent objects...
#define MAP_VERSION
Definition: PersistentSTL.h:52
void Pio_index(Piostream &stream, index_type *data, size_type size)
Definition: Persistent.cc:606
dictionary data
Definition: eabLatVolData.py:11
virtual void end_cheap_delim()
Definition: Persistent.cc:188
void Pio(Piostream &stream, Array1< T > &array)
Definition: Array1.h:65
virtual void end_class()
Definition: Persistent.cc:178
#define STLPAIR_VERSION
Definition: PersistentSTL.h:229
int n
Definition: eab.py:9
int size
Definition: eabLatVolData.py:2