SheafSystem  0.0.0.0
constant_point.h
1 
2 //
3 // Copyright (c) 2014 Limit Point Systems, Inc.
4 //
5 // Licensed under the Apache License, Version 2.0 (the "License");
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 // http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17 
18 // Interface for class constant_point
19 
20 #ifndef CONSTANT_POINT_H
21 #define CONSTANT_POINT_H
22 
23 #ifndef SHEAF_DLL_SPEC_H
24 #include "SheafSystem/sheaf_dll_spec.h"
25 #endif
26 
27 #ifndef CONSTANT_FCN_SPACE_H
28 #include "SheafSystem/constant_fcn_space.h"
29 #endif
30 
31 namespace fiber_bundle
32 {
33 
37 class SHEAF_DLL_SPEC constant_point : public constant_fcn_space
38 {
39 
40  // ===========================================================
42  // ===========================================================
44 
45 public:
46 
51 
55  constant_point(const constant_point& xother);
56 
57 protected:
58 
59 private:
60 
62 
63  // ===========================================================
65  // ===========================================================
67 
68 public:
69 
70 protected:
71 
72 private:
73 
75 
76  // ===========================================================
78  // ===========================================================
80 
81 public:
82 
83 protected:
84 
91  enum domain_constants {DB=0};
92 
96 
100  value_type _basis_deriv_value_buffer[DL];
101 
102 private:
103 
105 
106  // ===========================================================
108  // ===========================================================
110 
111 public:
112 
117  virtual value_type volume(const dof_type xcoord_dofs[],
118  size_type xcoord_dofs_ub,
119  size_type xdf);
120 
121 protected:
122 
123 private:
124 
126 
127  // ===========================================================
129  // ===========================================================
131 
132 public:
133 
134 protected:
135 
136 private:
137 
139 
140  // ===========================================================
142  // ===========================================================
144 
145 public:
146 
151  virtual int db() const;
152 
156  virtual void local_coordinates(pod_index_type xindex,
157  coord_type xresult[],
158  size_type xresult_ub) const;
159 
164  virtual bool in_standard_domain(const dof_type xlocal_coords[],
165  size_type xlocal_coords_ub) const;
166 
167 protected:
168 
169 private:
170 
172 
173  // ===========================================================
175  // ===========================================================
177 
178 public:
179 
180 protected:
181 
182 private:
183 
185 
186  // ===========================================================
188  // ===========================================================
190 
191 public:
192 
196  virtual constant_point* clone() const;
197 
201  virtual constant_point& operator=(const section_evaluator& xother);
202 
206  constant_point& operator=(const constant_point& xother);
207 
211  virtual ~constant_point();
212 
216  virtual bool invariant() const;
217 
221  virtual bool is_ancestor_of(const any* xother) const;
222 
223 protected:
224 
225 private:
226 
228 
229 };
230 
231 } // namespace fiber_bundle
232 
233 #endif // ifndef CONSTANT_POINT_H
A section evaluator with a constant value over a 1D domain.
sec_vd_dof_type dof_type
The type of degree of freedom.
domain_constants
The base dimension; the dimension of the local coordinates (static const version).
Abstract base class with useful features for all objects.
Definition: any.h:39
unsigned long size_type
An unsigned integral type used to represent sizes and capacities.
Definition: sheaf.h:52
chart_point_coord_type coord_type
The type of local coordinate; the scalar type for the local coordinate vector space.
An abstract local section evaluator; a map from {local coordinates x dofs} to section value...
int_type pod_index_type
The plain old data index type.
Definition: pod_types.h:49
An section evaluator with a constant value over an abstract domain.
Namespace for the fiber_bundles component of the sheaf system.