20#include <unordered_map>
31 static constexpr int Page = 0;
113 return it!=
m_lookup.end() ? it->second :
nullptr;
130 std::unordered_map< std::string, const SectionInfo* >
m_lookup;
A String class for use with Doxygen wrapping std::string and adding some additional functionality off...
const std::string & str() const
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string.
The common base class of all entity definitions found in the sources.
Container class representing a vector of objects with keys.
T * add(const char *k, Args &&... args)
const T * find(const std::string &key) const
class that provide information about a section.
void setType(SectionType t)
void setTitle(const DString &t)
void setReference(const DString &r)
Definition * definition() const
void setDefinition(Definition *d)
void setFileName(const DString &fn)
SectionInfo(const DString &label, const DString &fileName, int lineNr, const DString &title, SectionType type, int level, const DString &ref)
void setGenerated(bool b)
Definition * m_definition
SectionInfo * add(const DString &label, const DString &fileName, int lineNr, const DString &title, SectionType type, int level, const DString &ref=DString())
SectionInfo * replace(const DString &label, const DString &fileName, int lineNr, const DString &title, SectionType type, int level, const DString &ref=DString())
~SectionManager()=default
SectionInfo * add(const SectionInfo &si)
static SectionManager & instance()
returns a reference to the singleton
class that represents a list of constant references to sections.
SectionInfoVec::const_iterator const_iterator
const_iterator end() const
const_iterator begin() const
void add(const SectionInfo *si)
Adds a non-owning section reference.
std::vector< const SectionInfo * > SectionInfoVec
std::unordered_map< std::string, const SectionInfo * > m_lookup
const SectionInfo * find(const DString &label) const
static constexpr int Anchor
constexpr bool isSection() const
static constexpr int Section
static constexpr int MaxLevel
static constexpr int Subsection
static constexpr int Subsubsection
static constexpr int Table
constexpr int level() const
static constexpr int Requirement
static constexpr int Page
static constexpr int MinLevel
constexpr SectionType(int lvl)
static constexpr int Paragraph
static constexpr int Subsubparagraph
static constexpr int Subparagraph
#define NON_COPYABLE(cls)
Macro to help implementing the rule of 5 for a non-copyable & movable class.
std::string toStdString(const DString &s)