mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Implmementing the templated filter creation method.
This commit is contained in:
parent
2f0a894131
commit
5a7de406c4
2 changed files with 53 additions and 29 deletions
|
|
@ -31,6 +31,15 @@ public:
|
|||
Filter();
|
||||
virtual ~Filter();
|
||||
|
||||
//! Create a new tally filter
|
||||
//
|
||||
//! \tparam T Type of the filter
|
||||
//! \param[in] id Unique ID for the filter. If none is passed, an ID is
|
||||
//! automatically assigned
|
||||
//! \return Pointer to the new filter object
|
||||
template<typename T>
|
||||
static T* create(int32_t id = -1);
|
||||
|
||||
//! Create a new tally filter
|
||||
//
|
||||
//! \param[in] type Type of the filter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue