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

Diff of /trunk/escript/src/NullDomain.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 1802 by jfenwick, Tue Sep 23 01:03:29 2008 UTC
# Line 32  namespace escript { Line 32  namespace escript {
32     NullDomain provides a null value for domain. Needed for the construction     NullDomain provides a null value for domain. Needed for the construction
33     of a default FunctionSpace. Inherits from AbstractDomain and overrides its     of a default FunctionSpace. Inherits from AbstractDomain and overrides its
34     methods.     methods.
35       This domain supports a single type of FunctionSpace for which canTag is true.
36       This compromise is needed to allow the default contructor of DataTagged to
37       have a FunctionSpace which supports tagging.
38       See notes on the borrowListOfTagsInUse() method.
39  */  */
40    
41  class NullDomain : public AbstractDomain {  class NullDomain : public AbstractDomain {
# Line 161  class NullDomain : public AbstractDomain Line 165  class NullDomain : public AbstractDomain
165    ESCRIPT_DLL_API    ESCRIPT_DLL_API
166    virtual bool operator!=(const AbstractDomain& other) const;    virtual bool operator!=(const AbstractDomain& other) const;
167    
168      /**
169         \brief Checks if this domain allows tags for the specified functionSpaceCode.
170      */
171      ESCRIPT_DLL_API
172      virtual
173      bool canTag(int functionSpaceCode) const;
174    
175      /**
176          \brief
177              return the number of tags in use.
178          For this class the answer is always 1(the default tag).
179      */
180      ESCRIPT_DLL_API
181      virtual int getNumberOfTagsInUse(int functionSpaceCode) const;
182    
183      /**
184         \brief  returns a pointer to an array with the tags used.
185         For this class the answer will always be {0}
186      */
187      ESCRIPT_DLL_API
188      virtual int* borrowListOfTagsInUse(int functionSpaceCode) const;
189    
190   protected:   protected:
191    
192   private:   private:
193    
194  };  };
195    
196  } // end of namespace  } // end of namespace

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

  ViewVC Help
Powered by ViewVC 1.1.26