SheafSystem  0.0.0.0
zone_centered_segment_refiner.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 ZONE_CENTERED_SEGMENT_REFINER_H
22 #define ZONE_CENTERED_SEGMENT_REFINER_H
23 
24 #ifndef SHEAF_DLL_SPEC_H
25 #include "SheafSystem/sheaf_dll_spec.h"
26 #endif
27 
28 #ifndef LOCAL_FIELD_REFINER_H
29 #include "SheafSystem/local_field_refiner.h"
30 #endif
31 
32 namespace fields
33 {
34 
39 {
40 
41  // ===========================================================
43  // ===========================================================
45 
46 public:
47 
53 
58 
59 protected:
60 
65 
70 
75 
80 
84  virtual void refine_base_space(field_refinement_buffer& xbuffer);
85 
89  void modify_crg(field_refinement_buffer& xbuffer);
90 
94  void modify_subposets(field_refinement_buffer& xbuffer);
95 
99  virtual void refine_coordinates(field_refinement_buffer& xbuffer);
100 
101 private:
102 
109  enum static_const_int {REFINED_ZONE_CT = 2};
110  //static const size_type REFINED_ZONE_CT = 2;
111 
113 
114 
115  // ===========================================================
117  // ===========================================================
119 
120 public:
121 
126  virtual int db() const;
127 
131  virtual const std::string& zone_type_name() const;
132 
136  virtual size_type refined_zone_ct() const;
137 
142  const chart_point_coord_type* local_coordinates_map(size_type xi) const;
143 
145 
146 
147  // ===========================================================
149  // ===========================================================
151 
152 public:
153 
157  virtual zone_centered_segment_refiner* clone() const;
158 
162  virtual zone_centered_segment_refiner& operator=(const local_field_refiner& xother);
163 
168 
173 
177  virtual bool invariant() const;
178 
182  virtual bool is_ancestor_of(const any* xother) const;
183 
185 
186 };
187 
188 } // namespace fields
189 
190 #endif // ifndef ZONE_CENTERED_SEGMENT_REFINER_H
double chart_point_coord_type
The type of local coordinate in the base space; the scalar type for the local coordinate vector space...
Definition: fiber_bundle.h:57
A field refiner that introduces a new vertex in the center of a segment.
A buffer for data which is used by both a local_field_refiner object and its associated field_refinem...
Namespace for fields component of sheaf system.
Abstract base class with useful features for all objects.
Definition: any.h:39
scoped_index _new_point_id
The index of the point added by the current base space refinement.
An index within the external ("client") scope of a given id space.
Definition: scoped_index.h:116
unsigned long size_type
An unsigned integral type used to represent sizes and capacities.
Definition: sheaf.h:52
An abstract policy that determines the conditions under which a zone should be refined.
scoped_index _new_seg_0_id
The index of the first segment added by the current base space refinement.
An abstract refiner for a field over a local region (primitive cell) in the base space.
scoped_index _new_seg_1_id
The index of the second segment added by the current base space refinement.