SheafSystem  0.0.0.0
sec_t2_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_T2_E3_H
22 #define SEC_T2_E3_H
23 
24 #ifndef SHEAF_DLL_SPEC_H
25 #include "SheafSystem/sheaf_dll_spec.h"
26 #endif
27 
28 #ifndef SEC_T2_H
29 #include "SheafSystem/sec_t2.h"
30 #endif
31 
32 #ifndef T2_E3
33 #include "SheafSystem/t2_e3.h"
34 #endif
35 
36 namespace fiber_bundle
37 {
38 
39 class sec_e3;
40 
41 //==============================================================================
42 // CLASS SEC_T2_E3
43 //==============================================================================
44 
48 class SHEAF_DLL_SPEC sec_t2_e3 : public sec_t2
49 {
50 
51  // ===========================================================
53  // ===========================================================
55 
56 public:
57 
58  // Typedefs:
59 
63  typedef t2_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 
102  //============================================================================
104  //============================================================================
106 
107 public:
108 
112  sec_t2_e3();
113 
118  sec_t2_e3(const sec_rep_space_member& xother);
119 
125  sec_t2_e3(sec_rep_space* xhost,
126  abstract_poset_member& xbase_mbr,
127  int xbase_version = CURRENT_HOST_VERSION,
128  bool xauto_access = true);
129 
134  sec_t2_e3(sec_rep_space* xhost,
135  section_dof_map* xdof_map = 0,
136  bool xauto_access = true);
137 
142  sec_t2_e3(const sec_rep_space* xhost, pod_index_type xhub_id);
143 
148  sec_t2_e3(const sec_rep_space* xhost, const scoped_index& xid);
149 
154  sec_t2_e3(const sec_rep_space* xhost, const std::string& xname);
155 
160  sec_t2_e3(const namespace_poset* xnamespace,
161  const poset_path& xpath,
162  bool xauto_access = true);
163 
167  virtual sec_t2_e3& operator=(const abstract_poset_member& xother);
168 
172  sec_t2_e3& operator=(const sec_t2_e3& xother);
173 
177  sec_t2_e3& operator=(const t2_e3& xfiber);
178 
182  sec_t2_e3& operator=(const t2_e3_lite& xfiber);
183 
187  ~sec_t2_e3();
188 
192  virtual const fiber_type& fiber_prototype() const;
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 
267  virtual const std::string& class_name() const;
268 
272  static const std::string& static_class_name();
273 
277  virtual sec_t2_e3* clone() const;
278 
284  inline sec_t2_e3* clone(bool xnew_state, bool xauto_access = true) const
285  {
286  return static_cast<sec_t2_e3*>(sec_tp::clone(xnew_state, xauto_access));
287  }
288 
289 protected:
290 
291 private:
292 
294 
295 
296  //============================================================================
298  //============================================================================
300 
301 public:
302 
306  bool fiber_is_ancestor_of(const any* xother) const;
307 
311  bool is_ancestor_of(const any* xother) const;
312 
316  bool invariant() const;
317 
318 protected:
319 
320 private:
321 
323 
324 };
325 
326 
327 } // namespace fiber_bundle
328 
329 #endif // ifndef SEC_T2_E3_H
330 
331 
The abstract map from section dof ids to section dof values of heterogeneous type.
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_t2_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_t2_e3.h:284
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.
A tensor of degree 2 over a Euclidean vector space of dimension 3 (persistent version).
Definition: t2_e3.h:457
t2_e3 fiber_type
The fiber type.
Definition: sec_t2_e3.h:63
Abstract base class with useful features for all objects.
Definition: any.h:39
An abstract tensor section space of degree p.
Definition: sec_tp_space.h:53
An index within the external ("client") scope of a given id space.
Definition: scoped_index.h:116
A tensor of degree 2 over a Euclidean vector space of dimension 3 (volatile version).
Definition: t2_e3.h:151
A section of a fiber bundle with a 3-dimensional Euclidean vector space fiber.
Definition: sec_e3.h:47
sec_e3 vector_space_type
Type of underlying vector space.
Definition: sec_t2_e3.h:68
virtual sec_tp * clone() const
Make a new handle, no state instance of current.
Definition: sec_tp.cc:903
A section of a bundle with fiber type tp.
Definition: sec_t2.h:46
int_type pod_index_type
The plain old data index type.
Definition: pod_types.h:49
A section of a bundle with fiber type t2_e3.
Definition: sec_t2_e3.h:48
An abstract client handle for a member of a poset.
Namespace for the fiber_bundles component of the sheaf system.
A handle for a poset whose members are numerical representations of sections of a fiber bundle...
Definition: sec_rep_space.h:61