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

trunk/esys2/escript/src/Data/NullDomain.h revision 115 by jgs, Fri Mar 4 07:12:47 2005 UTC trunk/escript/src/NullDomain.h revision 964 by gross, Tue Feb 13 05:10:26 2007 UTC
# Line 1  Line 1 
1  /*  /*
2   ******************************************************************************   ************************************************************
3   *                                                                            *   *          Copyright 2006 by ACcESS MNRF                   *
4   *       COPYRIGHT  ACcESS 2004 -  All Rights Reserved                        *   *                                                          *
5   *                                                                            *   *              http://www.access.edu.au                    *
6   * This software is the property of ACcESS. No part of this code              *   *       Primary Business: Queensland, Australia            *
7   * may be copied in any form or by any means without the expressed written    *   *  Licensed under the Open Software License version 3.0    *
8   * consent of ACcESS.  Copying, use or modification of this software          *   *     http://www.opensource.org/licenses/osl-3.0.php       *
9   * by any unauthorised person is illegal unless that person has a software    *   *                                                          *
10   * license agreement with ACcESS.                                             *   ************************************************************
  *                                                                            *  
  ******************************************************************************  
11  */  */
12    
13  #if !defined escript_NullDomain_20040604_H  #if !defined escript_NullDomain_20040604_H
14  #define escript_NullDomain_20040604_H  #define escript_NullDomain_20040604_H
15    #include "system_dep.h"
16    
17  #include "escript/Data/AbstractDomain.h"  #include "AbstractDomain.h"
18    
19  #include <string>  #include <string>
20    
# Line 38  class NullDomain : public AbstractDomain Line 37  class NullDomain : public AbstractDomain
37    
38    /**    /**
39       \brief       \brief
40       Default constructor for NullDomain       Default constructor for NullDomain.
41    
42       Description:       Description:
43       Default constructor for NullDomain       Default constructor for NullDomain.
44    
45    */    */
46      ESCRIPT_DLL_API
47    NullDomain();    NullDomain();
48    
49    /**    /**
# Line 51  class NullDomain : public AbstractDomain Line 51  class NullDomain : public AbstractDomain
51       Returns true if the given integer is a valid function space type       Returns true if the given integer is a valid function space type
52       for this domain.       for this domain.
53    */    */
54      ESCRIPT_DLL_API
55    virtual bool isValidFunctionSpaceType(int functionSpaceType) const;    virtual bool isValidFunctionSpaceType(int functionSpaceType) const;
56    
57    /**    /**
58       \brief       \brief
59       Return a description for this domain       Return a description for this domain.
60    */    */
61      ESCRIPT_DLL_API
62    virtual std::string getDescription() const;    virtual std::string getDescription() const;
63    
64    /**    /**
65       \brief       \brief
66       Return a continuous FunctionSpace       Return a continuous FunctionSpace.
67    */    */
68      ESCRIPT_DLL_API
69    virtual int getContinuousFunctionCode() const;    virtual int getContinuousFunctionCode() const;
70    
71    /**    /**
72       \brief       \brief
73       Return a functon FunctionSpace       Return a function FunctionSpace.
74    */    */
75      ESCRIPT_DLL_API
76    virtual int getFunctionCode() const;    virtual int getFunctionCode() const;
77    
78    /**    /**
79       \brief       \brief
80       Return a function on boundary FunctionSpace       Return a function on boundary FunctionSpace.
81    */    */
82      ESCRIPT_DLL_API
83    virtual int getFunctionOnBoundaryCode() const;    virtual int getFunctionOnBoundaryCode() const;
84    
85    /**    /**
86       \brief       \brief
87       Return a FunctionSpace       Return a FunctionSpace.
88    */    */
89      ESCRIPT_DLL_API
90    virtual int getFunctionOnContactZeroCode() const;    virtual int getFunctionOnContactZeroCode() const;
91    
92    /**    /**
93       \brief       \brief
94       Return a FunctionSpace       Return a FunctionSpace.
95    */    */
96      ESCRIPT_DLL_API
97    virtual int getFunctionOnContactOneCode() const;    virtual int getFunctionOnContactOneCode() const;
98    
99    /**    /**
100       \brief       \brief
101       Return a FunctionSpace       Return a FunctionSpace.
102    */    */
103      ESCRIPT_DLL_API
104    virtual int getSolutionCode() const;    virtual int getSolutionCode() const;
105    
106    /**    /**
107       \brief       \brief
108       Return a FunctionSpace       Return a FunctionSpace.
109    */    */
110      ESCRIPT_DLL_API
111    virtual int getReducedSolutionCode() const;    virtual int getReducedSolutionCode() const;
112    
113    /**    /**
114       \brief       \brief
115       Return a FunctionSpace       Return a FunctionSpace.
116    */    */
117      ESCRIPT_DLL_API
118    virtual int getDiracDeltaFunctionCode() const;    virtual int getDiracDeltaFunctionCode() const;
119    
120    /**    /**
# Line 113  class NullDomain : public AbstractDomain Line 123  class NullDomain : public AbstractDomain
123       \param functionSpaceCode Input - Code for the function space type.       \param functionSpaceCode Input - Code for the function space type.
124       \return pair, first - number of data points per sample, second - number of samples       \return pair, first - number of data points per sample, second - number of samples
125    */    */
126      ESCRIPT_DLL_API
127    virtual std::pair<int,int> getDataShape(int functionSpaceCode) const;    virtual std::pair<int,int> getDataShape(int functionSpaceCode) const;
128    
129    /**    /**
# Line 121  class NullDomain : public AbstractDomain Line 132  class NullDomain : public AbstractDomain
132       \param functionSpaceType Input - The function space type.       \param functionSpaceType Input - The function space type.
133       \param sampleNo Input - The sample number.       \param sampleNo Input - The sample number.
134    */    */
135      ESCRIPT_DLL_API
136    virtual int getTagFromSampleNo(int functionSpaceType, int sampleNo) const;    virtual int getTagFromSampleNo(int functionSpaceType, int sampleNo) const;
137    
138    /**    /**
139       \brief       \brief
140       Return the reference number of  the given sample number.       Return a borrowed pointer to the sample reference number id list
141       \param functionSpaceType Input - The function space type.       \param functionSpaceType Input - The function space type.
      \param sampleNo Input - The sample number.  
142    */    */
143    virtual int getReferenceNoFromSampleNo(int functionSpaceType, int sampleNo) const;    ESCRIPT_DLL_API
144      virtual int* borrowSampleReferenceIDs(int functionSpaceType) const;
145    
146    /**    /**
147       \brief       \brief
148    */    */
149      ESCRIPT_DLL_API
150    virtual int getDim() const;    virtual int getDim() const;
151    
152      /**
153         \brief
154         Return true if given domains are equal.
155      */
156      ESCRIPT_DLL_API
157      virtual bool operator==(const AbstractDomain& other) const;
158      ESCRIPT_DLL_API
159      virtual bool operator!=(const AbstractDomain& other) const;
160    
161   protected:   protected:
162    
163   private:   private:
# Line 143  class NullDomain : public AbstractDomain Line 165  class NullDomain : public AbstractDomain
165  };  };
166    
167  } // end of namespace  } // end of namespace
168    
169  #endif  #endif

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

  ViewVC Help
Powered by ViewVC 1.1.26