/[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 767 by gross, Fri Jun 30 07:29:08 2006 UTC revision 797 by gross, Thu Aug 3 02:03:18 2006 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 293  class AbstractDomain { Line 304  class AbstractDomain {
304    
305    /**    /**
306       \brief       \brief
307         returns status of the domain.
308    
309         This has to be implemented by the actual Domain adapter.
310      */
311      ESCRIPT_DLL_API
312      virtual StatusType getStatus() const;
313    
314      /**
315         \brief
316       Throw a standard exception. This function is called if any attempt       Throw a standard exception. This function is called if any attempt
317       is made to use a base class function.       is made to use a base class function.
318    */    */
# Line 303  class AbstractDomain { Line 323  class AbstractDomain {
323    
324   private:   private:
325    
326       // buffer for coordinates used by function spaces
327       BufferMapType m_x_buffer;
328    
329       // buffer for normal vectors used by function spaces
330       BufferMapType m_normal_buffer;
331    
332       // buffer for normal element size used by function spaces
333       BufferMapType m_size_buffer;
334    
335  };  };
336    
337  } // end of namespace  } // end of namespace

Legend:
Removed from v.767  
changed lines
  Added in v.797

  ViewVC Help
Powered by ViewVC 1.1.26