Add CRTP base class for the policies of the generic device

This commit is contained in:
NicolasWinckler
2015-10-14 17:12:19 +02:00
parent 559c7babca
commit 323033c9eb
12 changed files with 341 additions and 13 deletions

View File

@@ -35,12 +35,11 @@
* Function to define in (parent) policy classes :
*
* -------- INPUT POLICY (SAMPLER POLICY) --------
* source_type::InitSampler() // must be there to compile
* source_type::InitSource() // must be there to compile
* int64_t source_type::GetNumberOfEvent() // must be there to compile
* source_type::SetIndex(int64_t eventIdx) // must be there to compile
* CONTAINER_TYPE source_type::GetOutData() // must be there to compile
* source_type::SetFileProperties(Args&... args) // must be there to compile
* source_type::ExecuteTasks() // must be there to compile
*
* void BindSendPart(std::function<void(int)> callback) // enabled if exists
* void BindGetSocketNumber(std::function<int()> callback) // enabled if exists