diff options
author | Matteo Martincigh <matteo.martincigh@arm.com> | 2019-10-07 12:35:21 +0100 |
---|---|---|
committer | Jim Flynn Arm <jim.flynn@arm.com> | 2019-10-08 08:22:51 +0000 |
commit | c2728f95086c54aa842e4c1dae8f3b5c290a72fa (patch) | |
tree | 82002c3d0c97abfeed905d0e922579dab09b2c31 /src/profiling/CommandHandlerFunctor.hpp | |
parent | e61ffd00a37f02338129e92d65be2f01600014c0 (diff) | |
download | armnn-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.hpp | 7 |
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; |