Changeset 300 for XMLIO_V2/dev/common/src/array.hpp
- Timestamp:
- 02/13/12 19:35:25 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_V2/dev/common/src/array.hpp
r219 r300 9 9 /// xmlioserver headers /// 10 10 #include "xmlioserver_spl.hpp" 11 #include "buffer_in.hpp" 12 #include "buffer_out.hpp" 13 11 14 12 15 namespace xmlioserver 13 16 { 17 template<size_t numDims> 18 detail::multi_array::extent_gen<numDims> getExtentNull(void) { return getExtentNull<numDims-1>()[0];} 19 20 template<> 21 detail::multi_array::extent_gen<1> getExtentNull<1>(void) { return extents[0]; } 22 14 23 /// ////////////////////// Déclarations ////////////////////// /// 15 24 template <typename ValueType, StdSize NumDims, … … 29 38 explicit CArray(const ExtentList & sizes); 30 39 40 explicit CArray(); 41 31 42 template <typename ExtentList> 32 43 CArray(const ExtentList & sizes, const boost::general_storage_order<NumDims> & store); … … 36 47 37 48 public: 38 49 39 50 /// Flux /// 40 51 template <typename U, StdSize V, typename W> … … 51 62 void fromBinary(StdIStream & is); 52 63 64 size_t getSize(void) const ; 65 bool toBuffer (CBufferOut& buffer) const; 66 bool fromBuffer(CBufferIn& buffer); 67 68 53 69 /// Destructeur /// 54 70 virtual ~CArray(void); 55 71 56 72 }; // class CArray 73 57 74 58 75 ///---------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.