souffle  2.0.2-371-g6315b36
Public Member Functions | Data Fields | Friends
souffle::SrcLocation::Point Struct Reference

A class locating a single point in an input file. More...

#include <SrcLocation.h>

Collaboration diagram for souffle::SrcLocation::Point:
Collaboration graph

Public Member Functions

bool operator< (const Point &other) const
 A comparison for points. More...
 
bool operator> (const Point &other) const
 
void print (std::ostream &out) const
 

Data Fields

int column
 The column in the source file. More...
 
int line
 The line in the source file. More...
 

Friends

std::ostream & operator<< (std::ostream &out, const Point &loc)
 Enables locations to be printed. More...
 

Detailed Description

A class locating a single point in an input file.

Definition at line 41 of file SrcLocation.h.

Member Function Documentation

◆ operator<()

bool souffle::SrcLocation::Point::operator< ( const Point other) const
inline

A comparison for points.

Definition at line 55 of file SrcLocation.h.

60  {};

◆ operator>()

bool souffle::SrcLocation::Point::operator> ( const Point other) const
inline

Definition at line 59 of file SrcLocation.h.

60  {};
61 

◆ print()

void souffle::SrcLocation::Point::print ( std::ostream &  out) const
inline

Definition at line 63 of file SrcLocation.h.

63  {};
64 
65  /** A comparison for source locations */

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const Point loc 
)
friend

Enables locations to be printed.

Definition at line 68 of file SrcLocation.h.

Field Documentation

◆ column

int souffle::SrcLocation::Point::column

The column in the source file.

Definition at line 52 of file SrcLocation.h.

◆ line

int souffle::SrcLocation::Point::line

The line in the source file.

Definition at line 49 of file SrcLocation.h.


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