Puma Reference Manual | Puma::CFileInfo Class Reference |
Semantic information about a source file (translation unit). More...
#include <Puma/CFileInfo.h>
Public Member Functions | |
CFileInfo () | |
Constructor. | |
~CFileInfo () | |
Destructor. | |
Unit * | Primary () const |
Get the token chain of the source file. | |
void | Primary (Unit *unit) |
Set the token chain of the source file. | |
bool | haveCBuiltins () const |
Check if C compiler build-in functions are defined for the source file. | |
bool | haveCCBuiltins () const |
Check if C++ compiler build-in functions are defined for the source file. | |
void | haveCBuiltins (bool v) |
Set whether C compiler build-in functions are defined for the source file. | |
void | haveCCBuiltins (bool v) |
Set whether C++ compiler build-in functions are defined for the source file. |
Semantic information about a source file (translation unit).
A source file has its own scope, the so-called file scope.
Puma::CFileInfo::CFileInfo | ( | ) | [inline] |
Constructor.
Puma::CFileInfo::~CFileInfo | ( | ) | [inline] |
Destructor.
If the object type is CObjectInfo::FILE_INFO, then CObjectInfo::CleanUp() is called.
bool Puma::CFileInfo::haveCBuiltins | ( | ) | const [inline] |
Check if C compiler build-in functions are defined for the source file.
void Puma::CFileInfo::haveCBuiltins | ( | bool | v | ) | [inline] |
Set whether C compiler build-in functions are defined for the source file.
v | true if C build-in functions are defined. |
bool Puma::CFileInfo::haveCCBuiltins | ( | ) | const [inline] |
Check if C++ compiler build-in functions are defined for the source file.
void Puma::CFileInfo::haveCCBuiltins | ( | bool | v | ) | [inline] |
Set whether C++ compiler build-in functions are defined for the source file.
v | true if C++ build-in functions are defined. |
Unit * Puma::CFileInfo::Primary | ( | ) | const [inline] |
Get the token chain of the source file.
void Puma::CFileInfo::Primary | ( | Unit * | unit | ) | [inline] |
Set the token chain of the source file.
unit | The token chain. |