Changeset 1081 in Sophya for trunk/SophyaLib/TArray/tarray.h
- Timestamp:
- Jul 24, 2000, 2:51:27 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/TArray/tarray.h
r1072 r1081 35 35 TArray(const TArray<T>& a); 36 36 TArray(const TArray<T>& a, bool share); 37 TArray(const BaseArray& a); 37 38 38 39 virtual ~TArray(); … … 44 45 inline TArray<T>& operator = (const TArray<T>& a) { return Set(a); } 45 46 virtual TArray<T>& Set(const TArray<T>& a); 47 48 //! = operator between TArray 's with different types - Elements are converted. 49 inline TArray<T>& operator = (const BaseArray& a) { return SetBA(a); } 50 virtual TArray<T>& SetBA(const BaseArray& a); 46 51 47 52 // Gestion taille/Remplissage … … 83 88 // ---- Access to data 84 89 // Definition of virtual element acces method inherited from BaseArray class 85 virtual doubleValueAtPosition(uint_8 ip) const;90 virtual MuTyV & ValueAtPosition(uint_8 ip) const; 86 91 87 92 // Data Access: operator overloaded inline acces methods … … 150 155 // Recopie des valeurs, element par element 151 156 virtual TArray<T>& CopyElt(const TArray<T>& a); 157 // Recopie des valeurs avec conversion prealable, element par element 158 virtual TArray<T>& ConvertAndCopyElt(const BaseArray& a); 152 159 153 160 // Somme et produit des elements … … 165 172 166 173 NDataBlock<T> mNDBlock; //!< Block for datas 174 mutable MuTyV my_mtv; //!< for use by ValueAtPosition() 167 175 }; 168 176
Note:
See TracChangeset
for help on using the changeset viewer.