Implmementing the templated filter creation method.

This commit is contained in:
Patrick Shriwise 2020-05-11 14:18:04 -05:00
parent 2f0a894131
commit 5a7de406c4
2 changed files with 53 additions and 29 deletions

View file

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