#include <MonomialPool.h>
Definition at line 23 of file MonomialPool.h.
◆ underlying_set
◆ MonomialPool()
carl::MonomialPool::MonomialPool |
( |
std::size_t |
_capacity = 1000 | ) |
|
|
inlineexplicitprotected |
Constructor of the pool.
- Parameters
-
_capacity | Expected necessary capacity of the pool. |
Definition at line 71 of file MonomialPool.h.
◆ ~MonomialPool()
carl::MonomialPool::~MonomialPool |
( |
| ) |
|
|
inlineprotected |
◆ add()
◆ check_rehash()
void carl::MonomialPool::check_rehash |
( |
| ) |
|
|
inlineprotected |
◆ create() [1/5]
Creates a Monomial.
- Parameters
-
_exponents | Possibly unsorted list of variables and epxonents. |
Definition at line 41 of file MonomialPool.cpp.
◆ create() [2/5]
Creates a monomial from a list of variables and their exponents.
Note that the input is required to be sorted.
- Parameters
-
Sorted | list of variables and exponents. |
Definition at line 48 of file MonomialPool.cpp.
◆ create() [3/5]
Creates a monomial from a list of variables and their exponents.
Note that the input is required to be sorted.
- Parameters
-
_exponents | Sorted list of variables and exponents. |
_totalDegree | Total degree. |
Definition at line 36 of file MonomialPool.cpp.
◆ create() [4/5]
Creates a monomial from a variable and an exponent.
Definition at line 31 of file MonomialPool.cpp.
◆ create() [5/5]
template<typename Number >
Creates a monomial from a variable and an exponent.
Definition at line 106 of file MonomialPool.h.
◆ free()
void carl::MonomialPool::free |
( |
const Monomial * |
m | ) |
|
|
inline |
◆ 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.
◆ largestID()
std::size_t carl::MonomialPool::largestID |
( |
| ) |
const |
|
inline |
◆ size()
std::size_t carl::MonomialPool::size |
( |
| ) |
const |
|
inline |
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const MonomialPool & |
mp |
|
) |
| |
|
friend |
◆ Singleton< MonomialPool >
◆ mIDs
IDPool carl::MonomialPool::mIDs |
|
private |
◆ mMutex
std::recursive_mutex carl::MonomialPool::mMutex |
|
mutableprivate |
Mutex to avoid multiple access to the pool.
Definition at line 54 of file MonomialPool.h.
◆ mPool
◆ mPoolBuckets
std::unique_ptr<underlying_set::bucket_type[]> carl::MonomialPool::mPoolBuckets |
|
private |
◆ mRehashPolicy
The documentation for this class was generated from the following files: