/[escript]/trunk/escript/src/DataVector.h
ViewVC logotype

Diff of /trunk/escript/src/DataVector.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1388 by trankine, Fri Jan 11 07:45:58 2008 UTC revision 1796 by jfenwick, Wed Sep 17 01:45:46 2008 UTC
# Line 22  Line 22 
22  #include <vector>  #include <vector>
23  #include <iostream>  #include <iostream>
24  #include <fstream>  #include <fstream>
25    #include <boost/python/numeric.hpp>
26    
27  namespace escript {  namespace escript {
28    
# Line 122  class ESCRIPT_DLL_API DataVector { Line 123  class ESCRIPT_DLL_API DataVector {
123           const size_type newBlockSize=1);           const size_type newBlockSize=1);
124    
125    /**    /**
126        \brief
127        Populates the vector with the data from value.
128        Note: This function does not attempt to perform shape checking.
129      */
130      void
131      copyFromNumArray(const boost::python::numeric::array& value);
132    
133    
134    
135      /**
136       \brief       \brief
137       Return the number of elements in this DataVector.       Return the number of elements in this DataVector.
138    */    */
# Line 169  class ESCRIPT_DLL_API DataVector { Line 180  class ESCRIPT_DLL_API DataVector {
180    const_reference    const_reference
181    operator[](const size_type i) const;    operator[](const size_type i) const;
182    
   /**  
     \brief  
     Archive the data managed by this DataVector to the file referenced  
     by ofstream. A count of the number of values expected to be written  
     is provided as a cross-check.  
   
           
     The return value indicates success (0) or otherwise (1).  
   */  
   int  
   archiveData(std::ofstream& archiveFile,  
               const size_type noValues) const;  
   
   /**  
     \brief  
     Extract the number of values specified by noValues from the file  
     referenced by ifstream to this DataVector.  
   
     The return value indicates success (0) or otherwise (1).  
   */  
   int  
   extractData(std::ifstream& archiveFile,  
               const size_type noValues);  
183    
184   protected:   protected:
185    

Legend:
Removed from v.1388  
changed lines
  Added in v.1796

  ViewVC Help
Powered by ViewVC 1.1.26