SheafSystem  0.0.0.0
sec_e1.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_E1_H
22 #define SEC_E1_H
23 
24 #ifndef SHEAF_DLL_SPEC_H
25 #include "SheafSystem/sheaf_dll_spec.h"
26 #endif
27 
28 #ifndef E1_H
29 #include "SheafSystem/e1.h"
30 #endif
31 
32 #ifndef SEC_ED_H
33 #include "SheafSystem/sec_ed.h"
34 #endif
35 
36 namespace fiber_bundle
37 {
38 
39 //==============================================================================
40 // CLASS SEC_E1
41 //==============================================================================
42 
47 class SHEAF_DLL_SPEC sec_e1 : public sec_ed
48 {
49 
50  // ===========================================================
52  // ===========================================================
54 
55 public:
56 
57  // Typedefs:
58 
62  typedef e1 fiber_type;
63 
68 
74  static host_type& new_host(namespace_type& xns,
75  const poset_path& xhost_path,
76  const poset_path& xschema_path,
77  const poset_path& xscalar_space_path,
78  bool xauto_access);
79 
86  static host_type& standard_host(namespace_type& xns,
87  const poset_path& xbase_path,
88  const poset_path& xrep_path,
89  const std::string& xsection_suffix,
90  const std::string& xfiber_suffix,
91  bool xauto_access);
92 
93 protected:
94 
95 private:
96 
98 
99 
100  //============================================================================
102  //============================================================================
104 
105 public:
106 
110  sec_e1();
111 
116  sec_e1(const sec_rep_space* xhost, pod_index_type xhub_id);
117 
122  sec_e1(const sec_rep_space* xhost, const scoped_index& xid);
123 
128  sec_e1(const sec_rep_space* xhost, const std::string& xname);
129 
134  sec_e1(const namespace_poset* xnamespace,
135  const poset_path& xpath,
136  bool xauto_access = true);
137 
141  explicit sec_e1(const sec_rep_space_member* xother);
142 
146  sec_e1(sec_rep_space* xhost,
147  section_dof_map* xdof_map = 0,
148  bool xauto_access = true);
149 
155  sec_e1(sec_rep_space* xhost,
156  abstract_poset_member& xbase_mbr,
157  int xbase_version = CURRENT_HOST_VERSION,
158  bool xauto_access = true);
159 
165  sec_e1(sec_rep_space* xhost, const subposet& xbase_parts, bool xauto_sccess);
166 
170  virtual sec_e1& operator=(const abstract_poset_member& xother);
171 
175  sec_e1& operator=(const sec_e1& xother);
176 
180  sec_e1& operator=(const e1& xfiber);
181 
185  sec_e1& operator=(const e1_lite& xfiber);
186 
190  ~sec_e1();
191 
195  virtual const fiber_type& fiber_prototype() const;
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 
239 protected:
240 
241 private:
242 
244 
245 
246  //============================================================================
248  //============================================================================
250 
251 public:
252 
253 protected:
254 
255 private:
256 
258 
259 
260  //============================================================================
262  //============================================================================
264 
265 public:
266 
267 protected:
268 
269 private:
270 
272 
273 
274  //============================================================================
276  //============================================================================
278 
279 public:
280 
281 protected:
282 
283 private:
284 
286 
287 
288  //============================================================================
290  //============================================================================
292 
293 public:
294 
298  virtual const std::string& class_name() const;
299 
303  static const std::string& static_class_name();
304 
308  virtual sec_e1* clone() const;
309 
315  inline sec_e1* clone(bool xnew_state, bool xauto_access = true) const
316  {
317  return static_cast<sec_e1*>(sec_ed::clone(xnew_state, xauto_access));
318  }
319 
320 protected:
321 
322 private:
323 
325 
326 
327  //============================================================================
329  //============================================================================
331 
332 public:
333 
337  bool fiber_is_ancestor_of(const any* xother) const;
338 
342  bool is_ancestor_of(const any* other) const;
343 
347  bool invariant() const;
348 
349 protected:
350 
351 private:
352 
354 
355 };
356 
357 } // namespace fiber_bundle
358 
359 #endif // ifndef SEC_E1_H
360 
A client handle for a subposet.
Definition: subposet.h:86
The abstract map from section dof ids to section dof values of heterogeneous type.
A space of scalars viewed as an antisymmetric tensor section space of degree 1.
Definition: sec_at1_space.h:48
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.
Euclidean vector space of dimension 1 (persistent version).
Definition: e1.h:400
A section of a fiber bundle with a d-dimensional Euclidean vector space fiber.
Definition: sec_ed.h:47
Abstract base class with useful features for all objects.
Definition: any.h:39
sec_e1 * 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_e1.h:315
virtual sec_ed * clone() const
Make a new handle, no state instance of current.
Definition: sec_ed.cc:502
An index within the external ("client") scope of a given id space.
Definition: scoped_index.h:116
sec_e1 vector_space_type
Type of underlying vector space.
Definition: sec_e1.h:67
e1 fiber_type
The fiber type.
Definition: sec_e1.h:62
int_type pod_index_type
The plain old data index type.
Definition: pod_types.h:49
A section of a fiber bundle with a 1-dimensional Euclidean vector space fiber.
Definition: sec_e1.h:47
Euclidean vector space of dimension 1 (volatile version).
Definition: e1.h:113
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