Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
lexy::input_location< Input, Counting > Class Template Reference

A location in the input. More...

#include <input_location.hpp>

Public Member Functions

constexpr input_location_anchor< Input > anchor () const
 The closest previous anchor. More...
 
constexpr unsigned column_nr () const
 
constexpr input_location (const Input &input)
 
constexpr unsigned line_nr () const
 
constexpr iterator position () const
 The corresponding position, rounded down to the previous column start. More...
 

Private Types

using iterator = typename lexy::input_reader< Input >::iterator
 
using marker = typename lexy::input_reader< Input >::marker
 

Private Member Functions

constexpr input_location (marker line_begin, unsigned line_nr, iterator column_begin, unsigned column_nr)
 

Private Attributes

iterator _column_begin
 
unsigned _column_nr
 
marker _line_begin
 
unsigned _line_nr
 

Friends

template<typename C , typename I >
constexpr friend auto get_input_location (const I &input, typename lexy::input_reader< I >::iterator position, input_location_anchor< I > anchor) -> input_location< I, C >
 
constexpr friend bool operator!= (const input_location &lhs, const input_location &rhs)
 
constexpr friend bool operator< (const input_location &lhs, const input_location &rhs)
 
constexpr friend bool operator<= (const input_location &lhs, const input_location &rhs)
 
constexpr friend bool operator== (const input_location &lhs, const input_location &rhs)
 
constexpr friend bool operator> (const input_location &lhs, const input_location &rhs)
 
constexpr friend bool operator>= (const input_location &lhs, const input_location &rhs)
 

Detailed Description

template<typename Input, typename Counting = _default_location_counting<Input>>
class lexy::input_location< Input, Counting >

A location in the input.

Definition at line 138 of file input_location.hpp.

Member Typedef Documentation

◆ iterator

template<typename Input , typename Counting = _default_location_counting<Input>>
using lexy::input_location< Input, Counting >::iterator = typename lexy::input_reader<Input>::iterator
private

Definition at line 140 of file input_location.hpp.

◆ marker

template<typename Input , typename Counting = _default_location_counting<Input>>
using lexy::input_location< Input, Counting >::marker = typename lexy::input_reader<Input>::marker
private

Definition at line 141 of file input_location.hpp.

Constructor & Destructor Documentation

◆ input_location() [1/2]

template<typename Input , typename Counting = _default_location_counting<Input>>
constexpr lexy::input_location< Input, Counting >::input_location ( const Input &  input)
inlineexplicitconstexpr

Definition at line 144 of file input_location.hpp.

◆ input_location() [2/2]

template<typename Input , typename Counting = _default_location_counting<Input>>
constexpr lexy::input_location< Input, Counting >::input_location ( marker  line_begin,
unsigned  line_nr,
iterator  column_begin,
unsigned  column_nr 
)
inlineconstexprprivate

Definition at line 199 of file input_location.hpp.

Member Function Documentation

◆ anchor()

template<typename Input , typename Counting = _default_location_counting<Input>>
constexpr input_location_anchor<Input> lexy::input_location< Input, Counting >::anchor ( ) const
inlineconstexpr

The closest previous anchor.

Definition at line 150 of file input_location.hpp.

◆ column_nr()

template<typename Input , typename Counting = _default_location_counting<Input>>
constexpr unsigned lexy::input_location< Input, Counting >::column_nr ( ) const
inlineconstexpr

Definition at line 159 of file input_location.hpp.

◆ line_nr()

template<typename Input , typename Counting = _default_location_counting<Input>>
constexpr unsigned lexy::input_location< Input, Counting >::line_nr ( ) const
inlineconstexpr

Definition at line 155 of file input_location.hpp.

◆ position()

template<typename Input , typename Counting = _default_location_counting<Input>>
constexpr iterator lexy::input_location< Input, Counting >::position ( ) const
inlineconstexpr

The corresponding position, rounded down to the previous column start.

Definition at line 165 of file input_location.hpp.

Friends And Related Function Documentation

◆ get_input_location

template<typename Input , typename Counting = _default_location_counting<Input>>
template<typename C , typename I >
constexpr friend auto get_input_location ( const I &  input,
typename lexy::input_reader< I >::iterator  position,
input_location_anchor< I >  anchor 
) -> input_location< I, C >
friend

◆ operator!=

template<typename Input , typename Counting = _default_location_counting<Input>>
constexpr friend bool operator!= ( const input_location< Input, Counting > &  lhs,
const input_location< Input, Counting > &  rhs 
)
friend

Definition at line 174 of file input_location.hpp.

◆ operator<

template<typename Input , typename Counting = _default_location_counting<Input>>
constexpr friend bool operator< ( const input_location< Input, Counting > &  lhs,
const input_location< Input, Counting > &  rhs 
)
friend

Definition at line 179 of file input_location.hpp.

◆ operator<=

template<typename Input , typename Counting = _default_location_counting<Input>>
constexpr friend bool operator<= ( const input_location< Input, Counting > &  lhs,
const input_location< Input, Counting > &  rhs 
)
friend

Definition at line 185 of file input_location.hpp.

◆ operator==

template<typename Input , typename Counting = _default_location_counting<Input>>
constexpr friend bool operator== ( const input_location< Input, Counting > &  lhs,
const input_location< Input, Counting > &  rhs 
)
friend

Definition at line 170 of file input_location.hpp.

◆ operator>

template<typename Input , typename Counting = _default_location_counting<Input>>
constexpr friend bool operator> ( const input_location< Input, Counting > &  lhs,
const input_location< Input, Counting > &  rhs 
)
friend

Definition at line 189 of file input_location.hpp.

◆ operator>=

template<typename Input , typename Counting = _default_location_counting<Input>>
constexpr friend bool operator>= ( const input_location< Input, Counting > &  lhs,
const input_location< Input, Counting > &  rhs 
)
friend

Definition at line 193 of file input_location.hpp.

Member Data Documentation

◆ _column_begin

template<typename Input , typename Counting = _default_location_counting<Input>>
iterator lexy::input_location< Input, Counting >::_column_begin
private

Definition at line 205 of file input_location.hpp.

◆ _column_nr

template<typename Input , typename Counting = _default_location_counting<Input>>
unsigned lexy::input_location< Input, Counting >::_column_nr
private

Definition at line 206 of file input_location.hpp.

◆ _line_begin

template<typename Input , typename Counting = _default_location_counting<Input>>
marker lexy::input_location< Input, Counting >::_line_begin
private

Definition at line 204 of file input_location.hpp.

◆ _line_nr

template<typename Input , typename Counting = _default_location_counting<Input>>
unsigned lexy::input_location< Input, Counting >::_line_nr
private

Definition at line 206 of file input_location.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