#include <BVConstraintPool.h>
Definition at line 17 of file BVConstraintPool.h.
◆ ConstConstraintPtr
◆ ConstElementPtr
◆ Constraint
◆ ConstraintPtr
◆ ElementPtr
◆ add()
Adds the given element to the pool, if it does not yet occur in there.
Note, that this method uses the allocator which is locked before calling.
- Parameters
-
_element | The element to add to the pool. |
- Returns
- The given element, if it did not yet occur in the pool; The equivalent element already occurring in the pool, otherwise.
Definition at line 113 of file Pool.h.
◆ assignId()
void carl::BVConstraintPool::assignId |
( |
ConstraintPtr |
, |
|
|
std::size_t |
|
|
) |
| |
|
overridevirtual |
Assigns a unique id to the generated element.
Note that this method serves as a callback for subclasses. The actual assignment of the id is done there.
- Parameters
-
_element | The element for which to add the id. |
_id | A unique id. |
Reimplemented from carl::Pool< BVConstraint >.
Definition at line 62 of file BVConstraintPool.cpp.
◆ create() [1/2]
◆ create() [2/2]
◆ 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.
◆ insert()
Inserts the given element into the pool, if it does not yet occur in there.
- Parameters
-
_element | The element to add to the pool. |
_assertFreshness | When true, an assertion fails if the element is not fresh (i.e., if it already occurs in the pool). |
- Returns
- The position of the given element in the pool and true, if it did not yet occur in the pool; The position of the equivalent element in the pool and false, otherwise.
Definition at line 89 of file Pool.h.
◆ print()
◆ mIdAllocator
id allocator
Definition at line 31 of file Pool.h.
◆ mMutexPool
Mutex to avoid multiple access to the pool.
Definition at line 35 of file Pool.h.
◆ mPool
The formula pool.
Definition at line 33 of file Pool.h.
◆ Singleton< BVConstraintPool >
The documentation for this class was generated from the following files: