GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::json::SourceLocation Struct Reference

Line and column numbers of a location in a JSON source string. More...

#include <GREM/core/formats/json.hpp>

Public Member Functions

constexpr bool operator== (const SourceLocation &other) const =default
 Compare this source location to another for equality.

Public Attributes

size_t lineNumber = 1
 Line number, starting at 1 for the first line.
size_t columnNumber = 1
 Column number, starting at 1 for the first column.

Detailed Description

Line and column numbers of a location in a JSON source string.

Member Function Documentation

◆ operator==()

bool grem::json::SourceLocation::operator== ( const SourceLocation & other) const
nodiscardconstexprdefault

Compare this source location to another for equality.

Parameters
otherthe source location to compare this one to.
Returns
true if the source locations are equal, false otherwise.

Member Data Documentation

◆ lineNumber

size_t grem::json::SourceLocation::lineNumber = 1

Line number, starting at 1 for the first line.

A value of 0 means no particular line.

◆ columnNumber

size_t grem::json::SourceLocation::columnNumber = 1

Column number, starting at 1 for the first column.

A value of 0 means no particular column.


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