SheafSystem  0.0.0.0
sec_st4.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_ST4_H
22 #define SEC_ST4_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 ST4_H
33 #include "SheafSystem/st4.h"
34 #endif
35 
36 namespace fiber_bundle
37 {
38 
39 //==============================================================================
40 // CLASS SEC_ST4
41 //==============================================================================
42 
46 class SHEAF_DLL_SPEC sec_st4 : public sec_stp
47 {
48 
49  // ===========================================================
51  // ===========================================================
53 
54 public:
55 
59  typedef st4 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_st4();
90 
95  sec_st4(const sec_rep_space* xhost, pod_index_type xhub_id);
96 
101  sec_st4(const sec_rep_space* xhost, const scoped_index& xid);
102 
107  sec_st4(const sec_rep_space* xhost, const std::string& xname);
108 
113  sec_st4(const namespace_poset* xnamespace,
114  const poset_path& xpath,
115  bool xauto_access = true);
116 
120  explicit sec_st4(const sec_rep_space_member* xother);
121 
125  sec_st4(sec_rep_space* xhost,
126  section_dof_map* xdof_map = 0,
127  bool xauto_access = true);
128 
134  sec_st4(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_st4& operator=(const abstract_poset_member& xother);
143 
147  sec_st4& operator=(const sec_st4& xother);
148 
152  sec_st4& operator=(const st4& xfiber);
153 
157  sec_st4& operator=(const st4_lite& xfiber);
158 
162  ~sec_st4();
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_st4* clone() const;
253 
259  inline sec_st4* clone(bool xnew_state, bool xauto_access = true) const
260  {
261  return static_cast<sec_st4*>(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 public:
300 
301 };
302 
303 } // namespace fiber_bundle
304 
305 #endif // ifndef SEC_ST4_H
306 
307 
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.
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.
A symmetric rank 4 tensor over an abstract vector space (persistent version).
Definition: st4.h:230
Abstract base class with useful features for all objects.
Definition: any.h:39
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 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
int_type pod_index_type
The plain old data index type.
Definition: pod_types.h:49
A section of a bundle with fiber type st4.
Definition: sec_st4.h:46
st4 fiber_type
The fiber type.
Definition: sec_st4.h:59
An abstract client handle for a member of a poset.
sec_st4 * 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_st4.h:259
Namespace for the fiber_bundles component of the sheaf system.
A symmetric rank 4 tensor over an abstract vector space. (volatile version).
Definition: st4.h:43
A handle for a poset whose members are numerical representations of sections of a fiber bundle...
Definition: sec_rep_space.h:61