The table of results. More...
Public Member Functions | |
Table ()=default | |
Default construct. More... | |
Table (const Table &tbl) | |
Copy (clone) construct. More... | |
Table (Table &&tbl) | |
Move construct. More... | |
Table (Istream &is) | |
Read construct from stream. More... | |
![]() | |
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 exprResult * | get (const word &key) const |
autoPtr< exprResult > | release (iterator &iter) |
Release ownership of the pointer and replace with a nullptr. More... | |
autoPtr< exprResult > | release (const word &key) |
Release ownership of the pointer and replace with a nullptr. More... | |
autoPtr< exprResult > | remove (iterator &iter) |
Remove entry specified by given iterator. More... | |
autoPtr< exprResult > | remove (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 &, exprResult *)=delete |
bool | insert (const word &key, autoPtr< exprResult > &ptr) |
Insert a new entry, not overwriting existing entries. More... | |
bool | insert (const word &key, autoPtr< exprResult > &&ptr) |
Insert a new entry, not overwriting existing entries. More... | |
bool | insert (const word &key, std::unique_ptr< exprResult > &&ptr) |
Insert a new entry, not overwriting existing entries. More... | |
bool | set (const word &key, exprResult *ptr) |
Assign a new entry, overwriting existing entries. More... | |
bool | set (const word &key, autoPtr< exprResult > &ptr) |
Assign a new entry, overwriting existing entries. More... | |
bool | set (const word &key, autoPtr< exprResult > &&ptr) |
Assign a new entry, overwriting existing entries. More... | |
bool | set (const word &key, std::unique_ptr< exprResult > &&ptr) |
Assign a new entry, overwriting existing entries. More... | |
Additional Inherited Members | |
![]() | |
typedef HashPtrTable< exprResult, word, Foam::Hash< word > > | this_type |
The template instance used for this table. More... | |
typedef HashTable< exprResult *, 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 |
The table of results.
Definition at line 70 of file exprResultGlobals.H.
|
default |
Default construct.
Copy (clone) construct.
Definition at line 78 of file exprResultGlobals.C.
References HashPtrTable< exprResult >::set().
Move construct.
Definition at line 89 of file exprResultGlobals.C.
Read construct from stream.
Definition at line 95 of file exprResultGlobals.C.