top | up | prev | next

FileTable Class

Definition at line 101 of Module.hpp

Member Functions

void Dump(CodeFormatter& formatter)
std::string GetFilePath(int32_t fileIndex) const
bool IsEmpty() const
int32_t NumFilePaths() const
void Read(BinaryReader& reader, bool systemModule)
int32_t RegisterFilePath(const std::string& filePath)
void Write(BinaryWriter& writer, bool systemModule)

Member Variables

std::vector<std::string> filePaths

Member Function Details

Dump Member Function

void cmajor::symbols::FileTable::Dump(CodeFormatter & formatter)

Definition at line 308 of Module.cpp

Calls: cmajor::symbols::FileTable::IsEmpty , soulng::util::CodeFormatter::DecIndent , soulng::util::CodeFormatter::IncIndent , soulng::util::CodeFormatter::WriteLine

Called by: cmajor::symbols::Module::Dump


GetFilePath Member Function

std::string cmajor::symbols::FileTable::GetFilePath(int32_t fileIndex) const

Definition at line 243 of Module.cpp :
 244 {
 245     if (fileIndex >= 0 && fileIndex < filePaths.size())
 246     {
 247         return filePaths[fileIndex];
 248     }
 249     return std::string();
 250 }


Declaration at line 105 of Module.hpp

Called by: cmajor::symbols::Module::CheckUpToDate , cmajor::symbols::Module::GetFilePath , cmajor::symbols::Module::MakeFilePathFileIndexMap , cmajor::symbols::Module::UpdateSourceFileModuleMap , cmajor::symbols::Module::WriteProjectDebugInfoFile


IsEmpty Member Function

bool cmajor::symbols::FileTable::IsEmpty() const

Definition at line 107 of Module.hpp :
107 { return filePaths.empty(); }

Called by: cmajor::symbols::FileTable::Dump , cmajor::symbols::Module::CheckUpToDate , cmajor::symbols::Module::PrepareForCompilation , cmajor::symbols::Module::ReadHeader


NumFilePaths Member Function

int32_t cmajor::symbols::FileTable::NumFilePaths() const

Definition at line 106 of Module.hpp :
106 { return filePaths.size(); }

Called by: cmajor::symbols::Module::CheckUpToDate , cmajor::symbols::Module::MakeFilePathFileIndexMap , cmajor::symbols::Module::UpdateSourceFileModuleMap , cmajor::symbols::Module::WriteProjectDebugInfoFile


Read Member Function

void cmajor::symbols::FileTable::Read(BinaryReader & reader, bool systemModule)

Definition at line 279 of Module.cpp

Calls: soulng::util::BinaryReader::ReadULEB128UInt , soulng::util::BinaryReader::ReadUtf8String , soulng::util::Path::Combine

Called by: cmajor::symbols::Module::ReadHeader


RegisterFilePath Member Function

int32_t cmajor::symbols::FileTable::RegisterFilePath(const std::string& filePath)

Definition at line 236 of Module.cpp :
 237 {
 238     int32_t fileIndex = filePaths.size();
 239     filePaths.push_back(filePath);
 240     return fileIndex;
 241 }


Declaration at line 104 of Module.hpp


Write Member Function

void cmajor::symbols::FileTable::Write(BinaryWriter & writer, bool systemModule)

Definition at line 252 of Module.cpp

Calls: soulng::util::BinaryWriter::Write , soulng::util::BinaryWriter::WriteULEB128UInt

Called by: cmajor::symbols::Module::Write


top | up | prev | next