|
Sierra Toolkit
Version of the Day
|
00001 /*------------------------------------------------------------------------*/ 00002 /* Copyright 2010 Sandia Corporation. */ 00003 /* Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive */ 00004 /* license for use of this work by or on behalf of the U.S. Government. */ 00005 /* Export of this program may require a license from the */ 00006 /* United States Government. */ 00007 /*------------------------------------------------------------------------*/ 00008 00009 00010 #ifndef stk_mesh_FieldRelation_hpp 00011 #define stk_mesh_FieldRelation_hpp 00012 00013 namespace stk_classic { 00014 namespace mesh { 00015 00016 class FieldBase; 00017 00018 //---------------------------------------------------------------------- 00074 struct FieldRelation { 00076 FieldBase * m_root ; 00077 00079 FieldBase * m_target ; 00080 00082 relation_stencil_ptr m_function ; 00083 00084 #ifndef DOXYGEN_COMPILE 00085 00086 FieldRelation() : m_root( NULL ), m_target( NULL ), m_function( NULL ) {} 00087 00088 FieldRelation( const FieldRelation & rhs ) 00089 : m_root( rhs.m_root ), 00090 m_target( rhs.m_target ), 00091 m_function( rhs.m_function ) {} 00092 00093 FieldRelation & operator = ( const FieldRelation & rhs ) 00094 { 00095 m_root = rhs.m_root ; 00096 m_target = rhs.m_target ; 00097 m_function = rhs.m_function ; 00098 return *this ; 00099 } 00100 00101 #endif /* DOXYGEN_COMPILE */ 00102 }; 00103 00104 } // namespace mesh 00105 } // namespace stk_classic 00106 00107 #endif //stk_mesh_FieldRelation_hpp