|
Go to the documentation of this file.
56 FD_DC( "IndexSet(" << this << ")::IndexSet()");
64 FD_DC( "IndexSet(" << this << ")::IndexSet(rOtherSet " << &rOtherSet << ")");
72 FD_DC( "IndexSet(" << this << ")::IndexSet(rOtherSet " << &rOtherSet << ")");
80 FD_DC( "IndexSet(" << this << ")::IndexSet(" << rFilename << ")");
81 Read(rFilename, rLabel);
86 FD_DC( "NameSet(" << this << ")::DoAssign(..)");
94 std::string label=rLabel;
95 if(label== "") label= Name();
96 if(label== "") label= "IndexSet";
97 FD_DC( "IndexSet(" << this << ")::DoWrite(..): section " << label);
112 for (it = Begin(); it != End(); ++it) {
116 for(conit=it; conit != End(); ++conit) {
118 if(*conit != start+anoncount) break;
125 rTw << start+anoncount-1;
136 attr. Write(rTw, "",pContext);
146 FD_DC( "IndexSet(" << this << ")::DoXWrite(..): section " << btag. StringValue() << " #" << Size());
162 for(it = Begin(); it != End(); ++it) {
166 for(conit=it; conit != End(); ++conit) {
168 if(*conit != start+anoncount) break;
181 if(it == End()) break;
200 std::string label=rLabel;
209 if(label== "") label= "IndexSet";
212 FD_DC( "IndexSet(" << this << ")::DoRead(..): section " << label);
218 FD_DC( "IndexSet(" << this << ")::DoRead(..): attribute type " << typeid(*attrp).name());
220 while(!rTr. Eos(label)) {
224 FD_DC( "TaIndexSet(" << this << ")::DoRead(..): inserting element in faudes format \""
229 attrp-> Read(rTr, "",pContext);
238 if(token. IsBegin( "Consecutive")) {
244 if(!token1. IsEnd()) rTr. Get(token1);
246 if(!token2. IsEnd()) rTr. Get(token2);
258 if(from<0 || to <0 || to < from) {
260 std::stringstream errstr;
261 errstr << "Invalid range of consecutive indices" << rTr. FileLine();
262 throw Exception( "IndexSet::DoRead", errstr.str(), 50);
264 FD_DC( "IndexSet(" << this << ")::DoRead(..): inserting range "
265 << from << " to " << to);
266 for( Idx index = ( Idx) from; index <= ( Idx) to; ++index)
272 FD_DC( "TaIndexSet(" << this << ")::DoRead(..): inserting element in xml format \""
277 attrp-> Read(rTr, "",pContext);
287 std::stringstream errstr;
288 errstr << "Invalid token type " << token. Type() << " at " << rTr. FileLine();
289 throw Exception( "IndexSet::DoRead", errstr.str(), 50);
299 if( Size()==0) return 0;
301 #ifdef FAUDES_CHECKED
303 std::stringstream errstr;
304 errstr << "IndexSet(): MaxIndex exceeds platform limitations -- reimplement index allocation: \""
306 throw Exception( "vGenerator::EventReame(name)", errstr.str(), 61);
314 FD_DC( "IndexSet(" << this << ")::Insert()");
317 FD_DC( "IndexSet(" << this << ")::Insert(): done");
323 FD_DC( "IndexSet(" << this << ")::Insert(idx)");
340 Iterator it= Begin() ;
341 Iterator it_end= End() ;
343 for(; it != it_end; ++it) {
libFAUDES 2.28a
--- 2016.09.13
--- c++ api documentaion by doxygen
|