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

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

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

revision 757 by woo409, Mon Jun 26 13:12:56 2006 UTC revision 964 by gross, Tue Feb 13 05:10:26 2007 UTC
# Line 18  Line 18 
18  #include "system_dep.h"  #include "system_dep.h"
19    
20  #include <string>  #include <string>
21    #include <map>
22  #include <boost/python/dict.hpp>  #include <boost/python/dict.hpp>
23    
24  namespace escript {  namespace escript {
25    // class forward declarations
 //  
 // forward declarations  
26  class Data;  class Data;
 //class AbstractSystemMatrix;  
 //class FunctionSpace;  
   
27  /**  /**
28     \brief     \brief
29     Base class for all escript domains.     Base class for all escript domains.
# Line 40  class AbstractDomain { Line 36  class AbstractDomain {
36    
37   public:   public:
38    
39    
40       // structure holding values for X, size and normal
41       typedef int StatusType;
42       struct ValueBuffer
43       {
44           StatusType m_status;
45           boost::shared_ptr<Data> m_data;
46       };
47       typedef struct ValueBuffer ValueBuffer;
48    
49       //
50       // map from function space type code to value buffer
51       typedef std::map<int, ValueBuffer> BufferMapType;
52    
53    
54    /**    /**
55       \brief       \brief
56       Default constructor for AbstractDomain.       Default constructor for AbstractDomain.
# Line 145  class AbstractDomain { Line 156  class AbstractDomain {
156    
157    /**    /**
158       \brief       \brief
159       Return the reference number of the given sample number.       Return a borrowed pointer to the sample reference number id list
160       \param functionSpaceType Input - The function space type.       \param functionSpaceType Input - The function space type.
      \param sampleNo Input - The sample number.  
161    */    */
162    ESCRIPT_DLL_API    ESCRIPT_DLL_API
163    virtual int getReferenceNoFromSampleNo(int functionSpaceType, int sampleNo) const;    virtual int* borrowSampleReferenceIDs(int functionSpaceType) const;
164    
165    /**    /**
166       \brief       \brief
# Line 274  class AbstractDomain { Line 284  class AbstractDomain {
284    //virtual vtkObject createVtkObject(int functionSpaceCode) const;    //virtual vtkObject createVtkObject(int functionSpaceCode) const;
285    
286    /**    /**
287         \brief assigns new tag newTag to all samples of functionspace with a positive
288         value of mask for any its sample point.
289    
290      */
291      ESCRIPT_DLL_API
292      virtual void setTags(const int functionSpaceType, const int newTag, const escript::Data& mask) const;
293    
294      /**
295       \brief       \brief
296       returns true if data on this domain and a function space of type functionSpaceCode has to       returns true if data on this domain and a function space of type functionSpaceCode has to
297       considered as cell centered data.       considered as cell centered data.
# Line 285  class AbstractDomain { Line 303  class AbstractDomain {
303    
304    /**    /**
305       \brief       \brief
306         returns status of the domain.
307    
308         This has to be implemented by the actual Domain adapter.
309      */
310      ESCRIPT_DLL_API
311      virtual StatusType getStatus() const;
312    
313      /**
314         \brief
315       Throw a standard exception. This function is called if any attempt       Throw a standard exception. This function is called if any attempt
316       is made to use a base class function.       is made to use a base class function.
317    */    */
# Line 295  class AbstractDomain { Line 322  class AbstractDomain {
322    
323   private:   private:
324    
325       // buffer for coordinates used by function spaces
326       BufferMapType m_x_buffer;
327    
328       // buffer for normal vectors used by function spaces
329       BufferMapType m_normal_buffer;
330    
331       // buffer for normal element size used by function spaces
332       BufferMapType m_size_buffer;
333    
334  };  };
335    
336  } // end of namespace  } // end of namespace

Legend:
Removed from v.757  
changed lines
  Added in v.964

  ViewVC Help
Powered by ViewVC 1.1.26