PhotoGENius V1.0.0
A basic library for generating photorealistic images, developed for the course Numerical techniques for photorealistic image generation.
Public Member Functions | Public Attributes | List of all members
PGENLib.SourceLocation Class Reference

The class points out a specific location in a source file. The fields are:

FileName name of the file or empty string;
LineNum number of line;
ColNum number of column;
More...

Public Member Functions

 SourceLocation (string fileName, int lineNum=0, int colNum=0)
 Constructor. More...
 
 SourceLocation (int lineNum=0, int colNum=0)
 Constructor. More...
 
SourceLocation ShallowCopy ()
 Copy constructor for the class. More...
 
override string ToString ()
 Print a source location. More...
 

Public Attributes

string FileName
 
int LineNum
 
int ColNum
 

Detailed Description

The class points out a specific location in a source file. The fields are:

FileName name of the file or empty string;
LineNum number of line;
ColNum number of column;

Constructor & Destructor Documentation

◆ SourceLocation() [1/2]

PGENLib.SourceLocation.SourceLocation ( string  fileName,
int  lineNum = 0,
int  colNum = 0 
)

Constructor.

Parameters
fileName
lineNum
colNum

◆ SourceLocation() [2/2]

PGENLib.SourceLocation.SourceLocation ( int  lineNum = 0,
int  colNum = 0 
)

Constructor.

Parameters
lineNum
colNum

Member Function Documentation

◆ ShallowCopy()

SourceLocation PGENLib.SourceLocation.ShallowCopy ( )

Copy constructor for the class.

Returns

◆ ToString()

override string PGENLib.SourceLocation.ToString ( )

Print a source location.

Returns

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