00001 00005 class ArrayGenSimple(Type) : public virtual VecSimple(Type), 00006 public ArrayGenSimplest(Type) 00007 00008 { 00009 00010 00011 public: 00012 00013 00014 00015 ArrayGenSimple(Type) (); 00016 ArrayGenSimple(Type) (int n1); 00017 ArrayGenSimple(Type) (int n1, int n2); 00018 ArrayGenSimple(Type) (int n1, int n2, int n3); 00019 ArrayGenSimple(Type) (const Ptv(int)& n); 00020 ArrayGenSimple(Type) (const ArrayGenSimple(Type)& X); 00021 ~ArrayGenSimple(Type) () {} 00022 00023 00024 00025 bool redim (int n1) 00026 { return ArrayGenSimplest(Type) ::redim(n1); } 00027 00028 bool redim (int n1, int n2) 00029 { return ArrayGenSimplest(Type) ::redim(n1,n2); } 00030 00031 bool redim (int n1, int n2, int n3) 00032 { return ArrayGenSimplest(Type) ::redim(n1,n2,n3); } 00033 00034 bool redim (const Ptv(int)& n) 00035 { return ArrayGenSimplest(Type) ::redim(n); } 00036 00037 bool redim (Type* a, int n, int base = 0) 00038 { return ArrayGenSimplest(Type) ::redim(a,n,base); } 00039 00040 00041 00042 Type& operator () (int i) 00043 { return ArrayGenSimplest(Type) ::operator( (i);) } 00044 00045 Type& operator () (int i, int j) 00046 { return ArrayGenSimplest(Type) ::operator( (i,j);) } 00047 00048 Type& operator () (int i, int j, int k) 00049 { return ArrayGenSimplest(Type) ::operator( (i,j,k);) } 00050 00051 Type& operator () (const Ptv(int)& index) 00052 { return ArrayGenSimplest(Type) ::operator( (index);) } 00053 00054 const Type& operator () (int i) const 00055 { return ArrayGenSimplest(Type) ::operator( (i);) } 00056 00057 const Type& operator () (int i, int j) const 00058 { return ArrayGenSimplest(Type) ::operator( (i,j);) } 00059 00060 const Type& operator () (int i, int j, int k) const 00061 { return ArrayGenSimplest(Type) ::operator( (i,j,k);) } 00062 00063 const Type& operator () (const Ptv(int)& index) const 00064 { return ArrayGenSimplest(Type) ::operator( (index);) } 00065 00066 00067 00068 00069 ArrayGenSimple(Type)& operator = (Type a) { fill(a); return *this; } 00070 ArrayGenSimple(Type)& operator = (const ArrayGenSimple(Type)& a); 00071 void fill (const Type& a) { VecSimple(Type) ::fill(a); } 00072 00073 void print (Os os, const char* header = NULL, 00074 int nentries_per_line = 3) const; 00075 void printAscii (Os os, const char* header = NULL, 00076 int nentries_per_line = 3) const; 00077 void scan (Is is); 00078 00079 }; 00080 00081