SheafSystem  0.0.0.0
section_pusher_push_action.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 SECTION_PUSHER_PUSH_ACTION_H
22 #define SECTION_PUSHER_PUSH_ACTION_H
23 
24 #ifndef SHEAF_DLL_SPEC_H
25 #include "SheafSystem/sheaf_dll_spec.h"
26 #endif
27 
28 #ifndef ANY_H
29 #include "SheafSystem/any.h"
30 #endif
31 
32 #ifndef PULLBACK_MAP_H
33 #include "SheafSystem/pullback_map.h"
34 #endif
35 
36 namespace sheaf
37 {
38 template <typename T>
39 class block;
40 }
41 
42 namespace fiber_bundle
43 {
44 class sec_vd;
45 }
46 
47 namespace fields
48 {
49 
50 using namespace sheaf;
51 using namespace fiber_bundle;
52 
56 class SHEAF_DLL_SPEC section_pusher_push_action : public any
57 {
58 
59  // =============================================================================
61  // =============================================================================
63 
64 public:
65 
69  virtual ~section_pusher_push_action();
70 
74  int dst_df();
75 
79  virtual void operator()(pullback_map::iterator& xitr,
80  sec_vd& xdst,
81  block<sec_vd_dof_type>& xdst_dofs) = 0;
82 
86  virtual void initialize(sec_vd& xdst);
87 
91  virtual void finalize(sec_vd& xdst);
92 
93 
94 protected:
95 
100 
104  section_pusher_push_action(int xdst_df);
105 
106  // Copy constructor; default memberwise copy constructor will do.
107 
111  int _dst_df;
112 
114 
115 
116  // =============================================================================
118  // =============================================================================
120 
121 public:
122 
126  virtual bool is_ancestor_of(const any* xother) const;
127 
132  virtual section_pusher_push_action* clone() const = 0;
133 
137  virtual section_pusher_push_action& operator=(const section_pusher_push_action& xother);
138 
142  virtual bool invariant() const;
143 
145 
146 };
147 
148 // =============================================================================
149 // NON-MEMBER FUNCTIONS
150 // =============================================================================
151 
152 } // namespace fields
153 
154 #endif // ifndef SECTION_PUSHER_PUSH_ACTION_H
Abstract functor to compute the dofs at a destination discretization point.
Namespace for fields component of sheaf system.
Abstract base class with useful features for all objects.
Definition: any.h:39
int _dst_df
The fiber dimension of the destination.
A section of a fiber bundle with a d-dimensional vector space fiber.
Definition: sec_vd.h:54
Namespace for the sheaves component of the sheaf system.
Namespace for the fiber_bundles component of the sheaf system.