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

#include <src/section.h>

Public Member Functions

constexpr SectionType ()
 
constexpr SectionType (int lvl)
 
constexpr int level () const
 
constexpr bool isSection () const
 

Static Public Attributes

static constexpr int Page = 0
 
static constexpr int MinLevel = 1
 
static constexpr int Section = 1
 
static constexpr int Subsection = 2
 
static constexpr int Subsubsection = 3
 
static constexpr int Paragraph = 4
 
static constexpr int Subparagraph = 5
 
static constexpr int Subsubparagraph = 6
 
static constexpr int MaxLevel = 6
 
static constexpr int Anchor = 7
 
static constexpr int Table = 8
 

Private Attributes

int m_level
 

Detailed Description

Definition at line 28 of file section.h.

Constructor & Destructor Documentation

◆ SectionType() [1/2]

SectionType::SectionType ( )
inlineconstexpr

Definition at line 43 of file section.h.

43: m_level(0) {}
int m_level
Definition section.h:52

References m_level.

◆ SectionType() [2/2]

SectionType::SectionType ( int lvl)
inlineconstexpr

Definition at line 44 of file section.h.

44: m_level(lvl) {}

References m_level.

Member Function Documentation

◆ isSection()

bool SectionType::isSection ( ) const
inlineconstexpr

Definition at line 46 of file section.h.

47 {
49 }
static constexpr int MaxLevel
Definition section.h:39
static constexpr int MinLevel
Definition section.h:32

References m_level, MaxLevel, and MinLevel.

Referenced by PageDefImpl::addSectionsToIndex(), and DefinitionImpl::hasSections().

◆ level()

int SectionType::level ( ) const
inlineconstexpr

Definition at line 45 of file section.h.

45{ return m_level; }

References m_level.

Referenced by PageDefImpl::addSectionsToIndex(), DocRef::DocRef(), LatexDocVisitor::endLink(), and DocSecRefItem::parse().

Member Data Documentation

◆ Anchor

◆ m_level

int SectionType::m_level
private

Definition at line 52 of file section.h.

Referenced by isSection(), level(), SectionType(), and SectionType().

◆ MaxLevel

◆ MinLevel

int SectionType::MinLevel = 1
staticconstexpr

◆ Page

◆ Paragraph

◆ Section

◆ Subparagraph

◆ Subsection

◆ Subsubparagraph

◆ Subsubsection

◆ Table

int SectionType::Table = 8
staticconstexpr

Definition at line 41 of file section.h.

Referenced by DocRef::DocRef(), and DocSecRefItem::parse().


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