76 if (
operator[](i).keyword() == key)
106 if (key ==
operator[](i).keyword())
108 indices[nFound++] = i;
129 <<
"Cannot insert with key '" << key <<
"' into hash-table"
154 return append(key,
const_cast<tmp<T>&
>(t).ptr());
161 append(ptr->keyword(), ptr);
168 append(aptr->keyword(), aptr);
175 append(t->keyword(), t);
195 <<
"Cannot set with key '" << key <<
"' into hash-table"
211 return set(i, key,
const_cast<autoPtr<T>&
>(aptr).ptr());
223 return set(i, key,
const_cast<tmp<T>&
>(t).ptr());
234 return set(i, ptr->keyword(), ptr);
245 return set(i, aptr->keyword(), aptr);
256 return set(i, t->keyword(), t);
271 this->
operator()(i)->keyword(),
272 dynamic_cast<T2*
>(this->
operator()(i))
#define forAll(list, i)
Loop across all elements in list.
Base dictionary class templated on both the form of doubly-linked list it uses as well as the type it...
A helper class when constructing from an Istream or dictionary.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void setSize(const label)
Reset size of List.
Template dictionary class which manages the storage associated with it.
UPtrListDictionary< T2 > convert()
Convert to list of different pointer type.
List< label > findIndices(const wordRe &key) const
Return the indices for all matches.
void append(const word &key, T *)
Append an element at the end of the list.
autoPtr< T > set(const label, const word &key, T *)
Set element to pointer provided and return old element.
label findIndex(const word &key) const
Return the index of the given the key or -1 if not found.
PtrListDictionary(const label size)
Construct given initial list size.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
bool set(const label) const
Is element set.
void append(T *)
Append an element at the end of the list.
void setSize(const label)
Reset size of PtrList. If extending the PtrList, new entries are.
Template dictionary class which manages the storage associated with it.
bool set(const label) const
Is element set.
label size() const
Return the number of elements in the UPtrList.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A class for managing temporary objects.
A wordRe is a word, but can also have a regular expression for matching words.
static bool isPattern(const string &)
Test string for regular expression meta characters.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
bool findStrings(const wordReListMatcher &matcher, const std::string &str)
Return true if string matches one of the regular expressions.
errorManip< error > abort(error &err)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)