00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 #ifndef PHX_FIELDTAG_TAG_HPP
00033 #define PHX_FIELDTAG_TAG_HPP
00034
00035 #include "Phalanx_ConfigDefs.hpp"
00036 #include "Phalanx_FieldTag.hpp"
00037 #include "Phalanx_DataLayout.hpp"
00038
00039 namespace PHX {
00040
00048 template<typename DataT>
00049 class Tag : public PHX::FieldTag {
00050
00051 public:
00052
00053 typedef DataT value_type;
00054
00055 Tag(const std::string& name, const Teuchos::RCP<PHX::DataLayout>& dl);
00056
00057 ~Tag();
00058
00059 Teuchos::RCP<FieldTag> clone() const;
00060
00061 void operator=(const PHX::Tag<DataT>& t);
00062
00063 bool operator==(const FieldTag& t) const;
00064
00065 const std::string& name() const;
00066
00067 const PHX::DataLayout& dataLayout() const;
00068
00069 const std::type_info& dataTypeInfo() const;
00070
00071 const std::string identifier() const;
00072
00073 void print(std::ostream& os) const;
00074
00075 protected:
00076
00077 std::string m_name;
00078
00079 Teuchos::RCP<PHX::DataLayout> m_data_layout;
00080
00081 };
00082
00083 template<typename DataT>
00084 std::ostream& operator<<(std::ostream& os, const PHX::Tag<DataT>& t);
00085
00086 }
00087
00088 #include "Phalanx_FieldTag_Tag_Def.hpp"
00089
00090 #endif