Detailed Description

Definition at line 40 of file Pool.h.

Classes

class  constructor_tag_error
 
class  duplicated_tag_error
 
class  tag_not_found_error
 

Public Member Functions

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...
 

Friends

class MoMEMta
 
class Module
 
template<typename U >
class ValueProxy
 
struct InputTag
 

Member Function Documentation

◆ 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
tagInput 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
tagThe input tag describing the memory block
argsOptional 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: