clang-tools 23.0.0git
clang::doc::markdown::OrderedListNode Class Reference

An ordered list (1. 2. 3. markers). Start holds the first item number. More...

#include <Markdown.h>

Inheritance diagram for clang::doc::markdown::OrderedListNode:
[legend]

Public Member Functions

 OrderedListNode (unsigned S=1)
unsigned getStart () const
void addItem (ListItemNode &N)
void removeItem (ListItemNode &N)
ItemListitems ()
const ItemListitems () const
void print (llvm::raw_ostream &OS) const override
 Recursively prints the node and its children to OS.
Public Member Functions inherited from clang::doc::markdown::BlockNode
 BlockNode (NodeKind K)
virtual ~BlockNode ()=default
NodeKind getKind () const
LLVM_DUMP_METHOD void dump () const
 Prints to llvm::errs(). Only available in assert builds.

Static Public Member Functions

static bool classof (const BlockNode *N)

Detailed Description

An ordered list (1. 2. 3. markers). Start holds the first item number.

Definition at line 250 of file Markdown.h.

Constructor & Destructor Documentation

◆ OrderedListNode()

clang::doc::markdown::OrderedListNode::OrderedListNode ( unsigned S = 1)
inlineexplicit

Member Function Documentation

◆ addItem()

void clang::doc::markdown::OrderedListNode::addItem ( ListItemNode & N)
inline

Definition at line 255 of file Markdown.h.

◆ classof()

bool clang::doc::markdown::OrderedListNode::classof ( const BlockNode * N)
inlinestatic

◆ getStart()

unsigned clang::doc::markdown::OrderedListNode::getStart ( ) const
inline

Definition at line 254 of file Markdown.h.

Referenced by print().

◆ items() [1/2]

ItemList & clang::doc::markdown::OrderedListNode::items ( )
inline

Definition at line 257 of file Markdown.h.

Referenced by print().

◆ items() [2/2]

const ItemList & clang::doc::markdown::OrderedListNode::items ( ) const
inline

Definition at line 258 of file Markdown.h.

◆ print()

void clang::doc::markdown::OrderedListNode::print ( llvm::raw_ostream & OS) const
overridevirtual

Recursively prints the node and its children to OS.

Implements clang::doc::markdown::BlockNode.

Definition at line 77 of file Markdown.cpp.

References getStart(), and items().

◆ removeItem()

void clang::doc::markdown::OrderedListNode::removeItem ( ListItemNode & N)
inline

Definition at line 256 of file Markdown.h.


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