IOobjectList Class Reference

List of IOobjects with searching and retrieving facilities. More...

Inheritance diagram for IOobjectList:
[legend]
Collaboration diagram for IOobjectList:
[legend]

Public Member Functions

 IOobjectList ()
 Construct null with default (128) table capacity. More...
 
 IOobjectList (const label nObjects)
 Construct given initial table capacity. More...
 
 IOobjectList (const IOobjectList &list)
 Copy construct. More...
 
 IOobjectList (IOobjectList &&list)
 Move construct. More...
 
 IOobjectList (const objectRegistry &db, const fileName &instance, const fileName &local="", IOobject::readOption rOpt=IOobject::MUST_READ, IOobject::writeOption wOpt=IOobject::NO_WRITE, bool registerObject=true)
 Construct from objectRegistry and instance path. More...
 
 ~IOobjectList ()=default
 Destructor. More...
 
bool add (autoPtr< IOobject > &objectPtr)
 Add IOobject to the list. More...
 
bool add (autoPtr< IOobject > &&objectPtr)
 Add IOobject to the list. More...
 
label append (const IOobjectList &other)
 
label append (IOobjectList &&other)
 
bool remove (const IOobject &io)
 Remove IOobject from the list. More...
 
const IOobjectcfindObject (const word &objName) const
 Return const pointer to the object found by name. More...
 
template<class Type >
const IOobjectcfindObject (const word &objName) const
 
const IOobjectfindObject (const word &objName) const
 Return const pointer to the object found by name. More...
 
template<class Type >
const IOobjectfindObject (const word &objName) const
 
IOobjectfindObject (const word &objName)
 Return non-const pointer to the object found by name. More...
 
template<class Type >
IOobjectfindObject (const word &objName)
 
IOobjectgetObject (const word &objName) const
 
template<class Type >
IOobjectgetObject (const word &objName) const
 
template<class MatchPredicate >
IOobjectList lookup (const MatchPredicate &matchName) const
 The list of IOobjects that have a matching object name. More...
 
IOobjectList lookupClass (const char *clsName) const
 The list of IOobjects with the given headerClassName. More...
 
template<class MatchPredicate >
IOobjectList lookupClass (const MatchPredicate &matchClass) const
 The list of IOobjects with matching headerClassName. More...
 
template<class MatchPredicate1 , class MatchPredicate2 >
IOobjectList lookupClass (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) const
 
template<class Type >
IOobjectList lookupClass () const
 The list of IOobjects with headerClassName == Type::typeName. More...
 
template<class Type , class MatchPredicate >
IOobjectList lookupClass (const MatchPredicate &matchName) const
 
HashTable< wordHashSetclasses () const
 A summary hash of classes used and their associated object names. More...
 
template<class MatchPredicate >
HashTable< wordHashSetclasses (const MatchPredicate &matchName) const
 
UPtrList< const IOobjectsorted () const
 The sorted list of IOobjects. More...
 
UPtrList< const IOobjectsorted (const bool syncPar) const
 
template<class Type >
UPtrList< const IOobjectsorted () const
 The sorted list of IOobjects with headerClassName == Type::typeName. More...
 
template<class Type >
UPtrList< const IOobjectsorted (const bool syncPar) const
 
template<class Type , class MatchPredicate >
UPtrList< const IOobjectsorted (const MatchPredicate &matchName) const
 
template<class Type , class MatchPredicate >
UPtrList< const IOobjectsorted (const MatchPredicate &matchName, const bool syncPar) const
 
label count (const char *clsName) const
 The number of objects of the given headerClassName. More...
 
template<class MatchPredicate >
label count (const MatchPredicate &matchClass) const
 The number of objects of the given headerClassName. More...
 
template<class MatchPredicate1 , class MatchPredicate2 >
label count (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) const
 
template<class Type >
label count () const
 The number of objects with headerClassName == Type::typeName. More...
 
template<class Type , class MatchPredicate >
label count (const MatchPredicate &matchName) const
 
wordList names () const
 The unsorted names of the IOobjects. More...
 
wordList names (const bool syncPar) const
 
wordList names (const char *clsName) const
 The unsorted names of IOobjects with the given headerClassName. More...
 
wordList names (const char *clsName, const bool syncPar) const
 The sorted names of the IOobjects with the given headerClassName. More...
 
template<class MatchPredicate >
wordList names (const MatchPredicate &matchClass) const
 The unsorted names of IOobjects with the given headerClassName. More...
 
template<class MatchPredicate >
wordList names (const MatchPredicate &matchClass, const bool syncPar) const
 The sorted names of the IOobjects with the given headerClassName. More...
 
template<class MatchPredicate1 , class MatchPredicate2 >
wordList names (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) const
 
template<class MatchPredicate1 , class MatchPredicate2 >
wordList names (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName, const bool syncPar) const
 
template<class Type >
wordList names () const
 
template<class Type >
wordList names (bool syncPar) const
 
template<class Type , class MatchPredicate >
wordList names (const MatchPredicate &matchName) const
 
template<class Type , class MatchPredicate >
wordList names (const MatchPredicate &matchName, const bool syncPar) const
 
wordList sortedNames () const
 The sorted names of the IOobjects. More...
 
wordList sortedNames (const bool syncPar) const
 
wordList sortedNames (const char *clsName) const
 The sorted names of IOobjects with the given headerClassName. More...
 
wordList sortedNames (const char *clsName, const bool syncPar) const
 The sorted names of the IOobjects with the given headerClassName. More...
 
template<class MatchPredicate >
wordList sortedNames (const MatchPredicate &matchClass) const
 The sorted names of IOobjects with the given headerClassName. More...
 
template<class MatchPredicate >
wordList sortedNames (const MatchPredicate &matchClass, const bool syncPar) const
 The sorted names of the IOobjects with the given headerClassName. More...
 
template<class MatchPredicate1 , class MatchPredicate2 >
wordList sortedNames (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) const
 
template<class MatchPredicate1 , class MatchPredicate2 >
wordList sortedNames (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName, const bool syncPar) const
 
template<class Type >
wordList sortedNames () const
 The sorted names of objects with headerClassName == Type::typeName. More...
 
template<class Type >
wordList sortedNames (bool syncPar) const
 The sorted names of objects with headerClassName == Type::typeName. More...
 
template<class Type , class MatchPredicate >
wordList sortedNames (const MatchPredicate &matchName) const
 
template<class Type , class MatchPredicate >
wordList sortedNames (const MatchPredicate &matchName, const bool syncPar) const
 
template<class UnaryPredicate >
label filterClasses (const UnaryPredicate &pred, const bool pruning=false)
 Filter to retain or prune given classes. More...
 
template<class UnaryPredicate >
label filterObjects (const UnaryPredicate &pred, const bool pruning=false)
 Filter to retain or prune given object names. More...
 
label prune_0 ()
 Remove objects with names ending with "_0" (restart fields) More...
 
wordList allNames () const
 The sorted names of all objects (synchronised across processors) More...
 
template<class Type >
wordList allNames () const
 
void checkNames (const bool syncPar=true) const
 Verify that object names are synchronised across processors. More...
 
void operator= (const IOobjectList &)=delete
 No copy assignment. More...
 
void operator= (IOobjectList &&list)
 Move assignment. More...
 
IOobjectlookup (const char *objName) const
 
IOobjectlookup (const word &objName) const
 
template<class MatchPredicate >
Foam::HashTable< Foam::wordHashSetclassesImpl (const IOobjectList &list, const MatchPredicate &matchName)
 
template<class MatchPredicate1 , class MatchPredicate2 >
Foam::label countImpl (const IOobjectList &list, const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName)
 
template<class Type , class MatchPredicate >
Foam::label countTypeImpl (const IOobjectList &list, const MatchPredicate &matchName)
 
template<class MatchPredicate1 , class MatchPredicate2 >
Foam::wordList namesImpl (const IOobjectList &list, const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName, const bool doSort)
 
template<class Type , class MatchPredicate >
Foam::wordList namesTypeImpl (const IOobjectList &list, const MatchPredicate &matchName, const bool doSort)
 
template<class Type , class MatchPredicate >
Foam::UPtrList< const Foam::IOobjectobjectsTypeImpl (const IOobjectList &list, const MatchPredicate &matchName)
 
template<class MatchPredicate >
Foam::IOobjectList lookupImpl (const IOobjectList &list, const MatchPredicate &matchName)
 
template<class MatchPredicate1 , class MatchPredicate2 >
Foam::IOobjectList lookupClassImpl (const IOobjectList &list, const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName)
 
template<class Type , class MatchPredicate >
Foam::IOobjectList lookupClassTypeImpl (const IOobjectList &list, const MatchPredicate &matchName)
 
template<class Type >
const Foam::IOobjectcfindObject (const word &objName) const
 
template<class Type >
const Foam::IOobjectfindObject (const word &objName) const
 
template<class Type >
Foam::IOobjectfindObject (const word &objName)
 
template<class Type >
Foam::IOobjectgetObject (const word &objName) const
 
template<class MatchPredicate >
Foam::IOobjectList lookup (const MatchPredicate &matchName) const
 
template<class MatchPredicate >
Foam::IOobjectList lookupClass (const MatchPredicate &matchClass) const
 
template<class MatchPredicate1 , class MatchPredicate2 >
Foam::IOobjectList lookupClass (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) const
 
template<class Type >
Foam::IOobjectList lookupClass () const
 
template<class Type , class MatchPredicate >
Foam::IOobjectList lookupClass (const MatchPredicate &matchName) const
 
template<class MatchPredicate >
Foam::HashTable< Foam::wordHashSetclasses (const MatchPredicate &matchName) const
 
template<class MatchPredicate >
Foam::label count (const MatchPredicate &matchClass) const
 
template<class MatchPredicate1 , class MatchPredicate2 >
Foam::label count (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) const
 
template<class Type >
Foam::label count () const
 
template<class Type , class MatchPredicate >
Foam::label count (const MatchPredicate &matchName) const
 
template<class Type >
Foam::UPtrList< const Foam::IOobjectsorted () const
 
template<class Type >
Foam::UPtrList< const Foam::IOobjectsorted (const bool syncPar) const
 
template<class Type , class MatchPredicate >
Foam::UPtrList< const Foam::IOobjectsorted (const MatchPredicate &matchName) const
 
template<class Type , class MatchPredicate >
Foam::UPtrList< const Foam::IOobjectsorted (const MatchPredicate &matchName, const bool syncPar) const
 
template<class MatchPredicate >
Foam::wordList names (const MatchPredicate &matchClass) const
 
template<class MatchPredicate >
Foam::wordList names (const MatchPredicate &matchClass, const bool syncPar) const
 
template<class MatchPredicate1 , class MatchPredicate2 >
Foam::wordList names (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) const
 
template<class MatchPredicate1 , class MatchPredicate2 >
Foam::wordList names (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName, const bool syncPar) const
 
template<class Type >
Foam::wordList names () const
 
template<class Type >
Foam::wordList names (const bool syncPar) const
 
template<class Type , class MatchPredicate >
Foam::wordList names (const MatchPredicate &matchName) const
 
template<class Type , class MatchPredicate >
Foam::wordList names (const MatchPredicate &matchName, const bool syncPar) const
 
template<class MatchPredicate >
Foam::wordList sortedNames (const MatchPredicate &matchClass) const
 
template<class MatchPredicate >
Foam::wordList sortedNames (const MatchPredicate &matchClass, const bool syncPar) const
 
template<class MatchPredicate1 , class MatchPredicate2 >
Foam::wordList sortedNames (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) const
 
template<class MatchPredicate1 , class MatchPredicate2 >
Foam::wordList sortedNames (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName, const bool syncPar) const
 
template<class Type >
Foam::wordList sortedNames () const
 
template<class Type >
Foam::wordList sortedNames (const bool syncPar) const
 
template<class Type , class MatchPredicate >
Foam::wordList sortedNames (const MatchPredicate &matchName) const
 
template<class Type , class MatchPredicate >
Foam::wordList sortedNames (const MatchPredicate &matchName, const bool syncPar) const
 
template<class UnaryPredicate >
Foam::label filterClasses (const UnaryPredicate &pred, const bool pruning)
 
template<class UnaryPredicate >
Foam::label filterObjects (const UnaryPredicate &pred, const bool pruning)
 
template<class Type >
Foam::wordList allNames () const
 
- Public Member Functions inherited from HashPtrTable< IOobject >
 HashPtrTable ()=default
 Default construct with default table capacity. More...
 
 HashPtrTable (const label size)
 Construct given initial table capacity. More...
 
 HashPtrTable (Istream &is, const INew &inew)
 Construct from Istream using given Istream constructor class. More...
 
 HashPtrTable (Istream &is)
 Construct from Istream using default Istream constructor class. More...
 
 HashPtrTable (const dictionary &dict)
 Construct from dictionary with default dictionary constructor class. More...
 
 HashPtrTable (const this_type &rhs)
 Copy construct, making a copy of each element. More...
 
 HashPtrTable (this_type &&rhs)
 Move construct. More...
 
 ~HashPtrTable ()
 Destructor. More...
 
const IOobjectget (const word &key) const
 
autoPtr< IOobjectrelease (iterator &iter)
 Release ownership of the pointer and replace with a nullptr. More...
 
autoPtr< IOobjectrelease (const word &key)
 Release ownership of the pointer and replace with a nullptr. More...
 
autoPtr< IOobjectremove (iterator &iter)
 Remove entry specified by given iterator. More...
 
autoPtr< IOobjectremove (const word &key)
 Remove entry specified by given key. More...
 
bool erase (iterator &iter)
 
bool erase (const word &key)
 
void clear ()
 Clear all entries from table and delete any allocated pointers. More...
 
void write (Ostream &os) const
 Invoke write() on each non-null entry. More...
 
void operator= (const this_type &rhs)
 Copy assignment. More...
 
void operator= (this_type &&rhs)
 Move assignment. More...
 
bool emplace (const word &key, Args &&... args)
 Emplace insert a new entry, not overwriting existing entries. More...
 
bool emplace_set (const word &key, Args &&... args)
 Emplace set an entry, overwriting any existing entries. More...
 
bool insert (const word &, IOobject *)=delete
 
bool insert (const word &key, autoPtr< IOobject > &ptr)
 Insert a new entry, not overwriting existing entries. More...
 
bool insert (const word &key, autoPtr< IOobject > &&ptr)
 Insert a new entry, not overwriting existing entries. More...
 
bool insert (const word &key, std::unique_ptr< IOobject > &&ptr)
 Insert a new entry, not overwriting existing entries. More...
 
bool set (const word &key, IOobject *ptr)
 Assign a new entry, overwriting existing entries. More...
 
bool set (const word &key, autoPtr< IOobject > &ptr)
 Assign a new entry, overwriting existing entries. More...
 
bool set (const word &key, autoPtr< IOobject > &&ptr)
 Assign a new entry, overwriting existing entries. More...
 
bool set (const word &key, std::unique_ptr< IOobject > &&ptr)
 Assign a new entry, overwriting existing entries. More...
 
- Public Member Functions inherited from HashTable< T, Key, Hash >
 HashTable ()
 Default construct with default (128) table capacity. More...
 
 HashTable (const label size)
 Construct given initial table capacity. More...
 
 HashTable (Istream &is, const label size=128)
 Construct from Istream with default table capacity. More...
 
 HashTable (const this_type &ht)
 Copy construct. More...
 
 HashTable (this_type &&rhs)
 Move construct. More...
 
 HashTable (std::initializer_list< std::pair< Key, T > > list)
 Construct from an initializer list. More...
 
 ~HashTable ()
 Destructor. More...
 
label capacity () const noexcept
 The size of the underlying table. More...
 
label size () const noexcept
 The number of elements in table. More...
 
bool empty () const noexcept
 True if the hash table is empty. More...
 
Tat (const Key &key)
 Find and return a hashed entry. FatalError if it does not exist. More...
 
const Tat (const Key &key) const
 Find and return a hashed entry. FatalError if it does not exist. More...
 
bool found (const Key &key) const
 Return true if hashed entry is found in table. More...
 
iterator find (const Key &key)
 Find and return an iterator set at the hashed entry. More...
 
const_iterator find (const Key &key) const
 Find and return an const_iterator set at the hashed entry. More...
 
const_iterator cfind (const Key &key) const
 Find and return an const_iterator set at the hashed entry. More...
 
const Tlookup (const Key &key, const T &deflt) const
 Return hashed entry if it exists, or return the given default. More...
 
List< Key > toc () const
 The table of contents (the keys) in unsorted order. More...
 
List< Key > sortedToc () const
 The table of contents (the keys) in sorted order. More...
 
template<class Compare >
List< Key > sortedToc (const Compare &comp) const
 
template<class UnaryPredicate >
List< Key > tocKeys (const UnaryPredicate &pred, const bool invert=false) const
 
template<class UnaryPredicate >
List< Key > tocValues (const UnaryPredicate &pred, const bool invert=false) const
 
template<class BinaryPredicate >
List< Key > tocEntries (const BinaryPredicate &pred, const bool invert=false) const
 
UPtrList< const node_typecsorted () const
 
UPtrList< const node_typesorted () const
 
UPtrList< node_typesorted ()
 
template<class UnaryPredicate >
label countKeys (const UnaryPredicate &pred, const bool invert=false) const
 Count the number of keys that satisfy the unary predicate. More...
 
template<class UnaryPredicate >
label countValues (const UnaryPredicate &pred, const bool invert=false) const
 Count the number of values that satisfy the unary predicate. More...
 
template<class BinaryPredicate >
label countEntries (const BinaryPredicate &pred, const bool invert=false) const
 Count the number of entries that satisfy the binary predicate. More...
 
template<class... Args>
bool emplace (const Key &key, Args &&... args)
 Emplace insert a new entry, not overwriting existing entries. More...
 
template<class... Args>
bool emplace_set (const Key &key, Args &&... args)
 Emplace set an entry, overwriting any existing entries. More...
 
bool insert (const Key &key, const T &obj)
 Copy insert a new entry, not overwriting existing entries. More...
 
bool insert (const Key &key, T &&obj)
 Move insert a new entry, not overwriting existing entries. More...
 
bool set (const Key &key, const T &obj)
 Copy assign a new entry, overwriting existing entries. More...
 
bool set (const Key &key, T &&obj)
 Move assign a new entry, overwriting existing entries. More...
 
bool erase (const iterator &iter)
 Erase an entry specified by given iterator. More...
 
bool erase (const Key &key)
 Erase an entry specified by the given key. More...
 
template<class AnyType , class AnyHash >
label erase (const HashTable< AnyType, Key, AnyHash > &other)
 Remove table entries given by keys of the other hash-table. More...
 
label erase (std::initializer_list< Key > keys)
 Remove table entries given by the listed keys. More...
 
template<class InputIter >
label erase (InputIter first, InputIter last)
 Remove multiple entries using an iterator range of keys. More...
 
template<unsigned N>
label erase (const FixedList< Key, N > &keys)
 Remove table entries given by the listed keys. More...
 
label erase (const UList< Key > &keys)
 Remove table entries given by the listed keys. More...
 
template<class AnyType , class AnyHash >
label retain (const HashTable< AnyType, Key, AnyHash > &other)
 Retain table entries given by keys of the other hash-table. More...
 
template<class UnaryPredicate >
label filterKeys (const UnaryPredicate &pred, const bool pruning=false)
 Generalized means to filter table entries based on their keys. More...
 
template<class UnaryPredicate >
label filterValues (const UnaryPredicate &pred, const bool pruning=false)
 Generalized means to filter table entries based on their values. More...
 
template<class BinaryPredicate >
label filterEntries (const BinaryPredicate &pred, const bool pruning=false)
 Generalized means to filter table entries based on their key/value. More...
 
void resize (const label sz)
 Resize the hash table for efficiency. More...
 
void clear ()
 Clear all entries from table. More...
 
void clearStorage ()
 Clear the table entries and the table itself. More...
 
void swap (HashTable< T, Key, Hash > &rhs)
 Swap contents into this table. More...
 
void transfer (HashTable< T, Key, Hash > &rhs)
 Transfer contents into this table. More...
 
Toperator[] (const Key &key)
 Find and return a hashed entry. FatalError if it does not exist. More...
 
const Toperator[] (const Key &key) const
 Find and return a hashed entry. FatalError if it does not exist. More...
 
Toperator() (const Key &key)
 Return existing entry or create a new entry. More...
 
Toperator() (const Key &key, const T &deflt)
 Return existing entry or insert a new entry. More...
 
void operator= (const this_type &rhs)
 Copy assign. More...
 
void operator= (std::initializer_list< std::pair< Key, T > > rhs)
 Copy assign from an initializer list. More...
 
void operator= (this_type &&rhs)
 Move assign. More...
 
bool operator== (const this_type &rhs) const
 
bool operator!= (const this_type &rhs) const
 The opposite of the equality operation. More...
 
this_typeoperator+= (const this_type &rhs)
 Add entries into this HashTable. More...
 
const_iterator_pair< const_key_iterator, this_typekeys () const
 A const iterator begin/end pair for iterating over keys. More...
 
iterator begin ()
 iterator set to the beginning of the HashTable More...
 
const_iterator begin () const
 const_iterator set to the beginning of the HashTable More...
 
const_iterator cbegin () const
 const_iterator set to the beginning of the HashTable More...
 
iterator end () noexcept
 iterator to signal the end (for any HashTable) More...
 
const_iterator end () const noexcept
 const_iterator to signal the end (for any HashTable) More...
 
constexpr const_iterator cend () const noexcept
 const_iterator to signal the end (for any HashTable) More...
 
OstreamprintInfo (Ostream &os) const
 Print information. More...
 
OstreamwriteKeys (Ostream &os, const label shortLen=0) const
 
template<class Compare >
Foam::List< Key > sortedToc (const Compare &comp) const
 
template<class UnaryPredicate >
Foam::List< Key > tocKeys (const UnaryPredicate &pred, const bool invert) const
 
template<class UnaryPredicate >
Foam::List< Key > tocValues (const UnaryPredicate &pred, const bool invert) const
 
template<class BinaryPredicate >
Foam::List< Key > tocEntries (const BinaryPredicate &pred, const bool invert) const
 
template<class UnaryPredicate >
Foam::label countKeys (const UnaryPredicate &pred, const bool invert) const
 
template<class UnaryPredicate >
Foam::label countValues (const UnaryPredicate &pred, const bool invert) const
 
template<class BinaryPredicate >
Foam::label countEntries (const BinaryPredicate &pred, const bool invert) const
 
template<class InputIter >
Foam::label erase (InputIter first, InputIter last)
 
template<unsigned N>
Foam::label erase (const FixedList< Key, N > &keys)
 
template<class AnyType , class AnyHash >
Foam::label erase (const HashTable< AnyType, Key, AnyHash > &other)
 
template<class AnyType , class AnyHash >
Foam::label retain (const HashTable< AnyType, Key, AnyHash > &other)
 
template<class UnaryPredicate >
Foam::label filterKeys (const UnaryPredicate &pred, const bool pruning)
 
template<class UnaryPredicate >
Foam::label filterValues (const UnaryPredicate &pred, const bool pruning)
 
template<class BinaryPredicate >
Foam::label filterEntries (const BinaryPredicate &pred, const bool pruning)
 
- Public Member Functions inherited from HashTableCore
 ClassName ("HashTable")
 Declare type-name (with debug switch) More...
 
 HashTableCore ()=default
 Default construct. More...
 

Additional Inherited Members

- Public Types inherited from HashPtrTable< IOobject >
typedef HashPtrTable< IOobject, word, Foam::Hash< word > > this_type
 The template instance used for this table. More...
 
typedef HashTable< IOobject *, word, Foam::Hash< word > > parent_type
 The template instance used for the parent HashTable. More...
 
using iterator = typename parent_type::iterator
 
using const_iterator = typename parent_type::const_iterator
 
- Public Types inherited from HashTable< T, Key, Hash >
typedef HashTable< T, Key, Hashthis_type
 The template instance used for this HashTable. More...
 
typedef std::conditional< std::is_same< zero::null, typenamestd::remove_cv< T >::type >::value, Detail::HashTableSingle< Key >, Detail::HashTablePair< Key, T > >::type node_type
 
typedef Key key_type
 The second template parameter, type of keys used. More...
 
typedef T mapped_type
 The first template parameter, type of objects contained. More...
 
typedef T value_type
 Same as mapped_type for OpenFOAM HashTables. More...
 
typedef Hash hasher
 The third template parameter, the hash index method. More...
 
typedef Tpointer
 Pointer type for storing into value_type objects. More...
 
typedef Treference
 Reference to the stored value_type. More...
 
typedef const Tconst_pointer
 Const pointer type for the stored value_type. More...
 
typedef const Tconst_reference
 Const reference to the stored value_type. More...
 
typedef label difference_type
 The type to represent the difference between two iterators. More...
 
typedef label size_type
 The type that can represent the size of a HashTable. More...
 
using key_iterator = key_iterator_base< iterator >
 Forward iterator returning the key. More...
 
using const_key_iterator = key_iterator_base< const_iterator >
 Forward const iterator returning the key. More...
 
- Static Public Member Functions inherited from HashTableCore
static label canonicalSize (const label requested_size)
 Return a canonical (power-of-two) of the requested size. More...
 
- Static Public Attributes inherited from HashTableCore
static const label maxTableSize
 Maximum allowable internal table size. Approximately labelMax/4. More...
 
- Protected Member Functions inherited from HashTable< T, Key, Hash >
bool iterator_erase (node_type *&entry, label &index)
 Low-level entry erasure using iterator internals. More...
 

Detailed Description

List of IOobjects with searching and retrieving facilities.

Source files

Definition at line 56 of file IOobjectList.H.

Constructor & Destructor Documentation

◆ IOobjectList() [1/5]

Construct null with default (128) table capacity.

Definition at line 104 of file IOobjectList.C.

◆ IOobjectList() [2/5]

IOobjectList ( const label  nObjects)
explicit

Construct given initial table capacity.

Definition at line 110 of file IOobjectList.C.

◆ IOobjectList() [3/5]

IOobjectList ( const IOobjectList list)

Copy construct.

Definition at line 116 of file IOobjectList.C.

◆ IOobjectList() [4/5]

IOobjectList ( IOobjectList &&  list)

Move construct.

Definition at line 122 of file IOobjectList.C.

◆ IOobjectList() [5/5]

IOobjectList ( const objectRegistry db,
const fileName instance,
const fileName local = "",
IOobject::readOption  rOpt = IOobject::MUST_READ,
IOobject::writeOption  wOpt = IOobject::NO_WRITE,
bool  registerObject = true 
)

Construct from objectRegistry and instance path.

Definition at line 128 of file IOobjectList.C.

References Foam::endl(), Foam::FatalIOError, Foam::fileHandler(), HashPtrTable< IOobject >::insert(), Time::New(), Foam::nl, fileOperation::readObjects(), error::throwing(), and Foam::Warning.

Here is the call graph for this function:

◆ ~IOobjectList()

~IOobjectList ( )
default

Destructor.

Member Function Documentation

◆ add() [1/2]

bool add ( autoPtr< IOobject > &  objectPtr)

Add IOobject to the list.

Definition at line 187 of file IOobjectList.C.

References insert().

Here is the call graph for this function:

◆ add() [2/2]

bool add ( autoPtr< IOobject > &&  objectPtr)

Add IOobject to the list.

Definition at line 198 of file IOobjectList.C.

References insert().

Here is the call graph for this function:

◆ append() [1/2]

Foam::label append ( const IOobjectList other)

Copy append objects from other to this list, but do not overwrite existing keys.

Returns
number of items added

Definition at line 209 of file IOobjectList.C.

