Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
lexy::argv_iterator Class Reference

An iterator over the command-line arguments. More...

#include <argv_input.hpp>

Inheritance diagram for lexy::argv_iterator:
Inheritance graph
[legend]

Public Member Functions

constexpr argv_iterator () noexcept
 
constexpr void decrement () noexcept
 
constexpr const char & deref () const noexcept
 
constexpr bool equal (argv_iterator rhs) const noexcept
 
constexpr void increment () noexcept
 
constexpr bool is_end () const noexcept
 
- Public Member Functions inherited from lexy::_detail::bidirectional_iterator_base< argv_iterator, const char >
constexpr argv_iteratoroperator-- () noexcept
 
constexpr argv_iterator operator-- (int) noexcept
 
- Public Member Functions inherited from lexy::_detail::forward_iterator_base< argv_iterator, const char, const char &, const const char * >
constexpr reference operator* () const noexcept
 
constexpr argv_iteratoroperator++ () noexcept
 
constexpr argv_iterator operator++ (int) noexcept
 
constexpr pointer operator-> () const noexcept
 

Private Member Functions

constexpr argv_iterator (char **argument, char *c) noexcept
 

Private Attributes

char ** _arg
 
char * _c
 

Friends

constexpr friend argv_iterator argv_begin (int argc, char *argv[]) noexcept
 Returns an iterator to the beginning of the command-line arguments. More...
 
constexpr friend argv_iterator argv_end (int argc, char *argv[]) noexcept
 Returns an iterator one past the end of the command-line arguments. More...
 

Additional Inherited Members

- Public Types inherited from lexy::_detail::bidirectional_iterator_base< argv_iterator, const char >
using iterator_category = std::bidirectional_iterator_tag
 
- Public Types inherited from lexy::_detail::forward_iterator_base< argv_iterator, const char, const char &, const const char * >
using difference_type = std::ptrdiff_t
 
using iterator_category = std::forward_iterator_tag
 
using pointer = lexy::_detail::type_or< const const char *, _proxy_pointer< value_type > >
 
using reference = const char &
 
using value_type = std::remove_cv_t< const char >
 

Detailed Description

An iterator over the command-line arguments.

Definition at line 23 of file argv_input.hpp.

Constructor & Destructor Documentation

◆ argv_iterator() [1/2]

constexpr lexy::argv_iterator::argv_iterator ( )
inlineconstexprnoexcept

Definition at line 26 of file argv_input.hpp.

◆ argv_iterator() [2/2]

constexpr lexy::argv_iterator::argv_iterator ( char **  argument,
char *  c 
)
inlineexplicitconstexprprivatenoexcept

Definition at line 78 of file argv_input.hpp.

Member Function Documentation

◆ decrement()

constexpr void lexy::argv_iterator::decrement ( )
inlineconstexprnoexcept

Definition at line 47 of file argv_input.hpp.

◆ deref()

constexpr const char& lexy::argv_iterator::deref ( ) const
inlineconstexprnoexcept

Definition at line 28 of file argv_input.hpp.

◆ equal()

constexpr bool lexy::argv_iterator::equal ( argv_iterator  rhs) const
inlineconstexprnoexcept

Definition at line 62 of file argv_input.hpp.

◆ increment()

constexpr void lexy::argv_iterator::increment ( )
inlineconstexprnoexcept

Definition at line 33 of file argv_input.hpp.

◆ is_end()

constexpr bool lexy::argv_iterator::is_end ( ) const
inlineconstexprnoexcept

Definition at line 66 of file argv_input.hpp.

Friends And Related Function Documentation

◆ argv_begin

constexpr friend argv_iterator argv_begin ( int  argc,
char *  argv[] 
)
friend

Returns an iterator to the beginning of the command-line arguments.

Definition at line 89 of file argv_input.hpp.

◆ argv_end

constexpr friend argv_iterator argv_end ( int  argc,
char *  argv[] 
)
friend

Returns an iterator one past the end of the command-line arguments.

Definition at line 99 of file argv_input.hpp.

Member Data Documentation

◆ _arg

char** lexy::argv_iterator::_arg
private

Definition at line 81 of file argv_input.hpp.

◆ _c

char* lexy::argv_iterator::_c
private

Definition at line 82 of file argv_input.hpp.


The documentation for this class was generated from the following file:


behaviortree_cpp_v4
Author(s): Davide Faconti
autogenerated on Fri Dec 13 2024 03:19:19