|
TrioCFD 1.9.9_beta
TrioCFD documentation
|
La memoire de Trio-U. More...
#include <Memoire.h>
Public Member Functions | |
| int | add (Objet_U *) |
| Adds an Objet_U to the TRUST memory. | |
| int | suppr (int) |
| Removes from memory the Objet_U with index num. The Objet_U itself is not deleted; only its pointer in memory is removed. | |
| Objet_U & | objet_u (int) |
| Returns a reference to the Objet_U at index num in memory. | |
| const Objet_U & | objet_u (int) const |
| Returns a const reference to the Objet_U at index num in memory. | |
| Objet_U * | objet_u_ptr (int) |
| Returns a pointer to the Objet_U at index num in memory. | |
| const Objet_U * | objet_u_ptr (int) const |
| Returns a const pointer to the Objet_U at index num in memory. | |
| int | rang (const Nom &type, const Nom &nom) const |
| Returns the index in memory of the object with the given type and name. | |
| int | rang (const Nom &nom) const |
| Returns the index in memory of the object with the given name. | |
| void | compacte () |
| Compacts memory. This compaction is performed automatically when it becomes necessary. | |
| int | verifie () const |
| Verifies the content of all memory slots. | |
| int | imprime () const |
| Prints a memory state summary to the error output stream. | |
Static Public Member Functions | |
| static Memoire & | Instance () |
| Returns a pointer to the memory instance. Creates a new memory object if no instance has been created yet. | |
Protected Member Functions | |
| Memoire () | |
| Constructor. Initializes a working area for Objet_U, "double", and "int" objects. | |
Friends | |
| Sortie & | operator<< (Sortie &os, const Memoire &mem) |
| Output operator that prints the state of memory mem to output stream os. | |
|
protected |
Constructor. Initializes a working area for Objet_U, "double", and "int" objects.
Definition at line 42 of file Memoire.cpp.
| int Memoire::add | ( | Objet_U * | obj | ) |
Adds an Objet_U to the TRUST memory.
| (Objet_U* | obj) pointer to the Objet_U to add |
Definition at line 54 of file Memoire.cpp.
| void Memoire::compacte | ( | ) |
Compacts memory. This compaction is performed automatically when it becomes necessary.
Definition at line 306 of file Memoire.cpp.
| int Memoire::imprime | ( | ) | const |
Prints a memory state summary to the error output stream.
Definition at line 347 of file Memoire.cpp.
|
static |
Returns a pointer to the memory instance. Creates a new memory object if no instance has been created yet.
Definition at line 32 of file Memoire.cpp.
| Objet_U & Memoire::objet_u | ( | int | num | ) |
Returns a reference to the Objet_U at index num in memory.
| (int | num) the index of the object in memory |
| Exits | with an error if the memory has an error at index num |
Definition at line 206 of file Memoire.cpp.
| const Objet_U & Memoire::objet_u | ( | int | num | ) | const |
Returns a const reference to the Objet_U at index num in memory.
| (int | num) the index of the object in memory |
| Exits | with an error if the memory has an error at index num |
Definition at line 232 of file Memoire.cpp.
| Objet_U * Memoire::objet_u_ptr | ( | int | num | ) |
Returns a pointer to the Objet_U at index num in memory.
| (int | num) the index of the object in memory |
| Exits | with an error if the memory has an error at index num |
Definition at line 258 of file Memoire.cpp.
| const Objet_U * Memoire::objet_u_ptr | ( | int | num | ) | const |
Returns a const pointer to the Objet_U at index num in memory.
| (int | num) the index of the object in memory |
| Exits | with an error if the memory has an error at index num |
Definition at line 284 of file Memoire.cpp.
| int Memoire::rang | ( | const Nom & | nom | ) | const |
Returns the index in memory of the object with the given name.
| (const | Nom& nom) the name of the object |
Definition at line 186 of file Memoire.cpp.
Returns the index in memory of the object with the given type and name.
Definition at line 166 of file Memoire.cpp.
| int Memoire::suppr | ( | int | num | ) |
Removes from memory the Objet_U with index num. The Objet_U itself is not deleted; only its pointer in memory is removed.
| (int | num) the index of the Objet_U to remove |
Definition at line 105 of file Memoire.cpp.
| int Memoire::verifie | ( | ) | const |
Verifies the content of all memory slots.
Definition at line 388 of file Memoire.cpp.
Output operator that prints the state of memory mem to output stream os.
| (Sortie& | os) the output stream to use |
| (const | Memoire& mem) the memory to examine |
Definition at line 412 of file Memoire.cpp.