Changeset 1081 in Sophya for trunk/SophyaLib/TArray/tarray.h


Ignore:
Timestamp:
Jul 24, 2000, 2:51:27 PM (25 years ago)
Author:
ansari
Message:

Adaptation modifs MuTyV et services de copie entre tableaux de type different - Reza 24/7/2000

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/TArray/tarray.h

    r1072 r1081  
    3535  TArray(const TArray<T>& a);
    3636  TArray(const TArray<T>& a, bool share);
     37  TArray(const BaseArray& a);
    3738
    3839  virtual ~TArray();
     
    4445  inline  TArray<T>& operator = (const TArray<T>& a) { return Set(a); }
    4546  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);
    4651
    4752  // Gestion taille/Remplissage
     
    8388  // ---- Access to data
    8489  // Definition of virtual element acces method inherited from BaseArray class
    85   virtual double ValueAtPosition(uint_8 ip) const;
     90  virtual MuTyV & ValueAtPosition(uint_8 ip) const;
    8691
    8792  // Data Access: operator overloaded inline acces methods
     
    150155// Recopie des valeurs, element par element
    151156  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);
    152159
    153160// Somme et produit des elements
     
    165172
    166173  NDataBlock<T> mNDBlock; //!< Block for datas
     174  mutable MuTyV my_mtv;   //!< for use by ValueAtPosition()
    167175};
    168176
Note: See TracChangeset for help on using the changeset viewer.