Implements a manager for uninterpreted function instances, containing their actual contents and allocating their ids.
More...
#include <UFInstanceManager.h>
Implements a manager for uninterpreted function instances, containing their actual contents and allocating their ids.
Definition at line 144 of file UFInstanceManager.h.
◆ UFInstanceManager()
carl::UFInstanceManager::UFInstanceManager |
( |
| ) |
|
|
inlineprivate |
◆ ~UFInstanceManager()
carl::UFInstanceManager::~UFInstanceManager |
( |
| ) |
|
|
inlineoverrideprivate |
◆ argsCorrect()
- Returns
- true, if the arguments domains coincide with those of the domain.
Definition at line 25 of file UFInstanceManager.cpp.
◆ getArgs()
const std::vector<UTerm>& carl::UFInstanceManager::getArgs |
( |
const UFInstance & |
ufi | ) |
const |
|
inline |
- Parameters
-
ufi | An uninterpreted function instance. |
- Returns
- The arguments of the given uninterpreted function instance.
Definition at line 190 of file UFInstanceManager.h.
◆ getInstance()
Returns the single instance of this class by reference.
If there is no instance yet, a new one is created.
Definition at line 45 of file Singleton.h.
◆ getUninterpretedFunction()
- Parameters
-
ufi | An uninterpreted function instance. |
- Returns
- The underlying uninterpreted function of the uninterpreted function of the given uninterpreted function instance.
Definition at line 180 of file UFInstanceManager.h.
◆ newUFInstance() [1/3]
Gets the uninterpreted function instance with the given name, domain, arguments and codomain.
- Parameters
-
uf | The underlying function of the uninterpreted function instance to get. |
args | The arguments of the uninterpreted function instance to get. |
- Returns
- The resulting uninterpreted function instance.
Definition at line 214 of file UFInstanceManager.h.
◆ newUFInstance() [2/3]
Gets the uninterpreted function instance with the given name, domain, arguments and codomain.
- Parameters
-
uf | The underlying function of the uninterpreted function instance to get. |
args | The arguments of the uninterpreted function instance to get. |
- Returns
- The resulting uninterpreted function instance.
Definition at line 202 of file UFInstanceManager.h.
◆ newUFInstance() [3/3]
Tries to add the given uninterpreted function instance's content to the so far stored uninterpreted function instance's contents.
If it has already been stored, if will be deleted and the id of the already existing uninterpreted function instance's content will be used to create the returned uninterpreted function instance.
- Parameters
-
ufic | The uninterpreted function instance's content to store. |
- Returns
- The uninterpreted function instance corresponding to the given content.
Definition at line 12 of file UFInstanceManager.cpp.
◆ mUFInstanceIdMap
Stores all instantiated uninterpreted function instance's contents and maps them to their unique id.
Definition at line 149 of file UFInstanceManager.h.
◆ mUFInstances
std::vector<std::unique_ptr<UFInstanceContent> > carl::UFInstanceManager::mUFInstances |
|
private |
Maps the unique ids to the instantiated uninterpreted function instance's content.
Definition at line 151 of file UFInstanceManager.h.
◆ Singleton< UFInstanceManager >
The documentation for this class was generated from the following files: