21 #ifndef SELDON_FILE_VECTOR_VECTORCOLLECTION_HXX
25 #include "../share/Common.hxx"
26 #include "../share/Properties.hxx"
27 #include "../share/Storage.hxx"
28 #include "../share/Errors.hxx"
29 #include "../share/Allocator.hxx"
37 template <
class T,
class Allocator >
42 typedef typename T::value_type value_type;
43 typedef typename T::pointer pointer;
44 typedef typename T::const_pointer const_pointer;
45 typedef typename T::reference reference;
46 typedef typename T::const_reference const_reference;
48 typedef T vector_type;
49 typedef vector_type* vector_pointer;
50 typedef const vector_type* const_vector_pointer;
51 typedef vector_type& vector_reference;
52 typedef const vector_type& const_vector_reference;
88 void Reallocate(
int i);
92 template <
class T0,
class Storage0,
class Allocator0>
94 Storage0, Allocator0>& vector);
95 template <
class T0,
class Storage0,
class Allocator0>
97 Storage0, Allocator0>& vector,
string name);
98 template <
class T0,
class Storage0,
class Allocator0>
99 void SetVector(
int i,
const Vector<T0,
100 Storage0, Allocator0>& vector);
101 template <
class T0,
class Storage0,
class Allocator0>
102 void SetVector(
int i,
const Vector<T0,
103 Storage0, Allocator0>& vector,
string name);
104 template <
class T0,
class Storage0,
class Allocator0>
105 void SetVector(
string name,
const Vector<T0,
106 Storage0, Allocator0>& vector);
107 void SetName(
int i,
string name);
114 int GetLength()
const;
115 int GetNvector()
const;
120 int GetVectorIndex(
string name)
const;
121 int GetIndex(
string name)
const;
124 const_collection_reference GetVector()
const;
125 vector_reference GetVector(
int i);
126 const_vector_reference GetVector(
int i)
const;
127 vector_reference GetVector(
string name);
128 const_vector_reference GetVector(
string name)
const;
131 const_reference operator() (
int i)
const;
132 reference operator() (
int i);
137 template <
class T0,
class Allocator0>
145 void Fill(
const T0& x);
149 void Write(
string FileName,
bool with_size =
true)
const;
150 void Write(ostream& FileStream,
bool with_size =
true)
const;
151 void WriteText(
string FileName)
const;
152 void WriteText(ostream& FileStream)
const;
154 void Read(
string FileName);
162 template <
class T,
class Allocator>
170 #define SELDON_FILE_VECTOR_VECTORCOLLECTION_HXX