/[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

temp/escript/src/NullDomain.h revision 1387 by trankine, Fri Jan 11 07:45:26 2008 UTC trunk/escript/src/NullDomain.h revision 1811 by ksteube, Thu Sep 25 23:11:13 2008 UTC
# Line 1  Line 1 
1    
 /* $Id$ */  
   
2  /*******************************************************  /*******************************************************
3   *  *
4   *           Copyright 2003-2007 by ACceSS MNRF  * Copyright (c) 2003-2008 by University of Queensland
5   *       Copyright 2007 by University of Queensland  * Earth Systems Science Computational Center (ESSCC)
6   *  * http://www.uq.edu.au/esscc
7   *                http://esscc.uq.edu.au  *
8   *        Primary Business: Queensland, Australia  * Primary Business: Queensland, Australia
9   *  Licensed under the Open Software License version 3.0  * Licensed under the Open Software License version 3.0
10   *     http://www.opensource.org/licenses/osl-3.0.php  * http://www.opensource.org/licenses/osl-3.0.php
11   *  *
12   *******************************************************/  *******************************************************/
13    
14    
15  #if !defined escript_NullDomain_20040604_H  #if !defined escript_NullDomain_20040604_H
16  #define escript_NullDomain_20040604_H  #define escript_NullDomain_20040604_H
# Line 32  namespace escript { Line 31  namespace escript {
31     NullDomain provides a null value for domain. Needed for the construction     NullDomain provides a null value for domain. Needed for the construction
32     of a default FunctionSpace. Inherits from AbstractDomain and overrides its     of a default FunctionSpace. Inherits from AbstractDomain and overrides its
33     methods.     methods.
34       This domain supports a single type of FunctionSpace for which canTag is true.
35       This compromise is needed to allow the default contructor of DataTagged to
36       have a FunctionSpace which supports tagging.
37       See notes on the borrowListOfTagsInUse() method.
38  */  */
39    
40  class NullDomain : public AbstractDomain {  class NullDomain : public AbstractDomain {
# Line 161  class NullDomain : public AbstractDomain Line 164  class NullDomain : public AbstractDomain
164    ESCRIPT_DLL_API    ESCRIPT_DLL_API
165    virtual bool operator!=(const AbstractDomain& other) const;    virtual bool operator!=(const AbstractDomain& other) const;
166    
167      /**
168         \brief Checks if this domain allows tags for the specified functionSpaceCode.
169      */
170      ESCRIPT_DLL_API
171      virtual
172      bool canTag(int functionSpaceCode) const;
173    
174      /**
175          \brief
176              return the number of tags in use.
177          For this class the answer is always 1(the default tag).
178      */
179      ESCRIPT_DLL_API
180      virtual int getNumberOfTagsInUse(int functionSpaceCode) const;
181    
182      /**
183         \brief  returns a pointer to an array with the tags used.
184         For this class the answer will always be {0}
185      */
186      ESCRIPT_DLL_API
187      virtual int* borrowListOfTagsInUse(int functionSpaceCode) const;
188    
189   protected:   protected:
190    
191   private:   private:
192    
193  };  };
194    
195  } // end of namespace  } // end of namespace

Legend:
Removed from v.1387  
changed lines
  Added in v.1811

  ViewVC Help
Powered by ViewVC 1.1.26