comparison vamp-support/PluginHandleMapper.h @ 265:7ada63fe1084

Some neatening
author Chris Cannam <cannam@all-day-breakfast.com>
date Fri, 12 Oct 2018 22:18:37 +0100
parents 427c4c725085
children 8c8b5fe47b33
comparison
equal deleted inserted replaced
264:37760b5376b3 265:7ada63fe1084
58 */ 58 */
59 59
60 class PluginHandleMapper 60 class PluginHandleMapper
61 { 61 {
62 public: 62 public:
63 typedef uint32_t Handle; // unsigned to avoid undefined behaviour on possible wrap 63 /**
64 * The handle type. This is 32-bit rather than 64-bit in order to
65 * be representable as a JSON number without rounding, and is
66 * unsigned to avoid C++ undefined behaviour in places where it
67 * could wrap around.
68 */
69 typedef uint32_t Handle;
70
64 const Handle INVALID_HANDLE = 0; 71 const Handle INVALID_HANDLE = 0;
65 72
66 virtual ~PluginHandleMapper() noexcept { } 73 virtual ~PluginHandleMapper() noexcept { }
67 74
68 /** 75 /**