Doxygen
Loading...
Searching...
No Matches
LocalToc Class Reference

#include <src/types.h>

Public Types

enum  Type {
  None = 0 , Html = 0 , Latex = 1 , Xml = 2 ,
  Docbook = 3 , numTocTypes = 4
}

Public Member Functions

constexpr void enableHtml (int level) noexcept
constexpr void enableLatex (int level) noexcept
constexpr void enableXml (int level) noexcept
constexpr void enableDocbook (int level) noexcept
constexpr bool isHtmlEnabled () const noexcept
constexpr bool isLatexEnabled () const noexcept
constexpr bool isXmlEnabled () const noexcept
constexpr bool isDocbookEnabled () const noexcept
constexpr bool nothingEnabled () const noexcept
constexpr int htmlLevel () const noexcept
constexpr int latexLevel () const noexcept
constexpr int xmlLevel () const noexcept
constexpr int docbookLevel () const noexcept
constexpr int mask () const noexcept

Private Attributes

int m_mask = None
int m_level [numTocTypes] = {}

Detailed Description

Definition at line 619 of file types.h.

Member Enumeration Documentation

◆ Type

Enumerator
None 
Html 
Latex 
Xml 
Docbook 
numTocTypes 

Definition at line 622 of file types.h.

622 {
623 None = 0, // initial value
624 Html = 0, // index / also to be used as bit position in mask (1 << Html)
625 Latex = 1, // ...
626 Xml = 2, // ...
627 Docbook = 3, // ...
628 numTocTypes = 4 // number of enum values
629 };
@ Xml
Definition types.h:626
@ None
Definition types.h:623
@ Html
Definition types.h:624
@ Docbook
Definition types.h:627
@ Latex
Definition types.h:625
@ numTocTypes
Definition types.h:628

Member Function Documentation

◆ docbookLevel()

int LocalToc::docbookLevel ( ) const
inlineconstexprnoexcept

Definition at line 662 of file types.h.

662{ return m_level[Docbook]; }
int m_level[numTocTypes]
Definition types.h:667

References Docbook, and m_level.

Referenced by DefinitionImpl::writeToc().

◆ enableDocbook()

void LocalToc::enableDocbook ( int level)
inlineconstexprnoexcept

Definition at line 647 of file types.h.

648 {
649 m_mask|=(1<<Docbook);
650 m_level[Docbook]=level;
651 }
int m_mask
Definition types.h:666

References Docbook, m_level, and m_mask.

◆ enableHtml()

void LocalToc::enableHtml ( int level)
inlineconstexprnoexcept

Definition at line 632 of file types.h.

633 {
634 m_mask|=(1<<Html);
635 m_level[Html]=level;
636 }

References Html, m_level, and m_mask.

◆ enableLatex()

void LocalToc::enableLatex ( int level)
inlineconstexprnoexcept

Definition at line 637 of file types.h.

638 {
639 m_mask|=(1<<Latex);
640 m_level[Latex]=level;
641 }

References Latex, m_level, and m_mask.

◆ enableXml()

void LocalToc::enableXml ( int level)
inlineconstexprnoexcept

Definition at line 642 of file types.h.

643 {
644 m_mask|=(1<<Xml);
645 m_level[Xml]=level;
646 }

References m_level, m_mask, and Xml.

◆ htmlLevel()

int LocalToc::htmlLevel ( ) const
inlineconstexprnoexcept

Definition at line 659 of file types.h.

659{ return m_level[Html]; }

References Html, and m_level.

Referenced by DefinitionImpl::writeToc().

◆ isDocbookEnabled()

bool LocalToc::isDocbookEnabled ( ) const
inlineconstexprnoexcept

Definition at line 657 of file types.h.

657{ return (m_mask & (1<<Docbook))!=0; }

References Docbook, and m_mask.

Referenced by DefinitionImpl::writeToc().

◆ isHtmlEnabled()

bool LocalToc::isHtmlEnabled ( ) const
inlineconstexprnoexcept

Definition at line 654 of file types.h.

654{ return (m_mask & (1<<Html))!=0; }

References Html, and m_mask.

Referenced by DefinitionImpl::writeToc().

◆ isLatexEnabled()

bool LocalToc::isLatexEnabled ( ) const
inlineconstexprnoexcept

Definition at line 655 of file types.h.

655{ return (m_mask & (1<<Latex))!=0; }

References Latex, and m_mask.

Referenced by DefinitionImpl::writeToc().

◆ isXmlEnabled()

bool LocalToc::isXmlEnabled ( ) const
inlineconstexprnoexcept

Definition at line 656 of file types.h.

656{ return (m_mask & (1<<Xml))!=0; }

References m_mask, and Xml.

Referenced by generateXMLForPage().

◆ latexLevel()

int LocalToc::latexLevel ( ) const
inlineconstexprnoexcept

Definition at line 660 of file types.h.

660{ return m_level[Latex]; }

References Latex, and m_level.

Referenced by DefinitionImpl::writeToc().

◆ mask()

int LocalToc::mask ( ) const
inlineconstexprnoexcept

Definition at line 663 of file types.h.

663{ return m_mask; }

References m_mask.

◆ nothingEnabled()

bool LocalToc::nothingEnabled ( ) const
inlineconstexprnoexcept

Definition at line 658 of file types.h.

658{ return m_mask == None; }

References m_mask, and None.

◆ xmlLevel()

int LocalToc::xmlLevel ( ) const
inlineconstexprnoexcept

Definition at line 661 of file types.h.

661{ return m_level[Xml]; }

References m_level, and Xml.

Referenced by generateXMLForPage().

Member Data Documentation

◆ m_level

int LocalToc::m_level[numTocTypes] = {}
private

Definition at line 667 of file types.h.

667{};

Referenced by docbookLevel(), enableDocbook(), enableHtml(), enableLatex(), enableXml(), htmlLevel(), latexLevel(), and xmlLevel().

◆ m_mask

int LocalToc::m_mask = None
private

The documentation for this class was generated from the following file: