Changeset 1156 in Sophya for trunk/SophyaLib/TArray/tvector.h
- Timestamp:
- Aug 29, 2000, 6:10:32 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/TArray/tvector.h
r1103 r1156 14 14 // Creation / destruction 15 15 TVector(); 16 TVector( uint_4n, short lcv=AutoVectorType, short mm=AutoMemoryMapping);16 TVector(sa_size_t n, short lcv=AutoVectorType, short mm=AutoMemoryMapping); 17 17 TVector(const TVector<T>& v); 18 18 TVector(const TVector<T>& v, bool share); … … 39 39 40 40 // Gestion taille/Remplissage 41 void ReSize( uint_4n, short lcv=SameVectorType );42 void Realloc( uint_4n, 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); 43 43 44 44 // Sub-Vector extraction $CHECK$ Reza 03/2000 Doit-on declarer cette methode const ? … … 50 50 // Informations pointeur/data 51 51 //! return the number of elements 52 inline uint_4NElts() const {return Size(); }52 inline sa_size_t NElts() const {return Size(); } 53 53 54 54 // Inline element acces methods 55 inline T const& operator()( uint_4n) const;56 inline T& operator()( uint_4n);55 inline T const& operator()(sa_size_t n) const; 56 inline T& operator()(sa_size_t n); 57 57 58 58 // Operateur d'affectation … … 89 89 //! Return the value of element \b n 90 90 template <class T> 91 inline T const& TVector<T>::operator()( uint_4n) const91 inline T const& TVector<T>::operator()(sa_size_t n) const 92 92 { 93 93 #ifdef SO_BOUNDCHECKING … … 100 100 //! Return the value of element \b n 101 101 template <class T> 102 inline T & TVector<T>::operator()( uint_4n)102 inline T & TVector<T>::operator()(sa_size_t n) 103 103 { 104 104 #ifdef SO_BOUNDCHECKING
Note:
See TracChangeset
for help on using the changeset viewer.