SheafSystem  0.0.0.0
sec_at3.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_AT3_H
22 #define SEC_AT3_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 AT3_H
33 #include "SheafSystem/at3.h"
34 #endif
35 
36 namespace fiber_bundle
37 {
38 
39 //==============================================================================
40 // CLASS SEC_AT3
41 //==============================================================================
42 
46 class SHEAF_DLL_SPEC sec_at3 : public sec_atp
47 {
48 
49  // ===========================================================
51  // ===========================================================
53 
54 public:
55 
59  typedef at3 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_at3();
90 
95  sec_at3(const sec_rep_space* xhost, pod_index_type xhub_id);
96 
101  sec_at3(const sec_rep_space* xhost, const scoped_index& xid);
102 
107  sec_at3(const sec_rep_space* xhost, const std::string& xname);
108 
113  sec_at3(const namespace_poset* xnamespace,
114  const poset_path& xpath,
115  bool xauto_access = true);
116 
120  explicit sec_at3(const sec_rep_space_member* xother);
121 
125  sec_at3(sec_rep_space* xhost,
126  section_dof_map* xdof_map = 0,
127  bool xauto_access = true);
128 
134  sec_at3(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_at3& operator=(const abstract_poset_member& xother);
143 
147  sec_at3& operator=(const sec_at3& xother);
148 
152  sec_at3& operator=(const at3& xfiber);
153 
157  sec_at3& operator=(const at3_lite& xfiber);
158 
162  ~sec_at3();
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_at3* clone() const;
253 
259  inline sec_at3* clone(bool xnew_state, bool xauto_access = true) const
260  {
261  return static_cast<sec_at3*>(sec_atp::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* other) const;
287 
291  bool invariant() const;
292 
293 protected:
294 
295 private:
296 
298 
299 
300 //##############################################################################
301 
302 public:
303 
307 // virtual scalar_type* comp2(int row, int col);
308 
313 // int index_for_row_column(int row, int column);
314 
318 // virtual void set_comp2(int row, int col, scalar_type* new_comp);
319 
320 };
321 
322 } // namespace fiber_bundle
323 
324 #endif // ifndef SEC_AT3_H
325 
An antisymmetric rank 3 tensor over an abstract vector space (volatile version).
Definition: at3.h:43
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.
at3 fiber_type
The fiber type.
Definition: sec_at3.h:59
Abstract base class with useful features for all objects.
Definition: any.h:39
An abstract antisymmetric tensor section space of degree p.
Definition: sec_atp_space.h:47
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
A section of a bundle with fiber type at3.
Definition: sec_at3.h:46
sec_at3 * 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_at3.h:259
An antisymmetric rank 3 tensor over an abstract vector space (volatile version).
Definition: at3.h:230
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 handle for a poset whose members are numerical representations of sections of a fiber bundle...
Definition: sec_rep_space.h:61