Ftdi::List(3)
π NAME π
Ftdi::List(3) β from the manual named libftdi1 β is literally Device list. That's the name, bestie. Device list. Periodt. π
πΈ SYNOPSIS πΈ
Bestie, here's the include and the whole class moment:
#include <ftdi.hpp>
π§ Classes π§
class Privateβ yep, that's the class listed here.
π Public Types π
typedef std::list< Context > ListTypeβ list type storingContextobjects. so many Contextstypedef ListType::iterator iteratorβ iterator type for the container.typedef ListType::const_iterator const_iteratorβ const iterator type for the container.typedef ListType::reverse_iterator reverse_iteratorβ reverse iterator type for the container.typedef ListType::const_reverse_iterator const_reverse_iteratorβ const reverse iterator type for the container.
π«Ά Public Member Functions π«Ά
List (struct ftdi_device_list *devlist=0)β the constructor, withdevlistdefaulting to0.~List ()β the destructor.iterator begin ()β begin iterator.iterator end ()β end iterator.const_iterator begin () constβ const begin iterator.const_iterator end () constβ const end iterator.reverse_iterator rbegin ()β reverse begin iterator.reverse_iterator rend ()β reverse end iterator.const_reverse_iterator rbegin () constβ const reverse begin iterator.const_reverse_iterator rend () constβ const reverse end iterator.ListType::size_type size () constβ size of the list.bool empty () constβ is it empty?void clear ()β clears all the things.void push_back (const Context &element)β push a copy to the back.void push_front (const Context &element)β push a copy to the front.iterator erase (iterator pos)β erase one element.iterator erase (iterator beg, iterator end)β erase a range.
β Static Public Member Functions β
static List * find_all (Context &context, int vendor, int product)β the staticfind_allmember.
π₯ Detailed Description π₯
Device list. That's the vibe.
Definition at line 176 of file ftdi.hpp.
π Member Typedef Documentation π
typedef std::list<Context> Ftdi::List::ListType
List type storing Context objects. Container energy fr fr.
Definition at line 185 of file ftdi.hpp.
typedef ListType::iterator Ftdi::List::iterator
Iterator type for the container.
Definition at line 187 of file ftdi.hpp.
typedef ListType::const_iterator Ftdi::List::const_iterator
Const iterator type for the container.
Definition at line 189 of file ftdi.hpp.
typedef ListType::reverse_iterator Ftdi::List::reverse_iterator
Reverse iterator type for the container.
Definition at line 191 of file ftdi.hpp.
typedef ListType::const_reverse_iterator Ftdi::List::const_reverse_iterator
Const reverse iterator type for the container.
Definition at line 193 of file ftdi.hpp.
π§ Constructor & Destructor Documentation π§
Ftdi::List::List (struct ftdi_device_list * devlist = 0)
Definition at line 528 of file ftdi.cpp.
References ftdi_device_list::dev, Ftdi::Context::get_strings(), ftdi_device_list::next, and Ftdi::Context::set_usb_device().
Referenced by find_all().
Ftdi::List::~List ()
Definition at line 544 of file ftdi.cpp.
π₯ Member Function Documentation π₯
List * Ftdi::List::find_all (Context & context, int vendor, int product)
[static]
Definition at line 695 of file ftdi.cpp.
References Ftdi::Context::context(), ftdi_usb_find_all(), and List().
List::iterator Ftdi::List::begin ()
Returns the begin iterator for accessing the contained list elements.
Returns: Iterator.
Definition at line 552 of file ftdi.cpp.
List::iterator Ftdi::List::end ()
Returns the end iterator for accessing the contained list elements.
Returns: Iterator.
Definition at line 561 of file ftdi.cpp.
Referenced by erase().
List::const_iterator Ftdi::List::begin () const
Returns the begin iterator for accessing the contained list elements.
Returns: Const iterator.
Definition at line 570 of file ftdi.cpp.
List::const_iterator Ftdi::List::end () const
Returns the end iterator for accessing the contained list elements.
Returns: Const iterator.
Definition at line 579 of file ftdi.cpp.
List::reverse_iterator Ftdi::List::rbegin ()
Returns the begin reverse iterator for accessing the contained list elements.
Returns: Reverse iterator.
Definition at line 588 of file ftdi.cpp.
List::reverse_iterator Ftdi::List::rend ()
Returns the end reverse iterator for accessing the contained list elements.
Returns: Reverse iterator.
Definition at line 597 of file ftdi.cpp.
List::const_reverse_iterator Ftdi::List::rbegin () const
Returns the begin reverse iterator for accessing the contained list elements.
Returns: Const reverse iterator.
Definition at line 606 of file ftdi.cpp.
List::const_reverse_iterator Ftdi::List::rend () const
Returns the end reverse iterator for accessing the contained list elements.
Returns: Const reverse iterator.
Definition at line 615 of file ftdi.cpp.
List::ListType::size_type Ftdi::List::size () const
Get number of elements stored in the list.
Returns: Number of elements.
Definition at line 625 of file ftdi.cpp.
bool Ftdi::List::empty () const
Check if list is empty.
Returns: True if empty, false otherwise.
Definition at line 634 of file ftdi.cpp.
void Ftdi::List::clear ()
Removes all elements. Invalidates all iterators. Does it in a non-throwing way and also makes sure we really free the allocated memory.
β οΈ Invalidates all iterators β yes, all of them, bestie. And it does this in a non-throwing way while making sure the allocated memory is really freed.
Definition at line 644 of file ftdi.cpp.
References ftdi_list_free().
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 660 of file ftdi.cpp.
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 669 of file ftdi.cpp.
List::iterator Ftdi::List::erase (iterator pos)
Erase one element pointed by iterator.
Parameters:
posβ Element to erase.
Returns: Position of the following element (or end()).
Definition at line 679 of file ftdi.cpp.
List::iterator Ftdi::List::erase (iterator beg, iterator end)
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 690 of file ftdi.cpp.
References end().
π Author π
Generated automatically by Doxygen for libftdi1 from the source code.
Version 1.5 Β· Wed Nov 6 2024 09:58:53 β and that's the footer tea, bestie. Bye! πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: libftdi1-devel 1.5.42+git.de9f01e-160000.3.2 Β· LGPL-2.1-only AND GPL-2.0-only AND GPL-2.0-with-classpath-exception
- opensuse-leap 16.0: libftdi1-devel 1.5.42+git.de9f01e-160000.3.2 Β· LGPL-2.1-only AND GPL-2.0-only AND GPL-2.0-with-classpath-exception
- opensuse-leap 16.0: libftdi1-devel 1.5.42+git.de9f01e-160000.3.2 Β· LGPL-2.1-only AND GPL-2.0-only AND GPL-2.0-with-classpath-exception
- opensuse-leap 16.0: libftdi1-devel 1.5.42+git.de9f01e-160000.3.2 Β· LGPL-2.1-only AND GPL-2.0-only AND GPL-2.0-with-classpath-exception
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms