21 #ifndef SELDON_FILE_VECTOR_VECTOR_3_HXX
24 #ifndef SELDON_VECTOR3_DEFAULT_ALLOCATOR_1
28 #define SELDON_VECTOR3_DEFAULT_ALLOCATOR_1 MallocObject
31 #ifndef SELDON_VECTOR3_DEFAULT_ALLOCATOR_2
32 #define SELDON_VECTOR3_DEFAULT_ALLOCATOR_2 MallocObject
57 template <
class T,
class Allocator0 =
58 typename SeldonDefaultAllocator<VectFull, T>::allocator,
59 class Allocator1 = SELDON_VECTOR3_DEFAULT_ALLOCATOR_1<
60 Vector<T, Vect_Full, Allocator0> >,
62 SELDON_VECTOR3_DEFAULT_ALLOCATOR_2<
63 Vector<Vector<T, Vect_Full, Allocator0>,
64 Vect_Full, Allocator1> > >
70 typedef const T* const_pointer;
72 typedef const T& const_reference;
76 Vect_Full, Allocator2> data_;
85 template <
class Allocator>
96 int GetSize(
int i,
int j)
const;
100 int GetNelement(
int beg0,
int end0,
int beg1,
int end1)
const;
107 template <
class Td,
class Allocatord>
109 template <
class Td,
class Allocatord>
112 template <
class Td,
class Allocatord>
113 void Flatten(
int beg0,
int end0,
int beg1,
int end1,
116 void PushBack(
int i,
int j,
const T& x);
119 Vect_Full, Allocator1>& X);
121 Vect_Full, Allocator1>, Vect_Full, Allocator2>& X);
127 void Clear(
int i,
int j);
129 void Fill(
const T& x);
132 Vect_Full, Allocator2>&
135 Vect_Full, Allocator1>, Vect_Full, Allocator2>&
157 const_reference
operator() (
int i,
int j,
int k)
const;
166 void Write(
string file_name,
bool with_size =
true)
const;
167 void Write(ostream& file_stream,
bool with_size =
true)
const;
168 void Read(
string file_name,
bool with_size =
true);
169 void Read(istream& file_stream,
bool with_size =
true);
175 #define SELDON_FILE_VECTOR_VECTOR_3_HXX