/[escript]/trunk/esys2/escript/inc/esys/SerialAccessor.h
ViewVC logotype

Annotation of /trunk/esys2/escript/inc/esys/SerialAccessor.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 82 - (hide annotations)
Tue Oct 26 06:53:54 2004 UTC (15 years, 11 months ago) by jgs
File MIME type: text/plain
File size: 2126 byte(s)
Initial revision

1 jgs 82 /*=============================================================================
2    
3     ******************************************************************************
4     * *
5     * COPYRIGHT ??????? - All Rights Reserved *
6     * *
7     * This software is the property of ??????????????. No part of this code *
8     * may be copied in any form or by any means without the expressed written *
9     * consent of ???????????. Copying, use or modification of this software *
10     * by any unauthorised person is illegal unless that *
11     * person has a software license agreement with ?????????????. *
12     * *
13     ******************************************************************************
14    
15     *********************************************************************************/
16    
17     #ifndef SERIALACCESSOR_H
18     #define SERIALACCESSOR_H
19    
20     #include "esys/AbstractAccessor.h"
21    
22     #include <string>
23     #include <Python.h>
24     #include <boost/python/object.hpp>
25     #include <boost/python/list.hpp>
26     #include <boost/python/numeric.hpp>
27    
28     /**
29     @memo
30     Data
31    
32     @version 1.0.0
33    
34     @doc
35    
36     Class Description:
37     Base class for classes that provide a consistant interface to
38     an underlying vector of data.
39    
40     Class Limitations:
41     None
42    
43     Class Conditions of Use:
44     None
45    
46     Throws:
47     None
48    
49     */
50     class SerialAccessor:public AbstractAccessor {
51     public:
52     /**
53     @memo
54     Constructor which sets the shape of the point data.
55    
56     */
57     SerialAccessor(const std::vector<int>& pointDataShape, int blockSize, int numBlocks);
58     /**
59     @memo
60     Method to copy from pointData into values
61    
62     */
63     virtual void copy(const boost::python::numeric::array& pointData,ValueContainerType& values) const;
64     /**
65     @memo
66     Method to perform the given operation on each value
67     */
68     virtual void evaluate(ValueContainerType& values, void (*operation)(double)) const;
69     private:
70    
71     };
72    
73     #endif

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26