SheafSystem  0.0.0.0
sec_st2.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_ST2_H
22 #define SEC_ST2_H
23 
24 #ifndef SHEAF_DLL_SPEC_H
25 #include "SheafSystem/sheaf_dll_spec.h"
26 #endif
27 
28 #ifndef SEC_STP_H
29 #include "SheafSystem/sec_stp.h"
30 #endif
31 
32 #ifndef ST2_H
33 #include "SheafSystem/st2.h"
34 #endif
35 
36 namespace fiber_bundle
37 {
38 
39 //==============================================================================
40 // CLASS SEC_ST2
41 //==============================================================================
42 
46 class SHEAF_DLL_SPEC sec_st2 : public sec_stp
47 {
48 
49  // ===========================================================
51  // ===========================================================
53 
54 public:
55 
59  typedef st2 fiber_type;
60 
66  static host_type& new_host(namespace_type& xns,
67  const poset_path& xhost_path,
68  const poset_path& xschema_path,
69  const poset_path& xscalar_space_path,
70  bool xauto_access);
71 
72 protected:
73 
74 private:
75 
77 
78 
79  //============================================================================
81  //============================================================================
83 
84 public:
85 
89  sec_st2();
90 
95  sec_st2(const sec_rep_space* xhost, pod_index_type xhub_id);
96 
101  sec_st2(const sec_rep_space* xhost, const scoped_index& xid);
102 
107  sec_st2(const sec_rep_space* xhost, const std::string& xname);
108 
113  sec_st2(const namespace_poset* xnamespace,
114  const poset_path& xpath,
115  bool xauto_access = true);
116 
120  explicit sec_st2(const sec_rep_space_member* xother);
121 
125  sec_st2(sec_rep_space* xhost,
126  section_dof_map* xdof_map = 0,
127  bool xauto_access = true);
128 
134  sec_st2(sec_rep_space* xhost,
135  abstract_poset_member& xbase_mbr,
136  int xbase_version = CURRENT_HOST_VERSION,
137  bool xauto_access = true);
138 
142  virtual sec_st2& operator=(const abstract_poset_member& xother);
143 
147  sec_st2& operator=(const sec_st2& xother);
148 
152  sec_st2& operator=(const st2& xfiber);
153 
157  sec_st2& operator=(const st2_lite& xfiber);
158 
162  ~sec_st2();
163 
167  virtual const fiber_type& fiber_prototype() const;
168 
169 protected:
170 
171 private:
172 
174 
175 
176  //============================================================================
178  //============================================================================
180 
181 public:
182 
183 protected:
184 
185 private:
186 
188 
189 
190  //============================================================================
192  //============================================================================
194 
195 public:
196 
197 protected:
198 
199 private:
200 
202 
203 
204  //============================================================================
206  //============================================================================
208 
209 public:
210 
211 protected:
212 
213 private:
214 
216 
217 
218  //============================================================================
220  //============================================================================
222 
223 public:
224 
225 protected:
226 
227 private:
228 
230 
231 
232  //============================================================================
234  //============================================================================
236 
237 public:
238 
242  virtual const std::string& class_name() const;
243 
247  static const std::string& static_class_name();
248 
252  virtual sec_st2* clone() const;
253 
259  inline sec_st2* clone(bool xnew_state, bool xauto_access = true) const
260  {
261  return static_cast<sec_st2*>(sec_stp::clone(xnew_state, xauto_access));
262  }
263 
264 protected:
265 
266 private:
267 
269 
270 
271  //============================================================================
273  //============================================================================
275 
276 public:
277 
281  bool fiber_is_ancestor_of(const any* xother) const;
282 
286  bool is_ancestor_of(const any* xother) const;
287 
291  bool invariant() const;
292 
293 protected:
294 
295 private:
296 
298 
299 
300  //############################################################################
301 
302 public:
303 
304 protected:
305 private:
306 
307 };
308 
309 //==============================================================================
310 // NON-MEMBER FUNCTIONS
311 //==============================================================================
312 
313 
314 class sec_at0;
315 
320 namespace sec_st2_algebra
321 {
322 
323 #ifndef DOXYGEN_1_5_4_SKIP_UNKNOWN
324 
328 SHEAF_DLL_SPEC void trace(const sec_st2& x0, sec_at0& xresult, bool xauto_access);
329 
333 SHEAF_DLL_SPEC void determinant(const sec_st2& x0, sec_at0& xresult, bool xauto_access);
334 
335 #endif // ifndef DOXYGEN_1_5_4_SKIP_UNKNOWN
336 
337 } // namespace sec_st2_algebra
338 
339 } // namespace fiber_bundle
340 
341 #endif // ifndef SEC_ST2_H
342 
343 
An abstract symmetric tensor section space of degree p.
Definition: sec_stp_space.h:47
st2 fiber_type
The fiber type.
Definition: sec_st2.h:59
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...
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.
Abstract base class with useful features for all objects.
Definition: any.h:39
A general symmetric tensor of degree 2 over an abstract vector space (volatile version).
Definition: st2.h:43
void trace(const S0 &x0, SR &xresult, bool xauto_access)
Definition: sec_st2.impl.h:99
An index within the external ("client") scope of a given id space.
Definition: scoped_index.h:116
sec_st2 * 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_st2.h:259
A section of a bundle with fiber type st2.
Definition: sec_st2.h:46
A section of a bundle with fiber type stp.
Definition: sec_stp.h:48
virtual sec_stp * clone() const
Make a new handle, no state instance of current.
Definition: sec_stp.cc:482
void determinant(const S0 &x0, SR &xresult, bool xauto_access)
Definition: sec_st2.impl.h:131
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 general symmetric tensor of degree 2 over an abstract vector space (persistent version).
Definition: st2.h:234
Antisymetric tensor of degree 0. As the degree is 0 there is nothing to be symmetric or antisymmetric...
Definition: sec_at0.h:51
A handle for a poset whose members are numerical representations of sections of a fiber bundle...
Definition: sec_rep_space.h:61