aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/CommandHandlerFunctor.hpp
diff options
context:
space:
mode:
authorMatteo Martincigh <matteo.martincigh@arm.com>2019-10-07 12:35:21 +0100
committerJim Flynn Arm <jim.flynn@arm.com>2019-10-08 08:22:51 +0000
commitc2728f95086c54aa842e4c1dae8f3b5c290a72fa (patch)
tree82002c3d0c97abfeed905d0e922579dab09b2c31 /src/profiling/CommandHandlerFunctor.hpp
parente61ffd00a37f02338129e92d65be2f01600014c0 (diff)
downloadarmnn-c2728f95086c54aa842e4c1dae8f3b5c290a72fa.tar.gz
IVGCVSW-3937 Refactor and improve the CommandHandleRegistry class
* Added simplified RegisterFunctor method * Code refactoring * Updated the unit tests accordingly Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com> Change-Id: Iee941d898facd9c1ab5366e87c611c99a0468830
Diffstat (limited to 'src/profiling/CommandHandlerFunctor.hpp')
-rw-r--r--src/profiling/CommandHandlerFunctor.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/profiling/CommandHandlerFunctor.hpp b/src/profiling/CommandHandlerFunctor.hpp
index a9a59c145f..2e1e05fd32 100644
--- a/src/profiling/CommandHandlerFunctor.hpp
+++ b/src/profiling/CommandHandlerFunctor.hpp
@@ -18,12 +18,15 @@ namespace profiling
class CommandHandlerFunctor
{
public:
- CommandHandlerFunctor(uint32_t packetId, uint32_t version) : m_PacketId(packetId), m_Version(version) {};
+ CommandHandlerFunctor(uint32_t packetId, uint32_t version)
+ : m_PacketId(packetId)
+ , m_Version(version)
+ {}
uint32_t GetPacketId() const;
uint32_t GetVersion() const;
- virtual void operator()(const Packet& packet) {};
+ virtual void operator()(const Packet& packet) {}
private:
uint32_t m_PacketId;