PhoenixPresentation  2.0.0
Set of cmake function to automate presentation generation
PLocation.cpp File Reference
#include "PLocation.h"
+ Include dependency graph for PLocation.cpp:

Go to the source code of this file.

Functions

bool operator!= (const PLocation &other1, const PLocation &other2)
 Définition de l'opérateur ami != de la classe PLocation. More...
 
std::ostream & operator<< (std::ostream &out, const PLocation &other)
 Définition de l'opérateur ami << de la classe PLocation. More...
 
bool operator== (const PLocation &other1, const PLocation &other2)
 Définition de l'opérateur ami == de la classe PLocation. More...
 

Function Documentation

◆ operator!=()

bool operator!= ( const PLocation other1,
const PLocation other2 
)

Définition de l'opérateur ami != de la classe PLocation.

Parameters
other1: PLocation
other2: PLocation
Returns
false si other1 et other2 sont égaux, true sinon

Definition at line 115 of file PLocation.cpp.

115  {
116  return (other1.p_fileName != other2.p_fileName || other1.p_line != other2.p_line);
117 }
PPath p_fileName
fichier vers lequel le PLocation pointe
Definition: PLocation.h:40
size_t p_line
ligne du fichier vers lequel le PLocation pointe
Definition: PLocation.h:42

◆ operator<<()

std::ostream& operator<< ( std::ostream &  out,
const PLocation other 
)

Définition de l'opérateur ami << de la classe PLocation.

Parameters
out: sortie standart de la console (cout)
other: PLocation à affiche dans la console
Returns
sortie standart de la console (cout)

Definition at line 124 of file PLocation.cpp.

124  {
125  out << "'" << other.p_fileName << "':" << other.p_line << ":" << other.p_column;
126  return out;
127 }
size_t p_column
COlonne du fichier vers laquelle le PLocation pointe.
Definition: PLocation.h:44

◆ operator==()

bool operator== ( const PLocation other1,
const PLocation other2 
)

Définition de l'opérateur ami == de la classe PLocation.

Parameters
other1: PLocation
other2: PLocation
Returns
true si other1 et other2 sont égaux, false sinonPLocation

Definition at line 106 of file PLocation.cpp.

106  {
107  return (other1.p_fileName == other2.p_fileName && other1.p_line == other2.p_line);
108 }