7#if !defined(TETENGO_JSON_FILELOCATION_HPP)
8#define TETENGO_JSON_FILELOCATION_HPP
13#include <boost/operators.hpp>
56 [[nodiscard]]
const std::string&
line()
const;
87 std::size_t m_line_index;
89 std::size_t m_column_index;
A file location.
Definition file_location.hpp:22
std::size_t column_index() const
Returns the column index.
void set_column_index(std::size_t index)
Sets a column index.
file_location(std::string line, std::size_t line_index, std::size_t column_index)
Creates a file location.
std::size_t line_index() const
Returns the line index.
friend bool operator==(const file_location &one, const file_location &another)
Returns true when one file location is equal to another.
const std::string & line() const
Returns the line.