|
Doxygen
|
Ordered dictionary of FileName objects. More...
#include <src/filename.h>
Public Member Functions | |
| FileDef * | findFileDef (const DString &n, bool &ambig) const |
| Returns the file definition in fnMap that matches the file name n. | |
| DString | showFileDefMatches (const DString &n) const |
| Returns a list of file definitions in fnMap that match the file name n. | |
| Public Member Functions inherited from LinkedMap< FileName, FileNameFn, FileNameFn, std::unordered_multimap< std::string, FileName *, FileNameFn, FileNameFn > > | |
| const FileName * | find (const std::string &key) const |
| FileName * | add (const char *k, Args &&... args) |
| FileName * | prepend (const char *k, Args &&... args) |
| bool | del (const DString &key) |
| Ptr & | operator[] (size_t pos) |
| iterator | begin () |
| iterator | end () |
| reverse_iterator | rbegin () |
| reverse_iterator | rend () |
| bool | empty () const |
| size_t | size () const |
| void | clear () |
Additional Inherited Members | |
| Public Types inherited from LinkedMap< FileName, FileNameFn, FileNameFn, std::unordered_multimap< std::string, FileName *, FileNameFn, FileNameFn > > | |
| using | Ptr |
| using | Vec |
| using | iterator |
| using | const_iterator |
| using | reverse_iterator |
| using | const_reverse_iterator |
Ordered dictionary of FileName objects.
Definition at line 68 of file filename.h.
Returns the file definition in fnMap that matches the file name n.
If there are multiple matches, ambig is set to true and the first match is returned. If there are no matches, ambig is set to false and nullptr is returned.
Definition at line 36 of file filename.cpp.
References Dir::cleanDirPath(), DString::empty(), DString::endsWith(), FindFileCacheElem::fileDef, Portable::fileSystemIsCaseSensitive(), LinkedMap< FileName, FileNameFn, FileNameFn, std::unordered_multimap< std::string, FileName *, FileNameFn, FileNameFn > >::find(), g_findFileDefCache, g_findFileDefMutex, FileDef::getPath(), FindFileCacheElem::isAmbig, DString::left(), DString::length(), DString::lower(), DString::mid(), DString::npos, Portable::removeLongPathMarker(), DString::rfind(), DString::right(), DString::str(), and stripFromIncludePath().
Referenced by addIncludeFile(), buildFileList(), DocParser::findAndCopyImage(), DocParser::findDocsForMemberOrCompound(), findExampleFilePath(), findFile(), generateFileSources(), DocParser::handleLinkedWord(), DocbookDocVisitor::operator()(), XmlDocVisitor::operator()(), DocDiaFile::parse(), DocDotFile::parse(), DocMermaidFile::parse(), DocMscFile::parse(), DocPlantUmlFile::parse(), parseFilesMultiThreading(), parseFilesSingleThreading(), Markdown::Private::processLink(), readIncludeFile(), readTextFileByName(), ModuleManager::resolveImports(), ModuleManager::resolvePartitions(), resolveRef(), and setFileName().
Returns a list of file definitions in fnMap that match the file name n.
The list is returned as a string with each file definition separated by a newline character. Used for error messages.
Definition at line 129 of file filename.cpp.
References FileDef::absFilePath(), Dir::cleanDirPath(), DString::empty(), DString::endsWith(), LinkedMap< FileName, FileNameFn, FileNameFn, std::unordered_multimap< std::string, FileName *, FileNameFn, FileNameFn > >::find(), FileDef::getPath(), DString::left(), DString::mid(), DString::npos, Portable::removeLongPathMarker(), DString::rfind(), DString::str(), and stripFromIncludePath().
Referenced by addIncludeFile(), buildFileList(), DocParser::findAndCopyImage(), DocDiaFile::parse(), DocDotFile::parse(), DocMermaidFile::parse(), DocMscFile::parse(), DocPlantUmlFile::parse(), readIncludeFile(), and DocParser::readTextFileByName().