38 EnumeratorIterator::EnumeratorIterator(DeviceList
const &devices,
40 : devs(&devices), pos(posn){};
42 EnumeratorIterator &EnumeratorIterator::operator++() {
43 if (pos < devs->
size()) {
49 USBSerialDevice
const &EnumeratorIterator::operator*()
const {
54 return pos != other.pos || devs != other.devs;
57 Enumerator::Enumerator(uint16_t vendorID, uint16_t productID)
58 : m_impl(new EnumeratorImpl(vendorID, productID)){};
60 Enumerator::Enumerator() : m_impl(new EnumeratorImpl()){};
62 : m_impl(
std::move(other.m_impl)) {}
63 Enumerator::~Enumerator() {}
65 EnumeratorIterator Enumerator::begin() {
return m_impl->begin(); }
66 EnumeratorIterator Enumerator::end() {
return m_impl->end(); }
detail::size< coerce_list< Ts...>> size
Get the size of a list (number of elements.)
bool operator!=(const OSVR_TimeValue &tvA, const OSVR_TimeValue &tvB)
Operator == overload for time values.