SheafSystem  0.0.0.0
primitives_index_space_handle.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 PRIMITIVES_INDEX_SPACE_HANDLE_H
22 #define PRIMITIVES_INDEX_SPACE_HANDLE_H
23 
24 #ifndef SHEAF_DLL_SPEC_H
25 #include "SheafSystem/sheaf_dll_spec.h"
26 #endif
27 
28 #ifndef EXPLICIT_INDEX_SPACE_HANDLE_H
29 #include "SheafSystem/explicit_index_space_handle.h"
30 #endif
31 
32 namespace sheaf
33 {
34 
35 class primitives_index_space_state;
36 
42 {
43 
44  friend class primitives_index_space_state;
45 
46  // ===========================================================
48  // ===========================================================
50 
51 public:
52 
57 
62 
67  pod_type xindex);
68 
73  const std::string& xname);
74 
80 
85 
86 protected:
87 
92 
94 
99 
103  const primitives_index_space_state& state() const;
104 
105 private:
106 
108 
109 
110  // ===========================================================
112  // ===========================================================
114 
115 public:
116 
117 protected:
118 
119 private:
120 
122 
123 
124  // ===========================================================
126  // ===========================================================
128 
129 public:
130 
135  virtual primitives_index_space_handle& operator=(const index_space_handle& xother);
136 
141  virtual primitives_index_space_handle* clone() const;
142 
143 protected:
144 
145 private:
146 
148 
149 
150  // ===========================================================
152  // ===========================================================
154 
155 public:
156 
158 
163  virtual bool conforms_to_state(const index_space_collection& xhost,
164  pod_type xlocal_id) const;
165 
166 protected:
167 
168 private:
169 
171 
172 
173  // ===========================================================
175  // ===========================================================
177 
178 public:
179 
183  virtual bool is_ancestor_of(const any *other) const;
184 
188  virtual bool invariant() const;
189 
190 protected:
191 
192 private:
193 
195 
196 };
197 
198 // ===========================================================
199 // NON-MEMBER FUNCTIONS
200 // ===========================================================
201 
202 } // end namespace sheaf
203 
204 #endif // ifndef PRIMITIVES_INDEX_SPACE_HANDLE_H
An abstract handle to a space of alternate integer identifiers (aliases) for a subset of a hub set of...
explicit_index_space_state & state()
The explicit state (mutable version).
Abstract base class with useful features for all objects.
Definition: any.h:39
A implementation of abstract class explicit_index_space_state for the primitives row dof id space...
An implementation of class index_space_handle for an explicit_index_space_state.
pod_index_type pod_type
The "plain old data" index type for this.
A collection of id space states. This is a virtual class with provides an interface for accessing the...
An implementation of class explicit_index_space_handle that has a primitives id space state...
virtual bool conforms_to_state(const index_space_collection &xhost, pod_type xlocal_id) const
True if this conforms to the handle type required by the state with local scope id xlocal_id in the h...
Namespace for the sheaves component of the sheaf system.
Factory and container for a family of id spaces.