34 template<
class MatchPredicate>
38 const MatchPredicate& matchName
46 const word& key = iter.key();
61 template<
class MatchPredicate1,
class MatchPredicate2>
62 Foam::label Foam::IOobjectList::countImpl
65 const MatchPredicate1& matchClass,
66 const MatchPredicate2& matchName
86 template<
class Type,
class MatchPredicate>
87 Foam::label Foam::IOobjectList::countTypeImpl
90 const MatchPredicate& matchName
110 template<
class MatchPredicate1,
class MatchPredicate2>
114 const MatchPredicate1& matchClass,
115 const MatchPredicate2& matchName,
124 const word& key = iter.key();
129 objNames[
count] = key;
134 objNames.resize(
count);
146 template<
class Type,
class MatchPredicate>
150 const MatchPredicate& matchName,
159 const word& key = iter.key();
164 objNames[
count] = key;
169 objNames.resize(
count);
181 template<
class MatchPredicate>
185 const MatchPredicate& matchName
192 const word& key = iter.key();
202 results.set(key,
new IOobject(*io));
211 template<
class MatchPredicate1,
class MatchPredicate2>
215 const MatchPredicate1& matchClass,
216 const MatchPredicate2& matchName
223 const word& key = iter.key();
233 results.set(key,
new IOobject(*io));
242 template<
class Type,
class MatchPredicate>
246 const MatchPredicate& matchName
253 const word& key = iter.key();
263 results.set(key,
new IOobject(*io));
297 <<
"Found " << objName <<
" of different type" <<
endl;
315 return cfindObject<Type>(objName);
322 return const_cast<IOobject*
>(cfindObject<Type>(objName));
329 return const_cast<IOobject*
>(cfindObject<Type>(objName));
333 template<
class MatchPredicate>
336 const MatchPredicate& matchName
339 return lookupImpl(*
this, matchName);
343 template<
class MatchPredicate>
346 const MatchPredicate& matchClass
353 template<
class MatchPredicate1,
class MatchPredicate2>
356 const MatchPredicate1& matchClass,
357 const MatchPredicate2& matchName
360 return lookupClassImpl(*
this, matchClass, matchName);
371 template<
class Type,
class MatchPredicate>
374 const MatchPredicate& matchName
377 return lookupClassImpl<Type>(*
this, matchName);
381 template<
class MatchPredicate>
385 const MatchPredicate& matchName
388 return classesImpl(*
this, matchName);
392 template<
class MatchPredicate>
395 const MatchPredicate& matchClass
402 template<
class MatchPredicate1,
class MatchPredicate2>
405 const MatchPredicate1& matchClass,
406 const MatchPredicate2& matchName
409 return countImpl(*
this, matchClass, matchName);
420 template<
class Type,
class MatchPredicate>
423 const MatchPredicate& matchName
426 return countTypeImpl<Type>(*
this, matchName);
432 template<
class MatchPredicate>
435 const MatchPredicate& matchClass
442 template<
class MatchPredicate>
445 const MatchPredicate& matchClass,
454 checkNames(objNames, syncPar);
459 template<
class MatchPredicate1,
class MatchPredicate2>
462 const MatchPredicate1& matchClass,
463 const MatchPredicate2& matchName
466 return namesImpl(*
this, matchClass, matchName,
false);
470 template<
class MatchPredicate1,
class MatchPredicate2>
473 const MatchPredicate1& matchClass,
474 const MatchPredicate2& matchName,
480 checkNames(objNames, syncPar);
497 checkNames(objNames, syncPar);
502 template<
class Type,
class MatchPredicate>
505 const MatchPredicate& matchName
508 return namesTypeImpl<Type>(*
this, matchName,
false);
512 template<
class Type,
class MatchPredicate>
515 const MatchPredicate& matchName,
519 wordList objNames(namesTypeImpl<Type>(*
this, matchName,
false));
521 checkNames(objNames, syncPar);
528 template<
class MatchPredicate>
531 const MatchPredicate& matchClass
538 template<
class MatchPredicate>
541 const MatchPredicate& matchClass,
550 checkNames(objNames, syncPar);
555 template<
class MatchPredicate1,
class MatchPredicate2>
558 const MatchPredicate1& matchClass,
559 const MatchPredicate2& matchName
562 return namesImpl(*
this, matchClass, matchName,
true);
565 template<
class MatchPredicate1,
class MatchPredicate2>
568 const MatchPredicate1& matchClass,
569 const MatchPredicate2& matchName,
575 checkNames(objNames, syncPar);
592 checkNames(objNames, syncPar);
597 template<
class Type,
class MatchPredicate>
600 const MatchPredicate& matchName
603 return namesTypeImpl<Type>(*
this, matchName,
true);
607 template<
class Type,
class MatchPredicate>
610 const MatchPredicate& matchName,
614 return namesTypeImpl<Type>(*
this, matchName,
true, syncPar);
620 template<
class UnaryPredicate>
623 const UnaryPredicate& pred,
645 (pred(iter.val()->headerClassName()) ? pruning : !pruning)
657 template<
class UnaryPredicate>
660 const UnaryPredicate& pred,
678 (pred(iter.key()) ? pruning : !pruning)