Ignore:
Timestamp:
Apr 3, 2006, 11:24:35 AM (19 years ago)
Author:
ansari
Message:

Instanciation explicite Adapterde NamedObjMgr et enregsitrement pour la prise en charge des tableaux (TArray/TMatrix/TVector) de type <int_2> <uint_2> <int_8> - Reza 3/4/2006

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/nomtmatvecadapter.cc

    r2689 r2930  
    7272}
    7373
    74 /* --Methode-- */
    75 template <class T>
    76 void NOMAdapter_TMatrix<T>::ReadFits(string const & flnm)
    77 {
    78   FitsInFile fis(flnm);
    79   fis >> (*mMtx);
    80 }
    81 
    82 /* --Methode-- */
    83 template <class T>
    84 void NOMAdapter_TMatrix<T>::SaveFits(string const & flnm)
    85 {
    86   FitsOutFile fos(flnm);
    87   fos << (*mMtx);
    88 }
    89 // ---- Specialisation pour complexes -----
    90 DECL_TEMP_SPEC  /* equivalent a template <> , pour SGI-CC en particulier */
    91 void NOMAdapter_TMatrix< complex<r_4> >::ReadFits(string const & flnm)
    92 {
    93 cout << " NOMAdapter_TMatrix< complex<r_4> >::ReadFits() - Error "
    94      << " Not supported (complex data type)" << endl;
    95 }
    96 DECL_TEMP_SPEC  /* equivalent a template <> , pour SGI-CC en particulier */
    97 void NOMAdapter_TMatrix< complex<r_4> >::SaveFits(string const & flnm)
    98 {
    99 cout << " NOMAdapter_TMatrix< complex<r_4> >::SaveFits() - Error "
    100      << " Not supported (complex data type)" << endl;
    101 }
    102 
    103 DECL_TEMP_SPEC  /* equivalent a template <> , pour SGI-CC en particulier */
    104 void NOMAdapter_TMatrix< complex<r_8> >::ReadFits(string const & flnm)
    105 {
    106 cout << " NOMAdapter_TMatrix< complex<r_8> >::ReadFits() - Error "
    107      << " Not supported (complex data type)" << endl;
    108 }
    109 DECL_TEMP_SPEC  /* equivalent a template <> , pour SGI-CC en particulier */
    110 void NOMAdapter_TMatrix< complex<r_8> >::SaveFits(string const & flnm)
    111 {
    112 cout << " NOMAdapter_TMatrix< complex<r_8> >::SaveFits() - Error "
    113      << " Not supported (complex data type)" << endl;
    114 }
    11574
    11675/* --Methode-- */
     
    390349
    391350#ifdef __CXX_PRAGMA_TEMPLATES__
    392 //#pragma define_template NOMAdapter_TMatrix<uint_2>
    393 //#pragma define_template NOMAdapter_TMatrix<int_2>
     351#pragma define_template NOMAdapter_TMatrix<uint_2>
     352#pragma define_template NOMAdapter_TMatrix<int_2>
    394353#pragma define_template NOMAdapter_TMatrix<int_4>
     354#pragma define_template NOMAdapter_TMatrix<int_8>
    395355#pragma define_template NOMAdapter_TMatrix<r_4>
    396356#pragma define_template NOMAdapter_TMatrix<r_8>
    397357#pragma define_template NOMAdapter_TMatrix< complex<r_4> >
    398358#pragma define_template NOMAdapter_TMatrix< complex<r_8> >
    399 //#pragma define_template NTupInt_TMatrix<uint_2>
    400 //#pragma define_template NTupInt_TMatrix<int_2>
     359#pragma define_template NTupInt_TMatrix<uint_2>
     360#pragma define_template NTupInt_TMatrix<int_2>
    401361#pragma define_template NTupInt_TMatrix<int_4>
     362#pragma define_template NTupInt_TMatrix<int_8>
    402363#pragma define_template NTupInt_TMatrix<r_4>
    403364#pragma define_template NTupInt_TMatrix<r_8>
     
    407368
    408369#if defined(ANSI_TEMPLATES)
    409 //template class NOMAdapter_TMatrix<uint_2>;
    410 //template class NOMAdapter_TMatrix<int_2>;
     370template class NOMAdapter_TMatrix<uint_2>;
     371template class NOMAdapter_TMatrix<int_2>;
    411372template class NOMAdapter_TMatrix<int_4>;
     373template class NOMAdapter_TMatrix<int_8>;
    412374template class NOMAdapter_TMatrix<r_4>;
    413375template class NOMAdapter_TMatrix<r_8>;
    414376template class NOMAdapter_TMatrix< complex<r_4> >;
    415377template class NOMAdapter_TMatrix< complex<r_8> >;
    416 // template class NTupInt_TMatrix<uint_2>;
    417 // template class NTupInt_TMatrix<int_2>;
     378template class NTupInt_TMatrix<uint_2>;
     379template class NTupInt_TMatrix<int_2>;
    418380template class NTupInt_TMatrix<int_4>;
     381template class NTupInt_TMatrix<int_8>;
    419382template class NTupInt_TMatrix<r_4>;
    420383template class NTupInt_TMatrix<r_8>;
Note: See TracChangeset for help on using the changeset viewer.