References forAllConstIters, found, InfoInFunction, and Foam::nl.

◆ append() [2/2]

Foam::label append ( IOobjectList &&  other)

Move append objects from other to this list, but do not overwrite existing keys.

After calling this, the other parameter will contains any items that could not be moved.

Returns
number of items added

Definition at line 231 of file IOobjectList.C.

References Foam::add(), found, InfoInFunction, and Foam::nl.

Here is the call graph for this function:

◆ remove()

bool remove ( const IOobject io)

Remove IOobject from the list.

Returns
True if object was removed

Definition at line 259 of file IOobjectList.C.

References erase(), io(), and IOobject::name().

Here is the call graph for this function:

◆ cfindObject() [1/3]

const Foam::IOobject * cfindObject ( const word objName) const

Return const pointer to the object found by name.

Returns
IOobject ptr if found else nullptr

Definition at line 267 of file IOobjectList.C.

References Foam::endl(), HashTable< T, Key, Hash >::Iterator< Const >::found(), InfoInFunction, and HashTable< T, Key, Hash >::const_iterator::val().

Here is the call graph for this function:

◆ cfindObject() [2/3]

const IOobject * cfindObject ( const word objName) const

Return const pointer to the object found by name that also has headerClassName == Type::typeName

Returns
IOobject ptr if found and the correct type, else nullptr
Note
If Type is void, no headerClassName check is used (always true).

◆ findObject() [1/6]

const Foam::IOobject * findObject ( const word objName) const

Return const pointer to the object found by name.

Returns
IOobject ptr if found else nullptr

Definition at line 292 of file IOobjectList.C.

Referenced by Foam::getField(), Foam::lumpedPointTools::lumpedPointPatchList(), Foam::lumpedPointTools::setInterpolators(), Foam::lumpedPointTools::setPatchControls(), Foam::writeAreaFields(), Foam::writeDimFields(), and Foam::writeVolFields().

Here is the caller graph for this function:

◆ findObject() [2/6]

const IOobject * findObject ( const word objName) const

Return const pointer to the object found by name that also has headerClassName == Type::typeName

Returns
IOobject ptr if found and the correct type, else nullptr
Note
If Type is void, no headerClassName check is used (always true).

◆ findObject() [3/6]

Foam::IOobject * findObject ( const word objName)

Return non-const pointer to the object found by name.

Returns
IOobject ptr if found else nullptr

Definition at line 301 of file IOobjectList.C.

◆ findObject() [4/6]

IOobject * findObject ( const word objName)

Return non-const pointer to the object found by name that also has headerClassName == Type::typeName

Returns
IOobject ptr if found and the correct type, else nullptr
Note
If Type is void, no headerClassName check is used (always true).

◆ getObject() [1/3]

Foam::IOobject * getObject ( const word objName) const

Return non-const pointer to the object found by name, using a const-cast to have it behave like a mutable.

Exercise caution when using.

Returns
IOobject ptr if found else nullptr

Definition at line 307 of file IOobjectList.C.

◆ getObject() [2/3]

IOobject * getObject ( const word objName) const

Return non-const pointer to the object found by name that also has headerClassName == Type::typeName, using a const-cast to have it behave like a mutable.

Exercise caution when using.

Returns
IOobject ptr if found and the correct type, else nullptr
Note
If Type is void, no headerClassName check is used (always true).

◆ lookup() [1/4]

IOobjectList lookup ( const MatchPredicate &  matchName) const

The list of IOobjects that have a matching object name.

◆ lookupClass() [1/9]

Foam::IOobjectList lookupClass ( const char *  clsName) const

The list of IOobjects with the given headerClassName.

Definition at line 313 of file IOobjectList.C.

Referenced by Foam::MapConsistentVolFields(), Foam::MapLagrangianFields(), Foam::MapVolFields(), fieldsDistributor::readFields(), and Foam::UnMapped().

Here is the caller graph for this function:

◆ lookupClass() [2/9]

IOobjectList lookupClass ( const MatchPredicate &  matchClass) const

The list of IOobjects with matching headerClassName.

◆ lookupClass() [3/9]

IOobjectList lookupClass ( const MatchPredicate1 &  matchClass,
const MatchPredicate2 &  matchName 
) const

The list of IOobjects with matching headerClassName that also have a matching object name.

◆ lookupClass() [4/9]

IOobjectList lookupClass ( ) const

The list of IOobjects with headerClassName == Type::typeName.

Note
If Type is void, no headerClassName check is used (always true).

◆ lookupClass() [5/9]

IOobjectList lookupClass ( const MatchPredicate &  matchName) const

The list of IOobjects with headerClassName == Type::typeName that also have a matching object name.

◆ classes() [1/3]

Foam::HashTable< Foam::wordHashSet > classes ( ) const

A summary hash of classes used and their associated object names.

The HashTable representation allows us to leverage various HashTable methods. This hashed summary view can be useful when querying particular aspects. For example,

HashTable<wordHashSet> classes = objects.classes();
// How many volScalarField?
Info<< checkType << "="
<< (classes.found(checkType) ? classes[checkType].size() : 0)
<< nl;
A HashTable similar to std::unordered_map.
Definition: HashTable.H:123
List of IOobjects with searching and retrieving facilities.
Definition: IOobjectList.H:59
HashTable< wordHashSet > classes() const
A summary hash of classes used and their associated object names.
Definition: IOobjectList.C:320
static word timeName(const scalar t, const int precision=precision_)
Definition: Time.C:780
A class for handling words, derived from Foam::string.
Definition: word.H:68
engineTime & runTime
messageStream Info
Information stream (stdout output on master, null elsewhere)
constexpr char nl
The newline '\n' character (0x0a)
Definition: Ostream.H:53
static const char *const typeName
The type name used in ensight case files.

Using the two-parameter HashTable::lookup method lets us avoid the '?' ternary, but still looks fairly ugly:

Info<< checkType << "="
<< classes.lookup(checkType, wordHashSet()).size() << nl;
HashSet< word, Hash< word > > wordHashSet
A HashSet of words, uses string hasher.
Definition: HashSet.H:82

If we have non-const access to the hash table, and don't mind incidentally creating empty entries, we can use the HashTable::operator() directly:

Info<< checkType << "=" << classes(checkType).size() << nl;

Of course, for a single query it would have been easier and simpler to have used a direct query of the names:

Info<< checkType << "=" << objects.names(checkType).size() << nl;

The summary hash, however, becomes most useful when reducing the objects in consideration to a particular subset. For example,

Or do just the opposite:

classes.erase(unsupportedTypes);

This also works with a hashedWordList, since it provides the expected '()' operator. But in this case the more general HashTable::filterKeys is required:

const hashedWordList interestingTypes
{
};
classes.filterKeys(interestingTypes);
A wordList with hashed named lookup, which can be faster in some situations than using the normal lis...

Of course, there are many other ways to use and manipulate the summary information.

Returns
HashTable of class-names for keys and wordHashSet of of object-names for the values.

Definition at line 320 of file IOobjectList.C.

Referenced by probes::prepare(), and areaWrite::write().

Here is the caller graph for this function:

