SheafSystem  0.0.0.0
stp_space.h
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 
18 // Interface for class stp_space.
19 
20 #ifndef STP_SPACE_H
21 #define STP_SPACE_H
22 
23 #ifndef SHEAF_DLL_SPEC_H
24 #include "SheafSystem/sheaf_dll_spec.h"
25 #endif
26 
27 #ifndef TP_SPACE_H
28 #include "SheafSystem/tp_space.h"
29 #endif
30 
31 namespace fiber_bundle
32 {
33 
34  using namespace sheaf;
35 
36  class stp;
37 
38 
42 class SHEAF_DLL_SPEC stp_space : public tp_space
43 {
44  friend class fiber_bundles_namespace;
45 
46 public:
47 
48  // ===========================================================
50  // ===========================================================
52 
53 public:
54 
58  typedef stp member_type;
59 
63  static const std::string& standard_schema_poset_name();
64 
68  static const poset_path& standard_schema_path();
69 
70  using tp_space::d;
71 
76  static int d(const namespace_poset& xns, int xp, const poset_path& xvector_space_path, bool xauto_access);
77 
84  static stp_space& new_table(namespace_type& xhost,
85  const poset_path& xpath,
86  const poset_path& xschema_path,
87  int xp,
88  const poset_path& xvector_space_path,
89  bool xauto_access);
90 
91 protected:
92 
97  stp_space();
98 
102  stp_space(const stp_space& xother) { };
103 
107  virtual ~stp_space();
108 
112  stp_space(stp* xtop, stp* xbottom);
113 
114 private:
115 
117 
118  // ===========================================================
120  // ===========================================================
122 
123 public:
124 
128  virtual int d(int xp, int xdd) const;
129 
134  virtual tensor_variance round_variance(const tensor_variance& xvariance) const;
135 
136 protected:
137 
141  virtual size_type covariant_subposet_ct() const;
142 
143 private:
144 
146 
147 
148  // ===========================================================
150  // ===========================================================
152 
153 public:
154 protected:
155 private:
156 
160  static bool make_prototype();
161 
163 
164  // ===========================================================
166  // ===========================================================
168 
169 public:
170 
174  virtual poset_type type_id() const;
175 
179  virtual const char* class_name() const;
180 
181 protected:
182 
187  {
188  return const_cast<stp_space&>(*this);
189  };
190 
191 private:
192 
194 
195  // ===========================================================
197  // ===========================================================
199 
200 public:
201 
202 protected:
203 
204 private:
205 
207 
208 
209  // ===========================================================
211  // ===========================================================
213 
214 public:
215 
219  virtual bool is_ancestor_of(const any* xother) const;
220 
225  virtual stp_space* clone() const;
226 
230  virtual bool invariant() const;
231 
232 protected:
233 private:
234 
236 
237 };
238 
239 
240 } // namespace fiber_bundle
241 
242 
243 #endif // STP_SPACE_H
A symmetric tensor of degree p over an abstract vector space.
Definition: stp.h:190
The "type" of a tensor; specifies the degree and the co- or contra-variance for each index of a tenso...
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...
poset_type
Identifiers for poset types.
Definition: poset_type.h:41
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
stp_space(const stp_space &xother)
Copy constructor; disabled.
Definition: stp_space.h:102
Abstract base class with useful features for all objects.
Definition: any.h:39
unsigned long size_type
An unsigned integral type used to represent sizes and capacities.
Definition: sheaf.h:52
int d() const
The dimension.
Definition: vd_space.cc:174
stp member_type
The type of member associated with this space.
Definition: stp_space.h:58
Namespace for the sheaves component of the sheaf system.
An abstract tensor space of degree p.
Definition: tp_space.h:47
An abstract symmetric tensor space of degree p.
Definition: stp_space.h:42
Namespace for the fiber_bundles component of the sheaf system.
stp_space & operator=(const poset_state_handle &xother)
Assignment operator; disabled.
Definition: stp_space.h:186