SheafSystem  0.0.0.0
sec_met_ed.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_ED_H
22 #define SEC_MET_ED_H
23 
24 #ifndef SHEAF_DLL_SPEC_H
25 #include "SheafSystem/sheaf_dll_spec.h"
26 #endif
27 
28 #ifndef SEC_MET_H
29 #include "SheafSystem/sec_met.h"
30 #endif
31 
32 #ifndef MET_ED_H
33 #include "SheafSystem/met_ed.h"
34 #endif
35 
36 namespace fiber_bundle
37 {
38 
39 //==============================================================================
40 // CLASS SEC_MET_ED
41 //==============================================================================
42 
46 class SHEAF_DLL_SPEC sec_met_ed : public sec_met
47 {
48  // ===========================================================
50  // ===========================================================
52 
53 public:
54 
58  typedef met_ed fiber_type;
59 
65  static host_type& new_host(namespace_type& xns,
66  const poset_path& xhost_path,
67  const poset_path& xschema_path,
68  const poset_path& xscalar_space_path,
69  bool xauto_access);
70 
71 protected:
72 
73 private:
74 
76 
77 
78  //============================================================================
80  //============================================================================
82 
83 public:
84 
88  sec_met_ed();
89 
94  sec_met_ed(const sec_rep_space* xhost, pod_index_type xhub_id);
95 
100  sec_met_ed(const sec_rep_space* xhost, const scoped_index& xid);
101 
106  sec_met_ed(const sec_rep_space* xhost, const std::string& xname);
107 
112  sec_met_ed(const namespace_poset* xnamespace,
113  const poset_path& xpath,
114  bool xauto_access = true);
115 
119  explicit sec_met_ed(const sec_rep_space_member* xother);
120 
124  sec_met_ed(sec_rep_space* xhost,
125  section_dof_map* xdof_map = 0,
126  bool xauto_access = true);
127 
131  virtual sec_met_ed& operator=(const abstract_poset_member& xother);
132 
136  sec_met_ed& operator=(const sec_met_ed& xother);
137 
141  sec_met_ed& operator=(const met_ed& xfiber);
142 
146  sec_met_ed& operator=(const met_ed_lite& xfiber);
147 
151  ~sec_met_ed();
152 
156  virtual const fiber_type& fiber_prototype() const;
157 
158 protected:
159 
160 private:
161 
163 
164 
165  //============================================================================
167  //============================================================================
169 
170 public:
171 
172 protected:
173 
174 private:
175 
177 
178 
179  //============================================================================
181  //============================================================================
183 
184 public:
185 
186 protected:
187 
188 private:
189 
191 
192 
193  //============================================================================
195  //============================================================================
197 
198 public:
199 
200 protected:
201 
202 private:
203 
205 
206 
207  //============================================================================
209  //============================================================================
211 
212 public:
213 
214 protected:
215 
216 private:
217 
219 
220 
221  //============================================================================
223  //============================================================================
225 
226 public:
227 
228 protected:
229 
230 private:
231 
233 
234 
235  //============================================================================
237  //============================================================================
239 
240 public:
241 
242 protected:
243 
244 private:
245 
247 
248 
249  //============================================================================
251  //============================================================================
253 
254 public:
255 
259  virtual const std::string& class_name() const;
260 
264  static const std::string& static_class_name();
265 
269  virtual sec_met_ed* clone() const;
270 
276  inline sec_met_ed* clone(bool xnew_state, bool xauto_access = true) const
277  {
278  return static_cast<sec_met_ed*>(sec_met::clone(xnew_state, xauto_access));
279  }
280 
281 protected:
282 
283 private:
284 
286 
287 
288  //============================================================================
290  //============================================================================
292 
293 public:
294 
298  bool fiber_is_ancestor_of(const any* xother) const;
299 
303  bool is_ancestor_of(const any* xother) const;
304 
308  bool invariant() const;
309 
310 protected:
311 
312 private:
313 
315 
316 };
317 
318 } // namespace fiber_bundle
319 
320 #endif // ifndef SEC_MET_ED_H
321 
322 
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 metric tensor over a d-dimensional Euclidean vector space (persistent version). ...
Definition: met_ed.h:215
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 metric tensor over a d-dimensional Euclidean vector space (volatile version).
Definition: met_ed.h:43
virtual sec_met * clone() const
Make a new handle, no state instance of current.
Definition: sec_met.cc:477
A section of a bundle with fiber type met.
Definition: sec_met.h:46
Abstract base class with useful features for all objects.
Definition: any.h:39
met_ed fiber_type
The fiber type.
Definition: sec_met_ed.h:58
An index within the external ("client") scope of a given id space.
Definition: scoped_index.h:116
sec_met_ed * 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_ed.h:276
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