Definition at line 40 of file Pool.h.
|
template<typename T , typename... Args> |
std::shared_ptr< T > | put (const InputTag &tag, Args &&... args) |
| Allocate a new block in the memory pool. More...
|
|
template<typename T > |
Value< T > | get (const InputTag &tag) const |
|
void | alias (const InputTag &from, const InputTag &to) |
|
bool | exists (const InputTag &tag) const |
| Check if input tag exists in the pool. More...
|
|
|
class | MoMEMta |
|
class | Module |
|
template<typename U > |
class | ValueProxy |
|
struct | InputTag |
|
◆ exists()
bool Pool::exists |
( |
const InputTag & |
tag | ) |
const |
Check if input tag exists in the pool.
- Warning
- No check is performed to ensure that the string is an input tag. Use InputTag::isInputTag() first.
- Parameters
-
tag | Input tag that will be searched in the pool. |
- Returns
- True if the input tag exists in the pool, False otherwise.
Definition at line 68 of file Pool.cc.
◆ put()
template<typename T , typename... Args>
std::shared_ptr< T > Pool::put |
( |
const InputTag & |
tag, |
|
|
Args &&... |
args |
|
) |
| |
Allocate a new block in the memory pool.
- Parameters
-
tag | The input tag describing the memory block |
args | Optional constructor arguments for creating a new instance of T |
- Returns
- A pointer to the newly allocated memory block.
Definition at line 74 of file Pool.h.
The documentation for this class was generated from the following files: