SheafSystem  0.0.0.0
copy_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 COPY_PUSH_ACTION_H
22 #define COPY_PUSH_ACTION_H
23 
24 #ifndef SHEAF_DLL_SPEC_H
25 #include "SheafSystem/sheaf_dll_spec.h"
26 #endif
27 
28 #ifndef SECTION_PUSHER_PUSH_ACTION_H
29 #include "SheafSystem/section_pusher_push_action.h"
30 #endif
31 
32 namespace fields
33 {
34 
39 class SHEAF_DLL_SPEC copy_push_action : public section_pusher_push_action
40 {
41 
42  // =============================================================================
44  // =============================================================================
46 
47 public:
48 
52  copy_push_action(int xdst_df);
53 
54  // Copy constructor; default memberwise copy constructor will do.
55 
59  virtual ~copy_push_action();
60 
61 
62 private:
63 
67  copy_push_action() {};
68 
70 
71 
72  // =============================================================================
74  // =============================================================================
76 
77 public:
78 
82  virtual void operator()(pullback_map::iterator& xitr,
83  sec_vd& xdst,
84  block<sec_vd_dof_type>& xdst_dofs);
85 
87 
88 
89  // =============================================================================
91  // =============================================================================
93 
94 public:
95 
99  virtual bool is_ancestor_of(const any* xother) const;
100 
105  virtual copy_push_action* clone() const;
106 
110  virtual copy_push_action& operator=(const section_pusher_push_action& xother);
111 
115  copy_push_action& operator=(const copy_push_action& xother);
116 
120  virtual bool invariant() const;
121 
123 
124 };
125 
126 // =============================================================================
127 // NON-MEMBER FUNCTIONS
128 // =============================================================================
129 
130 } // namespace fields
131 
132 #endif // ifndef COPY_PUSH_ACTION_H
Functor to compute the dofs at a destination discretization point by copying the source value to the ...
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
A section of a fiber bundle with a d-dimensional vector space fiber.
Definition: sec_vd.h:54