![]() |
PUMA Library Reference Manual
|
#include <Puma/CSourceInfo.h>
Source file information for an entity.
Stores the file information and start token of the entity in the source file.
Public Member Functions | |
| CSourceInfo () | |
| Constructor. | |
| ~CSourceInfo () | |
| Destructor. | |
| bool | operator== (const CSourceInfo &si) const |
| Check if the source file locations are equal. | |
| bool | operator!= (const CSourceInfo &si) const |
| Check if the source file locations are not equal. | |
| bool | operator< (const CSourceInfo &si) const |
| Check if this source file location is before the given location. | |
| bool | operator> (const CSourceInfo &si) const |
| Check if this source file location is behind the given location. | |
| bool | operator<= (const CSourceInfo &si) const |
| Check if this source file location equals or is before the given location. | |
| bool | operator>= (const CSourceInfo &si) const |
| Check if this source file location equals or is behind the given location. | |
| bool | operator== (const CT_Token *token) const |
| Check if the source file locations are equal. | |
| bool | operator!= (const CT_Token *token) const |
| Check if the source file locations are not equal. | |
| bool | operator< (const CT_Token *token) const |
| Check if this source file location is before the given location. | |
| bool | operator> (const CT_Token *token) const |
| Check if this source file location is behind the given location. | |
| bool | operator<= (const CT_Token *token) const |
| Check if this source file location equals or is before the given location. | |
| bool | operator>= (const CT_Token *token) const |
| Check if this source file location equals or is behind the given location. | |
| bool | operator== (const Token *token) const |
| Check if the source file locations are equal. | |
| CFileInfo * | FileInfo () const |
| Get the source file information. | |
| CT_Token * | StartToken () const |
| Get the start token of the entity in the source file. | |
| const char * | FileName () const |
| Get name of the source file. | |
| int | Line () const |
| Get the line number of the entity in the source file. | |
| int | Column () const |
| Get the column number of the entity in the source file. | |
| Unit * | SrcUnit () const |
| Get the token unit of the source file. | |
| void | FileInfo (CFileInfo *file) |
| Set the source file information. | |
| void | StartToken (CT_Token *token) |
| Set the start token of the entity in the source file. | |
|
inline |
Constructor.
|
inline |
Destructor.
| int Puma::CSourceInfo::Column | ( | ) | const |
Get the column number of the entity in the source file.
|
inline |
Get the source file information.
|
inline |
Set the source file information.
| file | The source file. |
| const char * Puma::CSourceInfo::FileName | ( | ) | const |
Get name of the source file.
| int Puma::CSourceInfo::Line | ( | ) | const |
Get the line number of the entity in the source file.
|
inline |
Check if the source file locations are not equal.
| si | The source file location to compare with. |
|
inline |
Check if the source file locations are not equal.
| token | The token in the source file to compare with. |
| bool Puma::CSourceInfo::operator< | ( | const CSourceInfo & | si | ) | const |
Check if this source file location is before the given location.
| si | The source file location to compare with. |
| bool Puma::CSourceInfo::operator< | ( | const CT_Token * | token | ) | const |
Check if this source file location is before the given location.
| token | The token in the source file to compare with. |
|
inline |
Check if this source file location equals or is before the given location.
| si | The source file location to compare with. |
|
inline |
Check if this source file location equals or is before the given location.
| token | The token in the source file to compare with. |
| bool Puma::CSourceInfo::operator== | ( | const CSourceInfo & | si | ) | const |
Check if the source file locations are equal.
| si | The source file location to compare with. |
| bool Puma::CSourceInfo::operator== | ( | const CT_Token * | token | ) | const |
Check if the source file locations are equal.
| token | The token in the source file to compare with. |
| bool Puma::CSourceInfo::operator== | ( | const Token * | token | ) | const |
Check if the source file locations are equal.
| token | The token in the source file to compare with. |
| bool Puma::CSourceInfo::operator> | ( | const CSourceInfo & | si | ) | const |
Check if this source file location is behind the given location.
| si | The source file location to compare with. |
| bool Puma::CSourceInfo::operator> | ( | const CT_Token * | token | ) | const |
Check if this source file location is behind the given location.
| token | The token in the source file to compare with. |
|
inline |
Check if this source file location equals or is behind the given location.
| si | The source file location to compare with. |
|
inline |
Check if this source file location equals or is behind the given location.
| token | The token in the source file to compare with. |
| Unit * Puma::CSourceInfo::SrcUnit | ( | ) | const |
Get the token unit of the source file.
|
inline |
Get the start token of the entity in the source file.
|
inline |
Set the start token of the entity in the source file.
| token | The start token. |