40 if (isA<Type>(*iter()))
42 objectNames[count++] = iter()->name();
46 objectNames.setSize(count);
58 for (const_iterator iter = begin(); iter != end(); ++iter)
60 if (isA<Type>(*iter()))
65 dynamic_cast<const Type*>(iter())
70 return objectsOfClass;
77 const_iterator iter = find(name);
81 const Type* vpsiPtr_ =
dynamic_cast<const Type*
>(iter());
94 if (&parent_ != dynamic_cast<const objectRegistry*>(&time_))
96 return parent_.foundObject<Type>(
name);
109 const_iterator iter = find(name);
113 const Type* vpsiPtr_ =
dynamic_cast<const Type*
>(iter());
120 FatalErrorIn(
"objectRegistry::lookupObject<Type>(const word&) const")
122 <<
" lookup of " << name <<
" from objectRegistry "
124 <<
" successful\n but it is not a " << Type::typeName
125 <<
", it is a " << iter()->type()
130 if (&parent_ != dynamic_cast<const objectRegistry*>(&time_))
132 return parent_.lookupObject<Type>(
name);
138 "objectRegistry::lookupObject<Type>(const word&) const"
140 <<
" request for " << Type::typeName
141 <<
" " << name <<
" from objectRegistry " << this->
name()
142 <<
" failed\n available objects of type " << Type::typeName
149 return *
reinterpret_cast< const Type*
>(0);