|
Go to the documentation of this file.
26 #ifndef FAUDES_INDEXSET_H
27 #define FAUDES_INDEXSET_H
46 template< class Attr> class TaIndexSet;
119 IndexSet( const std::string& rFilename, const std::string& rLabel = "");
132 Idx MaxIndex( void) const;
141 bool Valid( const Idx& rIndex) const;
164 bool Insert( const Idx& rIndex);
198 void DoAssign( const IndexSet& rSource);
228 virtual void DoWrite( TokenWriter& tw, const std::string& rLabel= "", const Type* pContext=0) const;
244 virtual void DoXWrite( TokenWriter& tw, const std::string& rLabel= "", const Type* pContext=0) const;
266 virtual void DoRead( TokenReader& rTr, const std::string& rLabel= "", const Type* pContext=0);
357 TaIndexSet( const std::string& rFilename, const std::string& rLabel = "");
385 using IndexSet::Iterator;
428 bool Insert( const Idx& rIndex, const Attr& attr);
474 IndexSet::Iterator Erase( const Iterator& pos);
551 #define TaStateSet TaIndexSet
578 FD_DC( "TaIndexSet(" << this << ")::TaIndexSet()");
587 FD_DC( "TaIndexSet(" << this << ")::TaIndexSet(rOtherSet " << &rOtherSet << ")");
598 FD_DC( "TaIndexSet(" << this << ")::TaIndexSet(rOtherSet " << &rOtherSet << ")");
610 FD_DC( "TaIndexSet(" << this << ")::TaIndexSet(" << rFilename << ")");
611 Read(rFilename, rLabel);
618 FD_DC( "TaIndexSet(" << this << ")::DoAssign( [a] " << &rSourceSet<< ")");
626 FD_DC( "TaIndexSet(" << this << ")::Assign([v] " << &rSourceSet<< ")");
627 FD_DC( "TaIndexSet(" << this << ")::Assign(): src type " << typeid(rSourceSet).name());
628 FD_DC( "TaIndexSet(" << this << ")::Assign(): dst type " << typeid(*this).name());
629 #ifdef FAUDES_CHECKED
632 std::stringstream errstr;
633 errstr << "cannot cast to indexset" << std::endl;
634 throw Exception( "TaIndexSet::InsertSet", errstr.str(), 67);
648 FD_DC( "TaIndexSet(" << this << ")::Insert()");
649 Idx index=MaxIndex()+1;
657 FD_DC( "TaIndexSet(" << this << ")::Insert("<< rIndex << ")");
664 FD_DC( "TaIndexSet(" << this << ")::Insert(" << attr.ToString() << ")");
665 Idx index = Insert();
666 if(!attr.IsDefault()) {
675 FD_DC( "TaIndexSet(" << this << ")::Insert("<< rIndex << ",attr)");
683 FD_DC( "TaIndexSet(" << this << ")::InsertSet(" << &rOtherSet << ")");
690 #ifdef FAUDES_CHECKED
691 FD_DC( "TaIndexSet(" << this << ")::InsertSet(" << rOtherSet. ToString() << ")");
694 std::stringstream errstr;
695 errstr << "cannot cast to indexset" << std::endl;
696 throw Exception( "TaIndexSet::InsertSet", errstr.str(), 67);
718 FD_DC( "TaIndexSet(" << this << ")::EraseSet(" << rOtherSet. ToString() << ")");
725 #ifdef FAUDES_CHECKED
726 FD_DC( "TaIndexSet(" << this << ")::EraseSet(" << rOtherSet. ToString() << ")");
729 std::stringstream errstr;
730 errstr << "cannot cast to indexset" << std::endl;
731 throw Exception( "TaIndexSet::EraseSet", errstr.str(), 67);
740 FD_DC( "TaIndexSet(" << this << ")::RestrictSet(" << rOtherSet. ToString() << ")");
747 #ifdef FAUDES_CHECKED
748 FD_DC( "TaIndexSet(" << this << ")::RestrictSet(" << rOtherSet. ToString() << ")");
751 std::stringstream errstr;
752 errstr << "cannot cast to indexset" << std::endl;
753 throw Exception( "TaIndexSet::RestrictSet", errstr.str(), 67);
libFAUDES 2.28a
--- 2016.09.13
--- c++ api documentaion by doxygen
|