SheafSystem  0.0.0.0
pullback_map.cc
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 #include "SheafSystem/pullback_map.h"
22 
23 #include "SheafSystem/std_iomanip.h"
24 #include "SheafSystem/std_iostream.h"
25 
26 using namespace std;
27 using namespace fields; // Workaround for MS C++ bug.
28 
29 // ===========================================================
30 // NON-MEMBER FUNCTIONS
31 // ===========================================================
32 
33 std::ostream&
34 fields::operator<<(std::ostream& xos, const pullback_map_entry& xentry)
35 {
36 
37  // Preconditions:
38 
39  // Body:
40 
41  xos << "disc_id: " << setw(6) << xentry.disc_id << " domain_pt: " << xentry.domain_pt;
42 
43  // Postconditions:
44 
45  // Exit:
46 
47  return xos;
48 }
Namespace for fields component of sheaf system.
STL namespace.
SHEAF_DLL_SPEC std::ostream & operator<<(std::ostream &xos, const field_at0 &xfield)
Inserts field_at0 xfield into ostream xos.
Definition: field_at0.cc:535
An entry in a discretization map.
Definition: pullback_map.h:44
chart_point_3d domain_pt
The location of the discretization member.
Definition: pullback_map.h:62
scoped_index disc_id
The id of a discretization member.
Definition: pullback_map.h:57