SheafSystem  0.0.0.0
constant_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 CONSTANT_PUSH_ACTION_H
22 #define CONSTANT_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 #ifndef BLOCK_H
33 #include "SheafSystem/block.h"
34 #endif
35 
36 namespace fields
37 {
38 
42 class SHEAF_DLL_SPEC constant_push_action : public section_pusher_push_action
43 {
44 
45  // =============================================================================
47  // =============================================================================
49 
50 public:
51 
55  constant_push_action(int xdst_df, const block<sec_vd_dof_type>& xdst_dofs);
56 
60  constant_push_action(int xdst_df, sec_vd_dof_type xdst_dof);
61 
62  // Copy constructor; default memberwise copy constructor will do.
63 
67  virtual ~constant_push_action();
68 
72  block<sec_vd_dof_type>& dst_dofs();
73 
74 protected:
75 
80 
81 private:
82 
87 
89 
90 
91  // =============================================================================
93  // =============================================================================
95 
96 public:
97 
101  virtual void operator()(pullback_map::iterator& xitr,
102  sec_vd& xdst,
103  block<sec_vd_dof_type>& xdst_dofs);
104 
106 
107 
108  // =============================================================================
110  // =============================================================================
112 
113 public:
114 
118  virtual bool is_ancestor_of(const any*xother) const;
119 
124  virtual constant_push_action* clone() const;
125 
129  virtual constant_push_action& operator=(const section_pusher_push_action& xother);
130 
134  constant_push_action& operator=(const constant_push_action& xother);
135 
139  virtual bool invariant() const;
140 
142 
143 };
144 
145 // =============================================================================
146 // NON-MEMBER FUNCTIONS
147 // =============================================================================
148 
149 } // namespace fields
150 
151 #endif // ifndef CONSTANT_PUSH_ACTION_H
block< sec_vd_dof_type > _dst_dofs
Constant value for destination dofs.
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
Abstract functor to compute the dofs at a destination discretization point.
double sec_vd_dof_type
The type of degree of freedom in the section space.
Definition: fiber_bundle.h:78