Ignore:
Timestamp:
07/09/12 11:33:05 (12 years ago)
Author:
ymipsl
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/array.hpp

    r335 r352  
    1616{ 
    1717   template<size_t numDims> 
    18    detail::multi_array::extent_gen<numDims> getExtentNull(void) { return getExtentNull<numDims-1>()[0];} 
     18   inline detail::multi_array::extent_gen<numDims> getExtentNull(void) { return getExtentNull<numDims-1>()[0];} 
    1919    
    2020   template<> 
    21    detail::multi_array::extent_gen<1> getExtentNull<1>(void) { return extents[0]; } 
     21   inline detail::multi_array::extent_gen<1> getExtentNull<1>(void) { return extents[0]; } 
    2222 
    2323   /// ////////////////////// Déclarations ////////////////////// /// 
    24    template <typename ValueType, StdSize  NumDims, 
    25              typename Allocator = std::allocator<ValueType> > 
    26       class CArray 
    27          : public boost::multi_array<ValueType, NumDims, Allocator> 
     24    
     25   template <typename ValueType, StdSize  NumDims, typename Allocator = std::allocator<ValueType> > 
     26   class CArray : public boost::multi_array<ValueType, NumDims, Allocator> 
    2827   { 
    2928         /// Définition de type /// 
     
    3534 
    3635         /// Constructeurs /// 
    37          template <typename ExtentList> 
    38             explicit CArray(const ExtentList & sizes); 
     36//         template <typename ExtentList> 
     37//            explicit CArray(const ExtentList & sizes); 
     38      template <typename ExtentList> CArray(const ExtentList & sizes) 
     39            : boost::multi_array<ValueType, NumDims, Allocator> 
     40                  (sizes, boost::fortran_storage_order()) 
     41   { /* Ne rien faire de plus */ } 
     42 
    3943 
    4044         explicit CArray(); 
    4145 
    42          template <typename ExtentList> 
    43             CArray(const ExtentList & sizes, const boost::general_storage_order<NumDims> & store); 
     46//         template <typename ExtentList> 
     47//            CArray(const ExtentList & sizes, const boost::general_storage_order<NumDims> & store); 
     48      template <typename ExtentList>  CArray(const ExtentList & sizes, const boost::general_storage_order<NumDims> & store) 
     49               : boost::multi_array<ValueType, NumDims, Allocator> (sizes, store) 
     50   { /* Ne rien faire de plus */ } 
    4451 
    4552         CArray(const CArray & array);       // NEVER IMPLEMENTED. 
     
    7178 
    7279   }; // class CArray 
    73     
    7480 
    7581   ///--------------------------------------------------------------- 
     
    7783} // namespace xios 
    7884 
    79 #include "array_impl.hpp" 
     85//#include "array_impl.hpp" 
    8086#include "array_mac.hpp" 
    81  
     87namespace xios 
     88{ 
     89   template <typename ValueType> void FromBinary(StdIStream & is, ARRAY(ValueType, 1) & array) ; 
     90   template <typename ValueType> void FromBinary(StdIStream & is, ARRAY(ValueType, 2) & array) ; 
     91   template <typename ValueType> void FromBinary(StdIStream & is, ARRAY(ValueType, 3) & array) ; 
     92} 
    8293#endif // __XMLIO_CArray__ 
Note: See TracChangeset for help on using the changeset viewer.