- MEDSKYLINEARRAY( const med_int count , const med_int length );
-
- void setMEDSKYLINEARRAY( const med_int count, const med_int length, med_int* index , med_int* value ) ;
-
- inline med_int getNumberOf() const;
- inline med_int getLength() const;
- inline med_int* getIndex() const;
- inline med_int* getValue() const;
- inline med_int getNumberOfI(int i) const throw (MEDEXCEPTION) ;
- inline med_int* getI(int i) const throw (MEDEXCEPTION) ;
- inline med_int getIJ(int i, int j) const throw (MEDEXCEPTION) ;
-
-} ;
+
+ // Avec ce constructeur la mémoire pour le tableau de valeur et le
+ // tableau d'index est réservée. Il suffit d'effectuer les séquences
+ // d'appels suivantes pour initialiser le MEDSKYLINEARRAY
+ // 1) setIndex(index) puis <count> fois setI(i,&listValeurN°I) avec i dans 1..count
+ // rem : listValeurN°I est dupliquée
+ // 2) appeler <length> fois setIJ(i,j,valeur) avec i dans 1..count et avec j dans 1..count
+ MEDSKYLINEARRAY( const int count, const int length );
+
+ // Avec ce constructeur le MEDSKYLINEARRAY est complètement initialisé
+ // Si shallowCopy=false (par défaut) les tableaux d'index et de valeurs
+ // sont dupliqués
+ // Sinon le MEDSKYLINEARRAY prend directement les pointeurs et en devient
+ // propriétaire
+ MEDSKYLINEARRAY( const int count, const int length,
+ const int* index, const int* value, bool shallowCopy=false );
+
+ ~MEDSKYLINEARRAY();
+ //void setMEDSKYLINEARRAY( const int count, const int length, int* index , int* value ) ;
+
+ inline int getNumberOf() const;
+ inline int getLength() const;
+ inline const int* getIndex() const;
+ inline const int* getValue() const;
+ inline int getNumberOfI(int i) const throw (MEDEXCEPTION) ;
+ inline const int* getI(int i) const throw (MEDEXCEPTION) ;
+ inline int getIJ(int i, int j) const throw (MEDEXCEPTION) ;
+ inline int getIndexValue(int i) const throw (MEDEXCEPTION) ;
+
+ inline void setIndex(const int* index) ;
+ inline void setI(const int i, const int* values) throw (MEDEXCEPTION) ;
+ inline void setIJ(int i, int j, int value) throw (MEDEXCEPTION) ;
+ inline void setIndexValue(int i, int value) throw (MEDEXCEPTION) ;
+
+ friend ostream& operator<<(ostream &os, const MEDSKYLINEARRAY &sky);
+ MEDSKYLINEARRAY* makeReverseArray();
+
+};