16#ifndef Memoire_included
17#define Memoire_included
20#include <Memoire_ptr.h>
39 int rang(
const Nom& type,
const Nom& nom)
const;
Pointer within the TRUST memory for an Objet_U.
int rang(const Nom &type, const Nom &nom) const
Returns the index in memory of the object with the given type and name.
Objet_U & objet_u(int)
Returns a reference to the Objet_U at index num in memory.
int verifie() const
Verifies the content of all memory slots.
Objet_U * objet_u_ptr(int)
Returns a pointer to the Objet_U at index num in memory.
void compacte()
Compacts memory. This compaction is performed automatically when it becomes necessary.
static Memoire & Instance()
Returns a pointer to the memory instance. Creates a new memory object if no instance has been created...
int suppr(int)
Removes from memory the Objet_U with index num. The Objet_U itself is not deleted; only its pointer i...
Memoire()
Constructor. Initializes a working area for Objet_U, "double", and "int" objects.
friend Sortie & operator<<(Sortie &, const Memoire &)
Output operator that prints the state of memory mem to output stream os.
int imprime() const
Prints a memory state summary to the error output stream.
int add(Objet_U *)
Adds an Objet_U to the TRUST memory.
class Nom: a character string for naming TRUST objects.
Base class for TRUST objects (Objet_U).
Base class for output streams.