18Implemente_instanciable_sans_constructeur(
RTabInt,
"RTabInt",
Objet_U);
20int RTabInt::TB_ = 1000;
37 size_r_ = data.size_array();
49 data.resize_array(n+TB_);
54 for(i=n; i<n+TB_; i++)
79 data.resize_array(sz+TB_);
82 for(
int j=size_r_; j< sz+TB_; j++)
103 if (i<min_data || i>max_data)
106 while((cpt<size_r_) && (data[cpt]!=i))
Class defining operators and methods for all reading operation in an input flow (file,...
Base class for TRUST objects (Objet_U).
virtual Entree & readOn(Entree &)
Reads an Objet_U from an input stream. Virtual method to override.
virtual Sortie & printOn(Sortie &) const
Writes the object to an output stream. Virtual method to override.
class RTabInt - Implements a resizable integer vector.
const ArrOfInt & donnees() const
Returns the underlying data array.
RTabInt(int n=0, int x=0)
Constructor: initializes the array with n elements set to x, plus TB_ extra slots.
void add(int)
Appends the value i at the end of the array; grows by TB_ slots if needed.
int search(int)
Searches for an element equal to i in the array. Returns the value if found, -1 otherwise.
Base class for output streams.
_SIZE_ size_array() const