Changeset 1156 in Sophya for trunk/SophyaLib/TArray/tvector.h


Ignore:
Timestamp:
Aug 29, 2000, 6:10:32 PM (25 years ago)
Author:
ansari
Message:

Introduction du type sa_size_t (taille des tableaux), operateur - (TArray::operator - et NegateElt()) - Reza 29/8/2000

File:
1 edited

Legend:

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

    r1103 r1156  
    1414  // Creation / destruction
    1515  TVector();
    16   TVector(uint_4 n, short lcv=AutoVectorType, short mm=AutoMemoryMapping);
     16  TVector(sa_size_t n, short lcv=AutoVectorType, short mm=AutoMemoryMapping);
    1717  TVector(const TVector<T>& v);
    1818  TVector(const TVector<T>& v, bool share);
     
    3939   
    4040  // Gestion taille/Remplissage
    41   void ReSize(uint_4 n, short lcv=SameVectorType );
    42   void Realloc(uint_4 n, short lcv=SameVectorType, bool force=false);
     41  void ReSize(sa_size_t n, short lcv=SameVectorType );
     42  void Realloc(sa_size_t n, short lcv=SameVectorType, bool force=false);
    4343
    4444  // Sub-Vector extraction $CHECK$ Reza 03/2000  Doit-on declarer cette methode const ?
     
    5050  // Informations pointeur/data
    5151  //! return the number of elements
    52   inline uint_4 NElts() const {return Size(); }
     52  inline sa_size_t NElts() const {return Size(); }
    5353 
    5454  // Inline element acces methods
    55   inline T const& operator()(uint_4 n) const;
    56   inline T&       operator()(uint_4 n);
     55  inline T const& operator()(sa_size_t n) const;
     56  inline T&       operator()(sa_size_t n);
    5757
    5858  // Operateur d'affectation
     
    8989//! Return the value of element \b n
    9090template <class T>
    91 inline T const& TVector<T>::operator()(uint_4 n) const
     91inline T const& TVector<T>::operator()(sa_size_t n) const
    9292{
    9393#ifdef SO_BOUNDCHECKING
     
    100100//! Return the value of element \b n
    101101template <class T>
    102 inline T & TVector<T>::operator()(uint_4 n)
     102inline T & TVector<T>::operator()(sa_size_t n)
    103103{
    104104#ifdef SO_BOUNDCHECKING
Note: See TracChangeset for help on using the changeset viewer.