[2687] | 1 | // This may look like C code, but it is really -*- C++ -*-
|
---|
| 2 | // Classe pour faciliter entree-sortie PPF pour des pointeurs
|
---|
| 3 | // Implementation specifique pour certains type de pointeurs
|
---|
| 4 | // R. Ansari - Mars 2005
|
---|
| 5 |
|
---|
| 6 | #include "machdefs.h"
|
---|
| 7 | #include "sopnamsp.h"
|
---|
| 8 | #include "ppftpointerio.h"
|
---|
| 9 |
|
---|
| 10 | //----------------------------------------------------------------------
|
---|
| 11 | namespace SOPHYA {
|
---|
| 12 |
|
---|
| 13 | // Specific implementation using table I/O in PPFBinaryIOStreams
|
---|
| 14 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
| 15 | void PPF_TPointer_IO<char>::Write(POutPersist & os, char const * arr, size_t n)
|
---|
| 16 | { os.PutBytes(arr,n); }
|
---|
| 17 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
| 18 | void PPF_TPointer_IO<char>::Read(PInPersist & is, char * arr, size_t n)
|
---|
| 19 | { is.GetBytes(arr,n); }
|
---|
| 20 |
|
---|
| 21 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
| 22 | void PPF_TPointer_IO< int_1 >::Write(POutPersist & os, int_1 const * arr, size_t n)
|
---|
| 23 | { os.Put(arr,n); }
|
---|
| 24 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
| 25 | void PPF_TPointer_IO< int_1 >::Read(PInPersist & is, int_1 * arr, size_t n)
|
---|
| 26 | { is.Get(arr,n); }
|
---|
| 27 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
| 28 | void PPF_TPointer_IO< uint_1 >::Write(POutPersist & os, uint_1 const * arr, size_t n)
|
---|
| 29 | { os.Put(arr,n); }
|
---|
| 30 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
| 31 | void PPF_TPointer_IO< uint_1 >::Read(PInPersist & is, uint_1 * arr, size_t n)
|
---|
| 32 | { is.Get(arr,n); }
|
---|
| 33 |
|
---|
| 34 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
| 35 | void PPF_TPointer_IO< int_2 >::Write(POutPersist & os, int_2 const * arr, size_t n)
|
---|
| 36 | { os.Put(arr,n); }
|
---|
| 37 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
| 38 | void PPF_TPointer_IO< int_2 >::Read(PInPersist & is, int_2 * arr, size_t n)
|
---|
| 39 | { is.Get(arr,n); }
|
---|
| 40 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
| 41 | void PPF_TPointer_IO< uint_2 >::Write(POutPersist & os, uint_2 const * arr, size_t n)
|
---|
| 42 | { os.Put(arr,n); }
|
---|
| 43 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
| 44 | void PPF_TPointer_IO< uint_2 >::Read(PInPersist & is, uint_2 * arr, size_t n)
|
---|
| 45 | { is.Get(arr,n); }
|
---|
| 46 |
|
---|
| 47 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
| 48 | void PPF_TPointer_IO< int_4 >::Write(POutPersist & os, int_4 const * arr, size_t n)
|
---|
| 49 | { os.Put(arr,n); }
|
---|
| 50 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
| 51 | void PPF_TPointer_IO< int_4 >::Read(PInPersist & is, int_4 * arr, size_t n)
|
---|
| 52 | { is.Get(arr,n); }
|
---|
| 53 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
| 54 | void PPF_TPointer_IO< uint_4 >::Write(POutPersist & os, uint_4 const * arr, size_t n)
|
---|
| 55 | { os.Put(arr,n); }
|
---|
| 56 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
| 57 | void PPF_TPointer_IO< uint_4 >::Read(PInPersist & is, uint_4 * arr, size_t n)
|
---|
| 58 | { is.Get(arr,n); }
|
---|
| 59 |
|
---|
| 60 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
| 61 | void PPF_TPointer_IO< int_8 >::Write(POutPersist & os, int_8 const * arr, size_t n)
|
---|
| 62 | { os.Put(arr,n); }
|
---|
| 63 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
| 64 | void PPF_TPointer_IO< int_8 >::Read(PInPersist & is, int_8 * arr, size_t n)
|
---|
| 65 | { is.Get(arr,n); }
|
---|
| 66 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
| 67 | void PPF_TPointer_IO< uint_8 >::Write(POutPersist & os, uint_8 const * arr, size_t n)
|
---|
| 68 | { os.Put(arr,n); }
|
---|
| 69 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
| 70 | void PPF_TPointer_IO< uint_8 >::Read(PInPersist & is, uint_8 * arr, size_t n)
|
---|
| 71 | { is.Get(arr,n); }
|
---|
| 72 |
|
---|
| 73 |
|
---|
| 74 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
| 75 | void PPF_TPointer_IO< r_4 >::Write(POutPersist & os, r_4 const * arr, size_t n)
|
---|
| 76 | { os.Put(arr,n); }
|
---|
| 77 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
| 78 | void PPF_TPointer_IO< r_4 >::Read(PInPersist & is, r_4 * arr, size_t n)
|
---|
| 79 | { is.Get(arr,n); }
|
---|
| 80 |
|
---|
| 81 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
| 82 | void PPF_TPointer_IO< r_8 >::Write(POutPersist & os, r_8 const * arr, size_t n)
|
---|
| 83 | { os.Put(arr,n); }
|
---|
| 84 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
| 85 | void PPF_TPointer_IO< r_8 >::Read(PInPersist & is, r_8 * arr, size_t n)
|
---|
| 86 | { is.Get(arr,n); }
|
---|
| 87 |
|
---|
| 88 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
| 89 | void PPF_TPointer_IO< complex<r_4> >::Write(POutPersist & os, complex<r_4> const * arr, size_t n)
|
---|
| 90 | { os.Put(arr,n); }
|
---|
| 91 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
| 92 | void PPF_TPointer_IO< complex<r_4> >::Read(PInPersist & is, complex<r_4> * arr, size_t n)
|
---|
| 93 | { is.Get(arr,n); }
|
---|
| 94 |
|
---|
| 95 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
| 96 | void PPF_TPointer_IO< complex<r_8> >::Write(POutPersist & os, complex<r_8> const * arr, size_t n)
|
---|
| 97 | { os.Put(arr,n); }
|
---|
| 98 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
| 99 | void PPF_TPointer_IO< complex<r_8> >::Read(PInPersist & is, complex<r_8> * arr, size_t n)
|
---|
| 100 | { is.Get(arr,n); }
|
---|
| 101 |
|
---|
| 102 |
|
---|
| 103 | } // namespace SOPHYA
|
---|
[2695] | 104 | /*
|
---|
[2687] | 105 | #ifdef __CXX_PRAGMA_TEMPLATES__
|
---|
| 106 | #pragma define_template PPF_TPointer_IO< char >
|
---|
| 107 | #pragma define_template PPF_TPointer_IO< int_1 >
|
---|
| 108 | #pragma define_template PPF_TPointer_IO< uint_1 >
|
---|
| 109 | #pragma define_template PPF_TPointer_IO< int_2 >
|
---|
| 110 | #pragma define_template PPF_TPointer_IO< uint_2 >
|
---|
| 111 | #pragma define_template PPF_TPointer_IO< int_4 >
|
---|
| 112 | #pragma define_template PPF_TPointer_IO< uint_4 >
|
---|
| 113 | #pragma define_template PPF_TPointer_IO< int_8 >
|
---|
| 114 | #pragma define_template PPF_TPointer_IO< uint_8 >
|
---|
| 115 | #pragma define_template PPF_TPointer_IO< r_4 >
|
---|
| 116 | #pragma define_template PPF_TPointer_IO< r_8 >
|
---|
| 117 | #pragma define_template PPF_TPointer_IO< complex<r_4> >
|
---|
| 118 | #pragma define_template PPF_TPointer_IO< complex<r_8> >
|
---|
| 119 | #endif
|
---|
| 120 |
|
---|
| 121 | #if defined(ANSI_TEMPLATES) || defined(GNU_TEMPLATES)
|
---|
| 122 | template class PPF_TPointer_IO< char >;
|
---|
| 123 | template class PPF_TPointer_IO< int_1 >;
|
---|
| 124 | template class PPF_TPointer_IO< uint_1 >;
|
---|
| 125 | template class PPF_TPointer_IO< int_2 >;
|
---|
| 126 | template class PPF_TPointer_IO< uint_2 >;
|
---|
| 127 | template class PPF_TPointer_IO< int_4 >;
|
---|
| 128 | template class PPF_TPointer_IO< uint_4 >;
|
---|
| 129 | template class PPF_TPointer_IO< int_8 >;
|
---|
| 130 | template class PPF_TPointer_IO< uint_8 >;
|
---|
| 131 | template class PPF_TPointer_IO< r_4 >;
|
---|
| 132 | template class PPF_TPointer_IO< r_8 >;
|
---|
| 133 | template class PPF_TPointer_IO< complex<r_4> >;
|
---|
| 134 | template class PPF_TPointer_IO< complex<r_8> >;
|
---|
| 135 | #endif
|
---|
[2695] | 136 | */
|
---|