SheafSystem  0.0.0.0
sec_at1.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_AT1_H
22 #define SEC_AT1_H
23 
24 #ifndef SHEAF_DLL_SPEC_H
25 #include "SheafSystem/sheaf_dll_spec.h"
26 #endif
27 
28 #ifndef SEC_ATP_H
29 #include "SheafSystem/sec_atp.h"
30 #endif
31 
32 #ifndef AT1_H
33 #include "SheafSystem/at1.h"
34 #endif
35 
36 namespace fiber_bundle
37 {
38 
39 class sec_at1_space;
40 
41 //==============================================================================
42 // CLASS SEC_AT1
43 //==============================================================================
44 
48 class SHEAF_DLL_SPEC sec_at1 : public sec_atp
49 {
50 
51  // ===========================================================
53  // ===========================================================
55 
56 public:
57 
62 
66  typedef at1 fiber_type;
67 
73  static host_type& new_host(namespace_type& xns,
74  const poset_path& xhost_path,
75  const poset_path& xschema_path,
76  const poset_path& xscalar_space_path,
77  bool xauto_access);
78 
79 protected:
80 
81 private:
82 
84 
85 
86  //============================================================================
88  //============================================================================
90 
91 public:
92 
96  sec_at1();
97 
102  sec_at1(const sec_rep_space* xhost, pod_index_type xhub_id);
103 
108  sec_at1(const sec_rep_space* xhost, const scoped_index& xid);
109 
114  sec_at1(const sec_rep_space* xhost, const std::string& xname);
115 
120  sec_at1(const namespace_poset* xnamespace,
121  const poset_path& xpath,
122  bool xauto_access = true);
123 
127  explicit sec_at1(const sec_rep_space_member* xother);
128 
132  sec_at1(sec_rep_space* xhost,
133  section_dof_map* xdof_map = 0,
134  bool xauto_access = true);
135 
141  sec_at1(sec_rep_space* xhost,
142  abstract_poset_member& xbase_mbr,
143  int xbase_version = CURRENT_HOST_VERSION,
144  bool xauto_access = true);
145 
149  virtual sec_at1& operator=(const abstract_poset_member& xother);
150 
154  sec_at1& operator=(const sec_at1& xother);
155 
159  sec_at1& operator=(const at1& xfiber);
160 
164  sec_at1& operator=(const at1_lite& xfiber);
165 
169  ~sec_at1();
170 
174  virtual const fiber_type& fiber_prototype() const;
175 
176 protected:
177 
178 private:
179 
181 
182 
183  //============================================================================
185  //============================================================================
187 
188 public:
189 
190 protected:
191 
192 private:
193 
195 
196 
197  //============================================================================
199  //============================================================================
201 
202 public:
203 
204 protected:
205 
206 private:
207 
209 
210 
211  //============================================================================
213  //============================================================================
215 
216 public:
217 
218 protected:
219 
220 private:
221 
223 
224 
225  //============================================================================
227  //============================================================================
229 
230 public:
231 
232 protected:
233 
234 private:
235 
237 
238 
239  //============================================================================
241  //============================================================================
243 
244 public:
245 
249  virtual const std::string& class_name() const;
250 
254  static const std::string& static_class_name();
255 
259  virtual sec_at1* clone() const;
260 
266  inline sec_at1* clone(bool xnew_state, bool xauto_access = true) const
267  {
268  return static_cast<sec_at1*>(sec_atp::clone(xnew_state, xauto_access));
269  }
270 
271 protected:
272 
273 private:
274 
276 
277 
278  // ===========================================================
280  // ===========================================================
282 
283 public:
284 
288  host_type* host() const;
289 
293  virtual bool host_is_ancestor_of(const poset_state_handle* other) const;
294 
295 protected:
296 
297 private:
298 
300 
301 
302  //============================================================================
304  //============================================================================
306 
307 public:
308 
312  bool fiber_is_ancestor_of(const any* xother) const;
313 
317  bool is_ancestor_of(const any* xother) const;
318 
322  bool invariant() const;
323 
324 
325 protected:
326 
327 private:
328 
330 
331 };
332 
333 } // namespace fiber_bundle
334 
335 #endif // ifndef SEC_AT1_H
336 
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.
A general antisymmetric tensor of degree 1 over an abstract vector space (persistent version)...
Definition: at1.h:211
The standard fiber bundles name space; extends the standard sheaves namespace by defining base space...
A general antisymmetric tensor of degree 1 over an abstract vector space (volatile version)...
Definition: at1.h:44
A client handle for a general, abstract partially order set.
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.
at1 fiber_type
The fiber type.
Definition: sec_at1.h:66
A section of a bundle with fiber type at1.
Definition: sec_at1.h:48
Abstract base class with useful features for all objects.
Definition: any.h:39
sec_at1_space host_type
The type of host poset.
Definition: sec_at1.h:61
An index within the external ("client") scope of a given id space.
Definition: scoped_index.h:116
virtual sec_atp * clone() const
Make a new handle, no state instance of current.
Definition: sec_atp.cc:563
A section of a bundle with fiber type atp.
Definition: sec_atp.h:48
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.
sec_at1 * 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_at1.h:266
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