Device list.
More...
#include <ftdi.hpp>
Device list.
Definition at line 175 of file ftdi.hpp.
§ ListType
List type storing "Context" objects.
Definition at line 184 of file ftdi.hpp.
§ iterator
Iterator type for the container.
Definition at line 186 of file ftdi.hpp.
§ const_iterator
Const iterator type for the container.
Definition at line 188 of file ftdi.hpp.
§ reverse_iterator
Reverse iterator type for the container.
Definition at line 190 of file ftdi.hpp.
§ const_reverse_iterator
Const reverse iterator type for the container.
Definition at line 192 of file ftdi.hpp.
§ List()
§ ~List()
§ find_all()
List * Ftdi::List::find_all |
( |
Context & |
context, |
|
|
int |
vendor, |
|
|
int |
product |
|
) |
| |
|
static |
§ begin() [1/2]
Return begin iterator for accessing the contained list elements
- Returns
- Iterator
Definition at line 500 of file ftdi.cpp.
§ end() [1/2]
Return end iterator for accessing the contained list elements
- Returns
- Iterator
Definition at line 509 of file ftdi.cpp.
§ begin() [2/2]
Return begin iterator for accessing the contained list elements
- Returns
- Const iterator
Definition at line 518 of file ftdi.cpp.
§ end() [2/2]
Return end iterator for accessing the contained list elements
- Returns
- Const iterator
Definition at line 527 of file ftdi.cpp.
§ rbegin() [1/2]
Return begin reverse iterator for accessing the contained list elements
- Returns
- Reverse iterator
Definition at line 536 of file ftdi.cpp.
§ rend() [1/2]
Return end reverse iterator for accessing the contained list elements
- Returns
- Reverse iterator
Definition at line 545 of file ftdi.cpp.
§ rbegin() [2/2]
Return begin reverse iterator for accessing the contained list elements
- Returns
- Const reverse iterator
Definition at line 554 of file ftdi.cpp.
§ rend() [2/2]
Return end reverse iterator for accessing the contained list elements
- Returns
- Const reverse iterator
Definition at line 563 of file ftdi.cpp.
§ size()
List::ListType::size_type Ftdi::List::size |
( |
| ) |
const |
Get number of elements stored in the list
- Returns
- Number of elements
Definition at line 573 of file ftdi.cpp.
§ empty()
bool Ftdi::List::empty |
( |
| ) |
const |
Check if list is empty
- Returns
- True if empty, false otherwise
Definition at line 582 of file ftdi.cpp.
§ clear()
void Ftdi::List::clear |
( |
| ) |
|
Removes all elements. Invalidates all iterators. Do it in a non-throwing way and also make sure we really free the allocated memory.
Definition at line 592 of file ftdi.cpp.
References ftdi_list_free().
§ push_back()
void Ftdi::List::push_back |
( |
const Context & |
element | ) |
|
Appends a copy of the element as the new last element.
- Parameters
-
element | Value to copy and append |
Definition at line 608 of file ftdi.cpp.
§ push_front()
void Ftdi::List::push_front |
( |
const Context & |
element | ) |
|
Adds a copy of the element as the new first element.
- Parameters
-
element | Value to copy and add |
Definition at line 617 of file ftdi.cpp.
§ erase() [1/2]
Erase one element pointed by iterator
- Parameters
-
- Returns
- Position of the following element (or end())
Definition at line 627 of file ftdi.cpp.
§ erase() [2/2]
Erase a range of elements
- Parameters
-
beg | Begin of range |
end | End of range |
- Returns
- Position of the element after the erased range (or end())
Definition at line 638 of file ftdi.cpp.
The documentation for this class was generated from the following files: