19 #ifndef EVORAL_PARAMETER_HPP
20 #define EVORAL_PARAMETER_HPP
25 #include <boost/shared_ptr.hpp>
43 inline Parameter(uint32_t type, uint8_t channel=0, uint32_t
id=0)
44 : _type(type), _id(id), _channel(channel)
47 inline uint32_t
type()
const {
return _type; }
48 inline uint8_t
channel()
const {
return _channel; }
49 inline uint32_t
id()
const {
return _id; }
57 return (_type ==
id._type && _channel ==
id._channel && _id ==
id._id );
69 if (_type < other.
_type) {
71 }
else if (_type == other.
_type && _channel < other.
_channel) {
73 }
else if (_type == other.
_type && _channel == other.
_channel && _id < other.
_id ) {
80 inline operator bool()
const {
return (_type != 0); }
90 #endif // EVORAL_PARAMETER_HPP
Parameter(uint32_t type, uint8_t channel=0, uint32_t id=0)
bool operator<(const Parameter &other) const
bool operator==(const Parameter &id) const
bool operator!=(const Parameter &id) const
bool operator==(Range< T > a, Range< T > b)