Sierra Toolkit Version of the Day
FieldRelation.hpp
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 {
00014 namespace mesh {
00015 
00016 class FieldBase;
00017 
00018 //----------------------------------------------------------------------
00050 struct FieldRelation {
00052   FieldBase          * m_root ;
00053 
00055   FieldBase          * m_target ;
00056 
00058   relation_stencil_ptr m_function ;
00059 
00060 #ifndef DOXYGEN_COMPILE
00061 
00062   FieldRelation() : m_root( NULL ), m_target( NULL ), m_function( NULL ) {}
00063 
00064   FieldRelation( const FieldRelation & rhs )
00065     : m_root( rhs.m_root ),
00066       m_target( rhs.m_target ),
00067       m_function( rhs.m_function ) {}
00068 
00069   FieldRelation & operator = ( const FieldRelation & rhs )
00070     {
00071       m_root = rhs.m_root ;
00072       m_target = rhs.m_target ;
00073       m_function = rhs.m_function ;
00074       return *this ;
00075     }
00076 
00077 #endif /* DOXYGEN_COMPILE */
00078 };
00079 
00080 } // namespace mesh
00081 } // namespace stk
00082 
00083 
00084 #endif //stk_mesh_FieldRelation_hpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends