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

Node representing a simple list item. More...

#include <src/docnode.h>

+ Inheritance diagram for DocSimpleListItem:
+ Collaboration diagram for DocSimpleListItem:

Public Member Functions

 DocSimpleListItem (DocParser *parser, DocNodeVariant *parent)
 
Token parse ()
 
const DocNodeVariantparagraph () const
 
- Public Member Functions inherited from DocNode
 DocNode (DocParser *parser, DocNodeVariant *parent)
 
 ~DocNode ()=default
 
DocNodeVariantparent ()
 
const DocNodeVariantparent () const
 
DocNodeVariantthisVariant ()
 
const DocNodeVariantthisVariant () const
 
void setThisVariant (DocNodeVariant *thisVariant)
 
DocParserparser ()
 
const DocParserparser () const
 
void setParent (DocNodeVariant *parent)
 
bool isPreformatted () const
 

Private Attributes

std::unique_ptr< DocNodeVariantm_paragraph
 

Additional Inherited Members

- Protected Types inherited from DocNode
enum  RefType { Unknown , Anchor , Section , Table }
 
- Protected Member Functions inherited from DocNode
void setInsidePreformatted (bool p)
 

Detailed Description

Node representing a simple list item.

Definition at line 1146 of file docnode.h.

Constructor & Destructor Documentation

◆ DocSimpleListItem()

DocSimpleListItem::DocSimpleListItem ( DocParser * parser,
DocNodeVariant * parent )

Definition at line 2730 of file docnode.cpp.

2732{
2733}
DocNode(DocParser *parser, DocNodeVariant *parent)
Definition docnode.h:84
DocParser * parser()
Definition docnode.h:97
DocNodeVariant * parent()
Definition docnode.h:89

References DocNode::DocNode(), DocNode::parent(), and DocNode::parser().

Member Function Documentation

◆ paragraph()

◆ parse()

Token DocSimpleListItem::parse ( )

Definition at line 2736 of file docnode.cpp.

2737{
2738 auto ns = AutoNodeStack(parser(),thisVariant());
2740 DocPara *par = &std::get<DocPara>(*m_paragraph);
2741 Token rv=par->parse();
2742 par->markFirst();
2743 par->markLast();
2744 return rv;
2745}
DocNodeVariant * thisVariant()
Definition docnode.h:92
void markLast(bool v=TRUE)
Definition docnode.h:1080
void markFirst(bool v=TRUE)
Definition docnode.h:1079
Token parse()
Definition docnode.cpp:5459
std::unique_ptr< DocNodeVariant > createDocNode(Args &&...args)
Definition docnode.h:1485

References createDocNode(), m_paragraph, DocPara::markFirst(), DocPara::markLast(), DocPara::parse(), DocNode::parser(), and DocNode::thisVariant().

Member Data Documentation

◆ m_paragraph

std::unique_ptr<DocNodeVariant> DocSimpleListItem::m_paragraph
private

Definition at line 1154 of file docnode.h.

Referenced by paragraph(), and parse().


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