souffle
2.0.2-371-g6315b36
|
A class describing a range in an input file. More...
#include <SrcLocation.h>
Data Structures | |
struct | Point |
A class locating a single point in an input file. More... | |
Public Member Functions | |
std::string | extloc () const |
An extended string describing this location in a end-user friendly way. More... | |
bool | operator< (const SrcLocation &other) const |
A comparison for source locations. More... | |
void | print (std::ostream &out) const |
void | setFilename (std::string filename) |
Data Fields | |
Point | end = {} |
The End location. More... | |
std::vector< std::string > | filenames |
The file referred to. More... | |
Point | start = {} |
The start location. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &out, const SrcLocation &range) |
Enables ranges to be printed. More... | |
A class describing a range in an input file.
Definition at line 32 of file SrcLocation.h.
std::string souffle::SrcLocation::extloc | ( | ) | const |
An extended string describing this location in a end-user friendly way.
Definition at line 93 of file SrcLocation.cpp.
bool souffle::SrcLocation::operator< | ( | const SrcLocation & | other | ) | const |
void souffle::SrcLocation::print | ( | std::ostream & | out | ) | const |
Definition at line 137 of file SrcLocation.cpp.
void souffle::SrcLocation::setFilename | ( | std::string | filename | ) |
Definition at line 78 of file SrcLocation.cpp.
|
friend |
Enables ranges to be printed.
Definition at line 88 of file SrcLocation.h.
Point souffle::SrcLocation::end = {} |
The End location.
Definition at line 75 of file SrcLocation.h.
std::vector<std::string> souffle::SrcLocation::filenames |
The file referred to.
Definition at line 69 of file SrcLocation.h.
Point souffle::SrcLocation::start = {} |
The start location.
Definition at line 72 of file SrcLocation.h.