◆ classes() [2/3]

HashTable< wordHashSet > classes ( const MatchPredicate &  matchName) const

A summary hash of classes used and their associated object names, restricted to objects that have a matching object name.

◆ sorted() [1/10]

◆ sorted() [2/10]

Foam::UPtrList< const Foam::IOobject > sorted ( const bool  syncPar) const

The sorted list of IOobjects with optional check for parallel consistency.

FatalError if syncPar = true and names are not consistent on all processors. The lifetime of the returned content cannot exceed the parent!

Definition at line 343 of file IOobjectList.C.

◆ sorted() [3/10]

UPtrList< const IOobject > sorted ( ) const

The sorted list of IOobjects with headerClassName == Type::typeName.

Note
If Type is void, no headerClassName check is used (always true). The lifetime of the returned content cannot exceed the parent!

◆ sorted() [4/10]

UPtrList< const IOobject > sorted ( const bool  syncPar) const

The sorted names of the IOobjects with optional check for parallel consistency.

FatalError if syncPar = true and names are not consistent on all processors. The lifetime of the returned content cannot exceed the parent!

◆ sorted() [5/10]

UPtrList< const IOobject > sorted ( const MatchPredicate &  matchName) const

The sorted list of IOobjects with headerClassName == Type::typeName that also have a matching object name.

The lifetime of the returned content cannot exceed the parent!

◆ sorted() [6/10]

UPtrList< const IOobject > sorted ( const MatchPredicate &  matchName,
const bool  syncPar 
) const

The sorted list of IOobjects with headerClassName == Type::typeName that also have a matching object name.

FatalError if syncPar = true and names are not consistent on all processors. The lifetime of the returned content cannot exceed the parent!

◆ count() [1/9]

Foam::label count ( const char *  clsName) const

The number of objects of the given headerClassName.

Note
uses the class type() method

Definition at line 326 of file IOobjectList.C.

◆ count() [2/9]

label count ( const MatchPredicate &  matchClass) const

The number of objects of the given headerClassName.

◆ count() [3/9]

label count ( const MatchPredicate1 &  matchClass,
const MatchPredicate2 &  matchName 
) const

The number of objects of the given headerClassName that also have a matching object name.

◆ count() [4/9]

label count ( ) const

The number of objects with headerClassName == Type::typeName.

◆ count() [5/9]

label count ( const MatchPredicate &  matchName) const

The number of objects with headerClassName == Type::typeName that also have a matching object name.

Note
If Type is void, no headerClassName check is used (always true).

◆ names() [1/20]

Foam::wordList names ( ) const

The unsorted names of the IOobjects.

Definition at line 351 of file IOobjectList.C.

References bitSet::toc().

Referenced by Foam::readUniformFields(), and areaWrite::write().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ names() [2/20]

Foam::wordList names ( const bool  syncPar) const

The sorted names of the IOobjects with optional check for parallel consistency.

FatalError if syncPar = true and names are not consistent on all processors.

Note
Output is always sorted - for consistent serial/parallel behaviour.

Definition at line 357 of file IOobjectList.C.

◆ names() [3/20]

Foam::wordList names ( const char *  clsName) const

The unsorted names of IOobjects with the given headerClassName.

Definition at line 363 of file IOobjectList.C.

◆ names() [4/20]

Foam::wordList names ( const char *  clsName,
const bool  syncPar 
) const

The sorted names of the IOobjects with the given headerClassName.

FatalError if syncPar = true and names are not consistent on all processors.

Note
Output is always sorted - for consistent serial/parallel behaviour.

Definition at line 370 of file IOobjectList.C.

◆ names() [5/20]

wordList names ( const MatchPredicate &  matchClass) const

The unsorted names of IOobjects with the given headerClassName.

◆ names() [6/20]

wordList names ( const MatchPredicate &  matchClass,
const bool  syncPar 
) const

The sorted names of the IOobjects with the given headerClassName.

FatalError if syncPar = true and names are not consistent on all processors.

Note
Output is always sorted - for consistent serial/parallel behaviour.

◆ names() [7/20]

wordList names ( const MatchPredicate1 &  matchClass,
const MatchPredicate2 &  matchName 
) const

The unsorted names of IOobjects with the given headerClassName that also have a matching object name.

◆ names() [8/20]

wordList names ( const MatchPredicate1 &  matchClass,
const MatchPredicate2 &  matchName,
const bool  syncPar 
) const

The sorted names of the IOobjects with the given headerClassName that also have a matching object name.

FatalError if syncPar = true and names are not consistent on all processors.

Note
Output is always sorted - for consistent serial/parallel behaviour.

◆ names() [9/20]

wordList names ( ) const

The unsorted names of objects with headerClassName == Type::typeName

◆ names() [10/20]

wordList names ( bool  syncPar) const

The sorted names of objects with headerClassName == Type::typeName.

FatalError if syncPar = true and names are not consistent on all processors.

Note
Output is always sorted - for consistent serial/parallel behaviour.

◆ names() [11/20]

wordList names ( const MatchPredicate &  matchName) const

The unsorted names of objects with headerClassName == Type::typeName and a matching object name.

◆ names() [12/20]

wordList names ( const MatchPredicate &  matchName,
const bool  syncPar 
) const

The sorted names of objects with headerClassName == Type::typeName and a matching object name.

FatalError if syncPar = true and names are not consistent on all processors.

Note
Output is always sorted - for consistent serial/parallel behaviour.

◆ sortedNames() [1/20]

Foam::wordList sortedNames ( ) const

The sorted names of the IOobjects.

Definition at line 383 of file IOobjectList.C.

References bitSet::sortedToc().

Referenced by fvMeshTools::loadOrCreateMesh(), Foam::MapVolFields(), foamToVtkReportFields::print(), fieldsDistributor::readFields(), Foam::readFields(), Foam::writeAreaFields(), Foam::writeDimFields(), Foam::writePointFields(), and Foam::writeVolFields().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sortedNames() [2/20]

Foam::wordList sortedNames ( const bool  syncPar) const

The sorted names of the IOobjects with optional check for parallel consistency.

FatalError if syncPar = true and names are not consistent on all processors.

Definition at line 389 of file IOobjectList.C.

◆ sortedNames() [3/20]

Foam::wordList sortedNames ( const char *  clsName) const

The sorted names of IOobjects with the given headerClassName.

Definition at line 398 of file IOobjectList.C.

◆ sortedNames() [4/20]

Foam::wordList sortedNames ( const char *  clsName,
const bool  syncPar 
) const

The sorted names of the IOobjects with the given headerClassName.

FatalError if syncPar = true and names are not consistent on all processors.

Definition at line 405 of file IOobjectList.C.

◆ sortedNames() [5/20]

wordList sortedNames ( const MatchPredicate &  matchClass) const

The sorted names of IOobjects with the given headerClassName.

◆ sortedNames() [6/20]

wordList sortedNames ( const MatchPredicate &  matchClass,
const bool  syncPar 
) const

The sorted names of the IOobjects with the given headerClassName.

FatalError if syncPar = true and names are not consistent on all processors.

