[762] | 1 | // Classe d'initialisation du module TArray (template Arrays)
|
---|
| 2 | #include "machdefs.h"
|
---|
| 3 | #include "tarrinit.h"
|
---|
| 4 |
|
---|
| 5 | #include "tmatrix.h"
|
---|
| 6 | #include "tvector.h"
|
---|
| 7 |
|
---|
| 8 |
|
---|
| 9 | int TArrayInitiator::FgInit = 0;
|
---|
| 10 |
|
---|
| 11 | TArrayInitiator::TArrayInitiator()
|
---|
| 12 | : SophyaInitiator()
|
---|
| 13 | {
|
---|
| 14 | FgInit++;
|
---|
| 15 | if (FgInit > 1) return;
|
---|
| 16 |
|
---|
| 17 | // Enregistrement des classes PPersist du modules TArray
|
---|
| 18 |
|
---|
| 19 |
|
---|
| 20 | PPRegister(FIO_TMatrix<uint_1>);
|
---|
| 21 | PPRegister(FIO_TMatrix<uint_2>);
|
---|
| 22 | PPRegister(FIO_TMatrix<int_2>);
|
---|
| 23 | PPRegister(FIO_TMatrix<int_4>);
|
---|
| 24 | PPRegister(FIO_TMatrix<int_8>);
|
---|
| 25 | PPRegister(FIO_TMatrix<uint_8>);
|
---|
| 26 | PPRegister(FIO_TMatrix<r_4>);
|
---|
| 27 | PPRegister(FIO_TMatrix<r_8>);
|
---|
| 28 | PPRegister(FIO_TMatrix< complex<r_4> >);
|
---|
| 29 | PPRegister(FIO_TMatrix< complex<r_8> >);
|
---|
| 30 |
|
---|
| 31 | PPRegister(FIO_TVector<uint_1>);
|
---|
| 32 | PPRegister(FIO_TVector<uint_2>);
|
---|
| 33 | PPRegister(FIO_TVector<int_2>);
|
---|
| 34 | PPRegister(FIO_TVector<int_4>);
|
---|
| 35 | PPRegister(FIO_TVector<int_8>);
|
---|
| 36 | PPRegister(FIO_TVector<uint_8>);
|
---|
| 37 | PPRegister(FIO_TVector<r_4>);
|
---|
| 38 | PPRegister(FIO_TVector<r_8>);
|
---|
| 39 | PPRegister(FIO_TVector< complex<r_4> >);
|
---|
| 40 | PPRegister(FIO_TVector< complex<r_8> >);
|
---|
| 41 |
|
---|
| 42 |
|
---|
| 43 |
|
---|
| 44 | }
|
---|
| 45 |
|
---|
| 46 | TArrayInitiator::~TArrayInitiator()
|
---|
| 47 | {
|
---|
| 48 | FgInit--;
|
---|
| 49 | }
|
---|
| 50 |
|
---|
| 51 |
|
---|
| 52 | // On met un objet initiator en statique, pour les loaders qui savent
|
---|
| 53 | // appeler le constructeur des objets statiques Reza 08/98
|
---|
| 54 | static TArrayInitiator tarrayinit;
|
---|
| 55 |
|
---|