SheafSystem  0.0.0.0
sec_met_e3.h
Go to the documentation of this file.
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 
20 
21 #ifndef SEC_MET_E3_H
22 #define SEC_MET_E3_H
23 
24 #ifndef SHEAF_DLL_SPEC_H
25 #include "SheafSystem/sheaf_dll_spec.h"
26 #endif
27 
28 #ifndef SEC_MET_ED_H
29 #include "SheafSystem/sec_met_ed.h"
30 #endif
31 
32 #ifndef MET_E3_H
33 #include "SheafSystem/met_e3.h"
34 #endif
35 
36 namespace fiber_bundle
37 {
38 
39 class sec_e3;
40 
41 //==============================================================================
42 // CLASS SEC_MET_E3
43 //==============================================================================
44 
48 class SHEAF_DLL_SPEC sec_met_e3 : public sec_met_ed
49 {
50 
51  // ===========================================================
53  // ===========================================================
55 
56 public:
57 
58  // Typedefs:
59 
63  typedef met_e3 fiber_type;
64 
69 
75  static host_type& new_host(namespace_type& xns,
76  const poset_path& xhost_path,
77  const poset_path& xschema_path,
78  const poset_path& xvector_space_path,
79  bool xauto_access);
80 
87  static host_type& standard_host(namespace_type& xns,
88  const poset_path& xbase_path,
89  const poset_path& xrep_path,
90  const std::string& xsection_suffix,
91  const std::string& xfiber_suffix,
92  bool xauto_access);
93 
94 protected:
95 
96 private:
97 
99 
100 
101  //============================================================================
103  //============================================================================
105 
106 public:
107 
111  sec_met_e3();
112 
117  sec_met_e3(const sec_rep_space* xhost, pod_index_type xhub_id);
118 
123  sec_met_e3(const sec_rep_space* xhost, const scoped_index& xid);
124 
129  sec_met_e3(const sec_rep_space* xhost, const std::string& xname);
130 
135  sec_met_e3(const namespace_poset* xnamespace,
136  const poset_path& xpath,
137  bool xauto_access = true);
141  explicit sec_met_e3(const sec_rep_space_member* xother);
142 
146  sec_met_e3(sec_rep_space* xhost,
147  section_dof_map* xdof_map = 0,
148  bool xauto_access = true);
149 
153  virtual sec_met_e3& operator=(const abstract_poset_member& xother);
154 
158  sec_met_e3& operator=(const sec_met_e3& xother);
159 
163  sec_met_e3& operator=(const met_e3& xfiber);
164 
168  sec_met_e3& operator=(const met_e3_lite& xfiber);
169 
173  ~sec_met_e3();
174 
178  virtual const fiber_type& fiber_prototype() const;
179 
180 protected:
181 
182 private:
183 
185 
186 
187  //============================================================================
189  //============================================================================
191 
192 public:
193 
194 protected:
195 
196 private:
197 
199 
200 
201  //============================================================================
203  //============================================================================
205 
206 public:
207 
208 protected:
209 
210 private:
211 
213 
214 
215  //============================================================================
217  //============================================================================
219 
220 public:
221 
222 protected:
223 
224 private:
225 
227 
228 
229  //============================================================================
231  //============================================================================
233 
234 public:
235 
236 protected:
237 
238 private:
239 
241 
242 
243  //============================================================================
245  //============================================================================
247 
248 public:
249 
250 protected:
251 
252 private:
253 
255 
256 
257  //============================================================================
259  //============================================================================
261 
262 public:
263 
264 protected:
265 
266 private:
267 
269 
270 
271  //============================================================================
273  //============================================================================
275 
276 public:
277 
278 protected:
279 
280 private:
281 
283 
284 
285  //============================================================================
287  //============================================================================
289 
290 public:
291 
295  virtual const std::string& class_name() const;
296 
300  static const std::string& static_class_name();
301 
305  virtual sec_met_e3* clone() const;
306 
312  inline sec_met_e3* clone(bool xnew_state, bool xauto_access = true) const
313  {
314  return static_cast<sec_met_e3*>(sec_met_ed::clone(xnew_state, xauto_access));
315  }
316 
317 protected:
318 
319 private:
320 
322 
323 
324  //============================================================================
326  //============================================================================
328 
329 public:
330 
334  bool fiber_is_ancestor_of(const any* xother) const;
335 
339  bool is_ancestor_of(const any* xother) const;
340 
344  bool invariant() const;
345 
346 protected:
347 
348 private:
349 
351 
352 };
353 
354 //==============================================================================
355 // NON-MEMBER FUNCTIONS
356 //==============================================================================
357 
358 namespace sec_met_algebra
359 {
360 
364 SHEAF_DLL_SPEC void lower(const sec_met_e3& xmetric, const sec_e3& xvector, sec_e3& xresult,
365  bool xauto_access);
366 
370 SHEAF_DLL_SPEC void raise(const sec_met_e3& xmetric, const sec_e3& xvector, sec_e3& xresult,
371  bool xauto_access);
372 
373 } // namespace sec_met_algebra
374 
375 } // namespace fiber_bundle
376 
377 #endif // ifndef SEC_MET_E3_H
378 
379 
SHEAF_DLL_SPEC tensor_variance lower(const tensor_variance &x0, int xi)
The variance of the lower of a tensor with variance x0 on index xi.
An abstract symmetric tensor section space of degree p.
Definition: sec_stp_space.h:47
The abstract map from section dof ids to section dof values of heterogeneous type.
A metric tensor over a 1 dimensional Euclidean vector space (volatile version).
Definition: met_e3.h:145
The default name space; a poset which contains other posets as members.
The standard fiber bundles name space; extends the standard sheaves namespace by defining base space...
sec_met_e3 * clone(bool xnew_state, bool xauto_access=true) const
Make a new handle instance of current. Attach the new instance to a new state if xnew_state is true...
Definition: sec_met_e3.h:312
A path defined by a poset name and a member name separated by a forward slash (&#39;/&#39;). For example: "cell_definitions/triangle".
Definition: poset_path.h:48
A member of a sec_rep_space; a section.
sec_e3 vector_space_type
Type of underlying vector space.
Definition: sec_met_e3.h:68
Abstract base class with useful features for all objects.
Definition: any.h:39
met_e3 fiber_type
The fiber type.
Definition: sec_met_e3.h:63
An index within the external ("client") scope of a given id space.
Definition: scoped_index.h:116
A section of a bundle with fiber type met_e3.
Definition: sec_met_e3.h:48
A section of a fiber bundle with a 3-dimensional Euclidean vector space fiber.
Definition: sec_e3.h:47
A metric tensor over a 3 dimensional Euclidean vector space (persistent version). ...
Definition: met_e3.h:461
virtual sec_met_ed * clone() const
Make a new handle, no state instance of current.
Definition: sec_met_ed.cc:488
int_type pod_index_type
The plain old data index type.
Definition: pod_types.h:49
An abstract client handle for a member of a poset.
Namespace for the fiber_bundles component of the sheaf system.
A section of a bundle with fiber type met_ed.
Definition: sec_met_ed.h:46
A handle for a poset whose members are numerical representations of sections of a fiber bundle...
Definition: sec_rep_space.h:61