|
Sierra Toolkit
Version of the Day
|
00001 #ifndef stk_mesh_PartRelation_hpp 00002 #define stk_mesh_PartRelation_hpp 00003 00004 #include <stk_mesh/base/Types.hpp> 00005 00006 namespace stk_classic { 00007 namespace mesh { 00008 00009 class Part; 00010 00015 //---------------------------------------------------------------------- 00033 struct PartRelation { 00035 Part * m_root ; 00036 00038 Part * m_target ; 00039 00041 relation_stencil_ptr m_function ; 00042 00043 #ifndef DOXYGEN_COMPILE 00044 00045 ~PartRelation() {} 00046 00047 PartRelation() : m_root( NULL ), m_target( NULL ), m_function( NULL ) {} 00048 00049 PartRelation( const PartRelation & rhs ) 00050 : m_root( rhs.m_root ), 00051 m_target( rhs.m_target ), 00052 m_function( rhs.m_function ) {} 00053 00054 PartRelation & operator = ( const PartRelation & rhs ) 00055 { 00056 m_root = rhs.m_root ; 00057 m_target = rhs.m_target ; 00058 m_function = rhs.m_function ; 00059 return *this ; 00060 } 00061 00062 #endif /* DOXYGEN_COMPILE */ 00063 00064 }; 00065 00068 } // namespace mesh 00069 } // namespace stk_classic 00070 00071 #endif // stk_mesh_PartRelation_hpp