carl
24.04
Computer ARithmetic Library
|
Implements a manager for sort values, containing the actual contents of these sort and allocating their ids. More...
#include <SortValueManager.h>
Public Member Functions | |
SortValue | newSortValue (const Sort &sort) |
Creates a new value for the given sort. More... | |
SortValue | defaultSortValue (const Sort &sort) const |
Returns the default value for the given sort. More... | |
Static Public Member Functions | |
static SortValueManager & | getInstance () |
Returns the single instance of this class by reference. More... | |
Private Member Functions | |
SortValueManager ()=default | |
Constructs a sort value manager. More... | |
Private Attributes | |
friend | Singleton< SortValueManager > |
carl::FastMap< Sort, std::size_t > | mSortValueIDMap |
Stores for each sort the latest instantiated sort value. More... | |
Implements a manager for sort values, containing the actual contents of these sort and allocating their ids.
Definition at line 26 of file SortValueManager.h.
|
privatedefault |
Constructs a sort value manager.
Returns the default value for the given sort.
sort | The sort to return the default value for. |
Definition at line 58 of file SortValueManager.h.
|
inlinestaticinherited |
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.
Creates a new value for the given sort.
sort | The sort to create a new value for. |
Definition at line 46 of file SortValueManager.h.
|
private |
Stores for each sort the latest instantiated sort value.
Definition at line 33 of file SortValueManager.h.
|
private |
Definition at line 27 of file SortValueManager.h.