SheafSystem  0.0.0.0
base_space_map_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 BASE_SPACE_MAP_PUSH_ACTION_H
22 #define BASE_SPACE_MAP_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 base_space_map_push_action : public any
57 {
58 
59  // =============================================================================
61  // =============================================================================
63 
64 public:
65 
69  virtual ~base_space_map_push_action();
70 
74  virtual void operator()(pullback_map::iterator& xitr,
75  block<sec_vd*>& xoutputs,
76  block< block<sec_vd_dof_type>* >& xout_dofs) = 0;
77 
81  virtual void initialize(block<sec_vd*>& xoutputs);
82 
86  virtual void finalize(block<sec_vd*>& xoutputs);
87 
88 
89 protected:
90 
95 
96  // Copy constructor; default memberwise copy constructor will do.
97 
99 
100 
101  // =============================================================================
103  // =============================================================================
105 
106 public:
107 
111  virtual bool is_ancestor_of(const any *other) const;
112 
117  virtual base_space_map_push_action* clone() const = 0;
118 
122  virtual base_space_map_push_action& operator=(const base_space_map_push_action& xother);
123 
127  virtual bool invariant() const;
128 
130 
131 };
132 
133 // =============================================================================
134 // NON-MEMBER FUNCTIONS
135 // =============================================================================
136 
137 } // namespace fields
138 
139 #endif // ifndef BASE_SPACE_MAP_PUSH_ACTION_H
Namespace for fields component of sheaf system.
Abstract base class with useful features for all objects.
Definition: any.h:39
Abstract functor to compute the dofs at a destination discretization point.
Namespace for the sheaves component of the sheaf system.
An auto_block with a no-initialization initialization policy.
Namespace for the fiber_bundles component of the sheaf system.