◆ sortedNames() [7/20]

wordList sortedNames ( const MatchPredicate1 &  matchClass,
const MatchPredicate2 &  matchName 
) const

The sorted names of IOobjects with the given headerClassName that also have a matching object name.

◆ sortedNames() [8/20]

wordList sortedNames ( const MatchPredicate1 &  matchClass,
const MatchPredicate2 &  matchName,
const bool  syncPar 
) const

The sorted names of the IOobjects with the given headerClassName that also have a matching object name.

FatalError if syncPar = true and names are not consistent on all processors.

◆ sortedNames() [9/20]

wordList sortedNames ( ) const

The sorted names of objects with headerClassName == Type::typeName.

◆ sortedNames() [10/20]

wordList sortedNames ( bool  syncPar) const

The sorted names of objects with headerClassName == Type::typeName.

FatalError if syncPar = true and names are not consistent on all processors.

◆ sortedNames() [11/20]

wordList sortedNames ( const MatchPredicate &  matchName) const

The sorted names of objects with headerClassName == Type::typeName that also have a matching object name.

◆ sortedNames() [12/20]

wordList sortedNames ( const MatchPredicate &  matchName,
const bool  syncPar 
) const

The sorted names of objects with headerClassName == Type::typeName that also have a matching object name.

FatalError if syncPar = true and names are not consistent on all processors.

◆ filterClasses() [1/2]

label filterClasses ( const UnaryPredicate &  pred,
const bool  pruning = false 
)

Filter to retain or prune given classes.

Returns
The number of items changed (removed)

◆ filterObjects() [1/2]

label filterObjects ( const UnaryPredicate &  pred,
const bool  pruning = false 
)

Filter to retain or prune given object names.

Returns
The number of items changed (removed)

◆ prune_0()

Foam::label prune_0 ( )

Remove objects with names ending with "_0" (restart fields)

Returns
The number of items changed (removed)

Definition at line 418 of file IOobjectList.C.

References HashTable< T, Key, Hash >::filterKeys(), and k.

Here is the call graph for this function:

◆ allNames() [1/3]

Foam::wordList allNames ( ) const

The sorted names of all objects (synchronised across processors)

Definition at line 429 of file IOobjectList.C.

Referenced by lagrangianWriter::writeFields().

Here is the caller graph for this function:

◆ allNames() [2/3]

wordList allNames ( ) const

The sorted names of all objects (synchronised across processors) with headerClassName == Type::typeName

◆ checkNames()

void checkNames ( const bool  syncPar = true) const

Verify that object names are synchronised across processors.

FatalError if the names are not consistent on all processors.

Definition at line 438 of file IOobjectList.C.

References UPstream::parRun().

Here is the call graph for this function:

◆ operator=() [1/2]

void operator= ( const IOobjectList )
delete

No copy assignment.

◆ operator=() [2/2]

void operator= ( IOobjectList &&  list)

Move assignment.

Definition at line 451 of file IOobjectList.C.

◆ lookup() [2/4]

IOobject * lookup ( const char *  objName) const
inline

Deprecated(2018-11) Locate an object by name (c-string). Disambiguated from multiple-lookup version by calling parameter.

Deprecated:
(2018-11) use findObject() for non-ambiguous resolution

Definition at line 718 of file IOobjectList.H.

◆ lookup() [3/4]

IOobject * lookup ( const word objName) const
inline

Deprecated(2018-11) Locate an object by name (const word&). Disambiguated from multiple-lookup version by calling parameter.

Deprecated:
(2018-11) use findObject() for non-ambiguous resolution

Definition at line 726 of file IOobjectList.H.

◆ classesImpl()

Foam::HashTable< Foam::wordHashSet > classesImpl ( const IOobjectList list,
const MatchPredicate &  matchName 
)

Definition at line 35 of file IOobjectListTemplates.C.

References forAllConstIters, IOobject::headerClassName(), HashTable< T, Key, Hash >::insert(), io(), and HashTable< T, Key, Hash >::size().

Here is the call graph for this function:

◆ countImpl()

Foam::label countImpl ( const IOobjectList list,
const MatchPredicate1 &  matchClass,
const MatchPredicate2 &  matchName 
)

Definition at line 62 of file IOobjectListTemplates.C.

References forAllConstIters, IOobject::headerClassName(), io(), and IOobject::name().

Here is the call graph for this function:

◆ countTypeImpl()

Foam::label countTypeImpl ( const IOobjectList list,
const MatchPredicate &  matchName 
)

Definition at line 87 of file IOobjectListTemplates.C.

References forAllConstIters, io(), IOobject::isHeaderClass(), and IOobject::name().

Here is the call graph for this function:

◆ namesImpl()

Foam::wordList namesImpl ( const IOobjectList list,
const MatchPredicate1 &  matchClass,
const MatchPredicate2 &  matchName,
const bool  doSort 
)

Definition at line 111 of file IOobjectListTemplates.C.

References forAllConstIters, IOobject::headerClassName(), io(), List< T >::resize(), HashTable< T, Key, Hash >::size(), and Foam::sort().

Here is the call graph for this function:

◆ namesTypeImpl()

Foam::wordList namesTypeImpl ( const IOobjectList list,
const MatchPredicate &  matchName,
const bool  doSort 
)

Definition at line 147 of file IOobjectListTemplates.C.

References forAllConstIters, io(), IOobject::isHeaderClass(), List< T >::resize(), HashTable< T, Key, Hash >::size(), and Foam::sort().

Here is the call graph for this function:

◆ objectsTypeImpl()

Foam::UPtrList< const Foam::IOobject > objectsTypeImpl ( const IOobjectList list,
const MatchPredicate &  matchName 
)

Definition at line 183 of file IOobjectListTemplates.C.

References forAllConstIters, io(), IOobject::isHeaderClass(), UPtrList< T >::resize(), UPtrList< T >::set(), HashTable< T, Key, Hash >::size(), and Foam::sort().

Here is the call graph for this function:

◆ lookupImpl()

Foam::IOobjectList lookupImpl ( const IOobjectList list,
const MatchPredicate &  matchName 
)

Definition at line 214 of file IOobjectListTemplates.C.

References Foam::endl(), forAllConstIters, InfoInFunction, io(), HashPtrTable< T, Key, Hash >::set(), and HashTable< T, Key, Hash >::size().

Here is the call graph for this function:

◆ lookupClassImpl()

Foam::IOobjectList lookupClassImpl ( const IOobjectList list,
const MatchPredicate1 &  matchClass,
const MatchPredicate2 &  matchName 
)

Definition at line 244 of file IOobjectListTemplates.C.

References Foam::endl(), forAllConstIters, IOobject::headerClassName(), InfoInFunction, io(), HashPtrTable< T, Key, Hash >::set(), and HashTable< T, Key, Hash >::size().

Here is the call graph for this function:

◆ lookupClassTypeImpl()

Foam::IOobjectList lookupClassTypeImpl ( const IOobjectList list,
const MatchPredicate &  matchName 
)

Definition at line 275 of file IOobjectListTemplates.C.

