|
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_Field_hpp 00011 #define stk_mesh_Field_hpp 00012 00013 //---------------------------------------------------------------------- 00014 00015 #include <stk_mesh/base/FieldBase.hpp> 00016 #include <stk_mesh/base/FieldRelation.hpp> 00017 #include <stk_mesh/base/FieldTraits.hpp> 00018 00019 //---------------------------------------------------------------------- 00020 00021 namespace stk { 00022 namespace mesh { 00023 00027 template< typename Scalar , class Tag1 , class Tag2 , class Tag3 , class Tag4 , 00028 class Tag5 , class Tag6 , class Tag7 > 00029 class Field : public FieldBase { 00030 public: 00031 00033 Field & field_of_state( FieldState state ) const { 00034 return static_cast<Field &>( * FieldBase::field_state(state) ); 00035 } 00036 00037 private: 00038 00039 #ifndef DOXYGEN_COMPILE 00040 00041 ~Field(); 00042 Field(); 00043 Field( const Field & ); 00044 Field & operator = ( const Field & ); 00045 00046 #endif /* DOXYGEN_COMPILE */ 00047 }; 00048 00049 00050 } // namespace mesh 00051 } // namespace stk 00052 00053 00054 #endif /* stk_mesh_Field_hpp */ 00055