Go to the documentation of this file.
39 if (isA<Type>(*iter()))
41 objectNames[count++] = iter()->name();
59 if (isA<Type>(*iter()))
61 const word& objectName = iter()->name();
65 objectNames[count++] = objectName;
97 (strict && isType<Type>(*iter()))
98 || (!strict && isA<Type>(*iter()))
104 dynamic_cast<const Type*
>(iter())
109 return objectsOfClass;
125 (strict && isType<Type>(*iter()))
126 || (!strict && isA<Type>(*iter()))
132 dynamic_cast<Type*
>(iter())
137 return objectsOfClass;
144 const_iterator iter = find(
name);
148 const Type* vpsiPtr_ =
dynamic_cast<const Type*
>(iter());
155 else if (this->parentNotTime())
157 return parent_.foundObject<Type>(
name);
167 const_iterator iter = find(
name);
171 const Type* vpsiPtr_ =
dynamic_cast<const Type*
>(iter());
180 <<
" lookup of " <<
name <<
" from objectRegistry "
182 <<
" successful\n but it is not a " << Type::typeName
183 <<
", it is a " << iter()->type()
188 if (this->parentNotTime())
190 return parent_.lookupObject<Type>(
name);
195 <<
" request for " << Type::typeName
196 <<
" " <<
name <<
" from objectRegistry " << this->
name()
197 <<
" failed\n available objects of type " << Type::typeName
203 return NullObjectRef<Type>();
212 const Type& ref = this->lookupObject<Type>(
name);
215 return const_cast<Type&
>(ref);
A class for handling words, derived from string.
#define forAllIter(Container, container, iter)
Iterate across all elements in the container object of type.
bool insert(const Key &, const T &newElmt)
Insert a new hashedEntry.
A wordRe is a word, but can also have a regular expression for matching words.
bool match(const std::string &) const
True when strings match literally.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
List< word > wordList
A List of words.
HashTable< const Type * > lookupClass(const bool strict=false) const
Lookup and return all objects of the given Type.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
label size() const
Return number of elements in table.
errorManip< error > abort(error &err)
Type & lookupObjectRef(const word &name) const
void setSize(const label)
Reset size of List.
bool findStrings(const wordReListMatcher &matcher, const std::string &str)
Return true if string matches one of the regular expressions.
bool foundObject(const word &name) const
Is the named Type found?
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
wordList names() const
Return the list of names of the IOobjects.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Operations on lists of strings.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
word name(const complex &)
Return a string representation of a complex.