HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions | Friends
v1::parse_location Class Reference

#include <hikogui/parse_location.hpp>

Public Member Functions

 parse_location () noexcept
 Construct an empty location object.
 
 parse_location (std::shared_ptr< std::filesystem::path > const &file) noexcept
 Construct a location.
 
 parse_location (forward_of< std::filesystem::path > auto &&file) noexcept
 Construct a location.
 
 parse_location (forward_of< std::shared_ptr< std::filesystem::path > > auto &&file, int line, int column) noexcept
 Construct a location.
 
 parse_location (int line, int column) noexcept
 Construct a location.
 
bool has_file () const noexcept
 
std::filesystem::path file () const noexcept
 
int line () const noexcept
 
int column () const noexcept
 
std::pair< int, intline_and_column () const noexcept
 
void set_file (forward_of< std::shared_ptr< std::filesystem::path > > auto &&file) noexcept
 
void set_file (forward_of< std::filesystem::path > auto &&file) noexcept
 
void set_line (int line) noexcept
 
void set_column (int column) noexcept
 
void set_line_and_column (std::pair< int, int > line_and_column) noexcept
 
void increment_column () noexcept
 
void tab_column () noexcept
 
void increment_line () noexcept
 
parse_locationoperator+= (char c) noexcept
 
parse_locationoperator+= (std::string const &s) noexcept
 
parse_locationoperator+= (char const *s) noexcept
 
parse_locationoperator+= (parse_location const &location) noexcept
 

Friends

std::string to_string (parse_location const &l) noexcept
 
std::ostreamoperator<< (std::ostream &os, parse_location const &l)
 

Detailed Description

Location inside a configuration file.

Constructor & Destructor Documentation

◆ parse_location() [1/5]

v1::parse_location::parse_location ( )
inlinenoexcept

Construct an empty location object.

◆ parse_location() [2/5]

v1::parse_location::parse_location ( std::shared_ptr< std::filesystem::path > const & file)
inlinenoexcept

Construct a location.

Parameters
fileAn URL to the file where the token was found.

◆ parse_location() [3/5]

v1::parse_location::parse_location ( forward_of< std::filesystem::path > auto && file)
inlinenoexcept

Construct a location.

Parameters
fileAn URL to the file where the token was found.

◆ parse_location() [4/5]

v1::parse_location::parse_location ( forward_of< std::shared_ptr< std::filesystem::path > > auto && file,
int line,
int column )
inlinenoexcept

Construct a location.

Parameters
fileAn URL to the file where the token was found.
lineLine number where the token was found.
columnColumn where the token was found.

◆ parse_location() [5/5]

v1::parse_location::parse_location ( int line,
int column )
inlinenoexcept

Construct a location.

Parameters
lineLine number where the token was found.
columnColumn where the token was found.

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