Sierra Toolkit  Version of the Day
FieldRelation.hpp
1 /*------------------------------------------------------------------------*/
2 /* Copyright 2010 Sandia Corporation. */
3 /* Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive */
4 /* license for use of this work by or on behalf of the U.S. Government. */
5 /* Export of this program may require a license from the */
6 /* United States Government. */
7 /*------------------------------------------------------------------------*/
8 
9 
10 #ifndef stk_mesh_FieldRelation_hpp
11 #define stk_mesh_FieldRelation_hpp
12 
13 namespace stk_classic {
14 namespace mesh {
15 
16 class FieldBase;
17 
18 //----------------------------------------------------------------------
74 struct FieldRelation {
77 
80 
83 
84 #ifndef DOXYGEN_COMPILE
85 
86  FieldRelation() : m_root( NULL ), m_target( NULL ), m_function( NULL ) {}
87 
88  FieldRelation( const FieldRelation & rhs )
89  : m_root( rhs.m_root ),
90  m_target( rhs.m_target ),
91  m_function( rhs.m_function ) {}
92 
93  FieldRelation & operator = ( const FieldRelation & rhs )
94  {
95  m_root = rhs.m_root ;
96  m_target = rhs.m_target ;
97  m_function = rhs.m_function ;
98  return *this ;
99  }
100 
101 #endif /* DOXYGEN_COMPILE */
102 };
103 
104 } // namespace mesh
105 } // namespace stk_classic
106 
107 #endif //stk_mesh_FieldRelation_hpp
FieldBase * m_target
relation range part
Field base class with an anonymous data type and anonymous multi-dimension.
Definition: FieldBase.hpp:53
FieldBase * m_root
relation domain part
Sierra Toolkit.
int(* relation_stencil_ptr)(unsigned from_type, unsigned to_type, unsigned identifier)
A relation stencil maps entity relationships to ordinals.
Definition: Types.hpp:149
relation_stencil_ptr m_function
relation stencil
A defined entity-relationship between a field of a pointer type and the field that it should point to...