References Foam::endl(), forAllConstIters, InfoInFunction, io(), IOobject::isHeaderClass(), HashPtrTable< T, Key, Hash >::set(), and HashTable< T, Key, Hash >::size().

Here is the call graph for this function:

◆ cfindObject() [3/3]

const Foam::IOobject * cfindObject ( const word objName) const

Definition at line 306 of file IOobjectListTemplates.C.

References Foam::endl(), HashTable< T, Key, Hash >::Iterator< Const >::found(), InfoInFunction, io(), IOobject::isHeaderClass(), and HashTable< T, Key, Hash >::const_iterator::val().

Here is the call graph for this function:

◆ findObject() [5/6]

const Foam::IOobject * findObject ( const word objName) const

Definition at line 342 of file IOobjectListTemplates.C.

◆ findObject() [6/6]

Foam::IOobject * findObject ( const word objName)

Definition at line 352 of file IOobjectListTemplates.C.

◆ getObject() [3/3]

Foam::IOobject * getObject ( const word objName) const

Definition at line 359 of file IOobjectListTemplates.C.

◆ lookup() [4/4]

Foam::IOobjectList lookup ( const MatchPredicate &  matchName) const

Definition at line 366 of file IOobjectListTemplates.C.

◆ lookupClass() [6/9]

Foam::IOobjectList lookupClass ( const MatchPredicate &  matchClass) const

Definition at line 376 of file IOobjectListTemplates.C.

◆ lookupClass() [7/9]

Foam::IOobjectList lookupClass ( const MatchPredicate1 &  matchClass,
const MatchPredicate2 &  matchName 
) const

Definition at line 386 of file IOobjectListTemplates.C.

◆ lookupClass() [8/9]

Foam::IOobjectList lookupClass ( ) const

Definition at line 397 of file IOobjectListTemplates.C.

◆ lookupClass() [9/9]

Foam::IOobjectList lookupClass ( const MatchPredicate &  matchName) const

Definition at line 404 of file IOobjectListTemplates.C.

◆ classes() [3/3]

Foam::HashTable< Foam::wordHashSet > classes ( const MatchPredicate &  matchName) const

Definition at line 415 of file IOobjectListTemplates.C.

◆ count() [6/9]

Foam::label count ( const MatchPredicate &  matchClass) const

Definition at line 425 of file IOobjectListTemplates.C.

◆ count() [7/9]

Foam::label count ( const MatchPredicate1 &  matchClass,
const MatchPredicate2 &  matchName 
) const

Definition at line 435 of file IOobjectListTemplates.C.

◆ count() [8/9]

Foam::label count ( ) const

Definition at line 446 of file IOobjectListTemplates.C.

◆ count() [9/9]

Foam::label count ( const MatchPredicate &  matchName) const

Definition at line 453 of file IOobjectListTemplates.C.

◆ sorted() [7/10]

Foam::UPtrList< const Foam::IOobject > sorted ( ) const

Definition at line 467 of file IOobjectListTemplates.C.

◆ sorted() [8/10]

Foam::UPtrList< const Foam::IOobject > sorted ( const bool  syncPar) const

Definition at line 475 of file IOobjectListTemplates.C.

◆ sorted() [9/10]

Foam::UPtrList< const Foam::IOobject > sorted ( const MatchPredicate &  matchName) const

Definition at line 490 of file IOobjectListTemplates.C.

◆ sorted() [10/10]

Foam::UPtrList< const Foam::IOobject > sorted ( const MatchPredicate &  matchName,
const bool  syncPar 
) const

Definition at line 501 of file IOobjectListTemplates.C.

◆ names() [13/20]

Foam::wordList names ( const MatchPredicate &  matchClass) const

Definition at line 521 of file IOobjectListTemplates.C.

◆ names() [14/20]

Foam::wordList names ( const MatchPredicate &  matchClass,
const bool  syncPar 
) const

Definition at line 531 of file IOobjectListTemplates.C.

◆ names() [15/20]

Foam::wordList names ( const MatchPredicate1 &  matchClass,
const MatchPredicate2 &  matchName 
) const

Definition at line 542 of file IOobjectListTemplates.C.

◆ names() [16/20]

Foam::wordList names ( const MatchPredicate1 &  matchClass,
const MatchPredicate2 &  matchName,
const bool  syncPar 
) const

Definition at line 553 of file IOobjectListTemplates.C.

◆ names() [17/20]

Foam::wordList names ( ) const

Definition at line 565 of file IOobjectListTemplates.C.

◆ names() [18/20]

Foam::wordList names ( const bool  syncPar) const

Definition at line 572 of file IOobjectListTemplates.C.

◆ names() [19/20]

Foam::wordList names ( const MatchPredicate &  matchName) const

Definition at line 579 of file IOobjectListTemplates.C.

◆ names() [20/20]

Foam::wordList names ( const MatchPredicate &  matchName,
const bool  syncPar 
) const

Definition at line 589 of file IOobjectListTemplates.C.

◆ sortedNames() [13/20]

Foam::wordList sortedNames ( const MatchPredicate &  matchClass) const

Definition at line 602 of file IOobjectListTemplates.C.

◆ sortedNames() [14/20]

Foam::wordList sortedNames ( const MatchPredicate &  matchClass,
const bool  syncPar 
) const

Definition at line 612 of file IOobjectListTemplates.C.

◆ sortedNames() [15/20]

Foam::wordList sortedNames ( const MatchPredicate1 &  matchClass,
const MatchPredicate2 &  matchName 
) const

Definition at line 629 of file IOobjectListTemplates.C.

◆ sortedNames() [16/20]

Foam::wordList sortedNames ( const MatchPredicate1 &  matchClass,
const MatchPredicate2 &  matchName,
const bool  syncPar 
) const

Definition at line 640 of file IOobjectListTemplates.C.

◆ sortedNames() [17/20]

Foam::wordList sortedNames ( ) const

Definition at line 655 of file IOobjectListTemplates.C.

◆ sortedNames() [18/20]

Foam::wordList sortedNames ( const bool  syncPar) const

Definition at line 662 of file IOobjectListTemplates.C.

◆ sortedNames() [19/20]

Foam::wordList sortedNames ( const MatchPredicate &  matchName) const

Definition at line 672 of file IOobjectListTemplates.C.

◆ sortedNames() [20/20]

Foam::wordList sortedNames ( const MatchPredicate &  matchName,
const bool  syncPar 
) const

Definition at line 682 of file IOobjectListTemplates.C.

◆ filterClasses() [2/2]

Foam::label filterClasses ( const UnaryPredicate &  pred,
const bool  pruning 
)

Definition at line 698 of file IOobjectListTemplates.C.

References erase().

Here is the call graph for this function:

◆ filterObjects() [2/2]

Foam::label filterObjects ( const UnaryPredicate &  pred,
const bool  pruning 
)

Definition at line 735 of file IOobjectListTemplates.C.

References erase().

Here is the call graph for this function:

◆ allNames() [3/3]

Foam::wordList allNames ( ) const

Definition at line 768 of file IOobjectListTemplates.C.


The documentation for this class was generated from the following files: