|
Go to the documentation of this file.
23 #ifndef FAUDES_NAMESET_H
24 #define FAUDES_NAMESET_H
39 template< class Attr> class TaNameSet;
108 NameSet( const std::string& rFilename, const std::string& rLabel = "");
190 virtual bool Erase( const Idx& rIndex);
202 virtual bool Erase( const std::string& rName);
214 virtual NameSet::Iterator Erase( const Iterator& pos);
266 void SymbolicName( const std::string& rName, const std::string& rNewName);
288 Idx Index( const std::string& rName) const;
310 bool Exists( const std::string& rName) const;
322 NameSet::Iterator Find( const Idx& rIndex) const;
334 NameSet::Iterator Find( const std::string& rName) const;
402 std::string Str( const Idx& rIndex) const;
587 TaNameSet(const std:: string& rFilename, const std:: string& rLabel = "");
623 using NameSet::Iterator;
654 bool Insert( const Idx& rIndex, const Attr& rAttr);
685 Idx Insert( const std::string& rName, const Attr& rAttr);
716 virtual bool Erase( const Idx& rIndex);
728 virtual bool Erase( const std::string& rName);
740 virtual typename NameSet::Iterator Erase( const Iterator& pos);
818 std::string Str( const Idx& rIndex) const;
850 #define TaEventSet TaNameSet
876 FD_DC( "TaNameSet(" << this << ")::TaNameSet()");
878 this->Name( "NameSet");
888 FD_DC( "TaNameSet(" << this << ")::TaNameSet(rOtherSet " << &rOtherSet << ")");
900 FD_DC( "TaNameSet(" << this << ")::TaNameSet(rOtherSet " << &rOtherSet << ")");
912 FD_DC( "TaNameSet(" << this << ")::TaNameSet(" << rFilename << ")");
914 Read(rFilename, rLabel);
936 FD_DC( "TaNameSet(" << this << ")::DoAssign( [a] " << &rSourceSet << ")");
946 FD_DC( "TaNAMESet::DoEqual()");
956 FD_DC( "TaNameSet(" << this << ")::Assign( [v] " << &rSourceSet << ")");
968 #ifdef FAUDES_CHECKED
969 if(!mpSymbolTable->Exists(rIndex)) {
970 std::stringstream errstr;
971 errstr << "index " << rIndex << " has no symbolic name" << std::endl;
972 throw Exception( "TaNameSet::Insert", errstr.str(), 65);
982 #ifdef FAUDES_CHECKED
983 if(!mpSymbolTable->Exists(rIndex)) {
984 std::stringstream errstr;
985 errstr << "index " << rIndex << " has no symbolic name" << std::endl;
986 throw Exception( "TaNameSet::Insert", errstr.str(), 65);
996 FD_DC( "TaNameSet(" << this << ")::Insert(" << rName << ")");
1002 template< class Attr>
1004 FD_DC( "TaNameSet(" << this << ")::Insert(" << rName << ")");
1011 template< class Attr>
1013 FD_DC( "TaNameSet(" << this << ")::InsertSet(" << rOtherSet. ToString() << ")");
1014 #ifdef FAUDES_CHECKED
1016 std::stringstream errstr;
1017 errstr << "symboltable mismach aka not implemented" << std::endl;
1018 throw Exception( "TaNameSet::InsertSet", errstr.str(), 67);
1025 template< class Attr>
1027 FD_DC( "TaNameSet(" << this << ")::InsertSet(" << rOtherSet. ToString() << ")");
1028 #ifdef FAUDES_CHECKED
1030 std::stringstream errstr;
1031 errstr << "symboltable mismach aka not implemented" << std::endl;
1032 throw Exception( "TaNameSet::InsertSet", errstr.str(), 200);
1039 template< class Attr>
1041 FD_DC( "TaNameSet(" << this << ")::Erase(" << rIndex << ")");
1046 template< class Attr>
1048 FD_DC( "TaNameSet(" << this << ")::Erase(" << rName << ")");
1049 Idx index = mpSymbolTable->Index(rName);
1050 #ifdef FAUDES_CHECKED
1052 std::stringstream errstr;
1053 errstr << "name \"" << rName << "\" not found in TaNameSet" << std::endl;
1054 throw Exception( "TaNameSet::Erase", errstr.str(), 60);
1061 template< class Attr>
1067 template< class Attr>
1069 FD_DC( "TaNameSet(" << this << ")::EraseSet(" << rOtherSet. ToString() << ")");
1070 #ifdef FAUDES_CHECKED
1072 std::stringstream errstr;
1073 errstr << "symboltable mismach aka not implemented" << std::endl;
1074 throw Exception( "TaNameSet::EraseSet", errstr.str(), 67);
1081 template< class Attr>
1083 FD_DC( "TaNameSet(" << this << ")::EraseSet(" << rOtherSet. ToString() << ")");
1084 #ifdef FAUDES_CHECKED
1086 std::stringstream errstr;
1087 errstr << "symboltable mismatch aka not implemented" << std::endl;
1088 throw Exception( "TaNameSet::EraseSet", errstr.str(), 67);
1095 template< class Attr>
1097 FD_DC( "TaNameSet(" << this << ")::RestrictSet(" << rOtherSet. ToString() << ")");
1098 #ifdef FAUDES_CHECKED
1100 std::stringstream errstr;
1101 errstr << "symboltable mismach aka not implemented" << std::endl;
1102 throw Exception( "TaNameSet::RestrictSet", errstr.str(), 67);
1109 template< class Attr>
1111 FD_DC( "TaNameSet(" << this << ")::RestrictSet(" << rOtherSet. ToString() << ")");
1112 #ifdef FAUDES_CHECKED
1114 std::stringstream errstr;
1115 errstr << "symboltable mismatch aka not implemented" << std::endl;
1116 throw Exception( "TaNameSet::RestrictSet", errstr.str(), 67);
1123 template< class Attr>
1125 FD_DC( "TaNameSet(" << this << ")::Attributes(set) with type " << typeid(rOtherSet. Attribute()).name());
1126 #ifdef FAUDES_CHECKED
1128 std::stringstream errstr;
1129 errstr << "symboltable mismatch aka not implemented" << std::endl;
1130 throw Exception( "TaNameSet::Attributes", errstr.str(), 67);
1137 template< class Attr>
1139 FD_DC( "TaNameSet(" << this << ")::Attributes(set) with type " << typeid(rOtherSet. Attribute()).name());
1140 #ifdef FAUDES_CHECKED
1142 std::stringstream errstr;
1143 errstr << "symboltable mismatch aka not implemented" << std::endl;
1144 throw Exception( "TaNameSet::Attributes", errstr.str(), 67);
1152 template< class Attr>
libFAUDES 2.26g
--- 2015.08.17
--- c++ api documentaion by doxygen
|