Doxygen
Loading...
Searching...
No Matches
CodeParserOptions Struct Reference

Options to configure the code parser. More...

#include <src/parserintf.h>

Collaboration diagram for CodeParserOptions:

Public Member Functions

bool isExample () const
QCString exampleName () const
const FileDeffileDef () const
int startLine () const
int endLine () const
bool inlineFragment () const
const MemberDefmemberDef () const
bool showLineNumbers () const
const DefinitionsearchCtx () const
bool collectXRefs () const
CodeParserOptionssetExample (bool isExample, const QCString &name)
 Associate this comment block with a given example.
CodeParserOptionssetFileDef (const FileDef *fd)
CodeParserOptionssetStartLine (int lineNr)
CodeParserOptionssetEndLine (int lineNr)
CodeParserOptionssetInlineFragment (bool enable)
CodeParserOptionssetMemberDef (const MemberDef *md)
CodeParserOptionssetShowLineNumbers (bool enable)
CodeParserOptionssetSearchCtx (const Definition *d)
CodeParserOptionssetCollectXRefs (bool enable)

Private Attributes

bool m_isExample = false
QCString m_exampleName
const FileDefm_fileDef = nullptr
int m_startLine = -1
int m_endLine = -1
bool m_inlineFragment = false
const MemberDefm_memberDef = nullptr
bool m_showLineNumbers = true
const Definitionm_searchCtx = nullptr
bool m_collectXRefs = true

Detailed Description

Options to configure the code parser.

Definition at line 77 of file parserintf.h.

Member Function Documentation

◆ collectXRefs()

bool CodeParserOptions::collectXRefs ( ) const
inline

◆ endLine()

◆ exampleName()

◆ fileDef()

◆ inlineFragment()

◆ isExample()

◆ memberDef()

const MemberDef * CodeParserOptions::memberDef ( ) const
inline

Definition at line 87 of file parserintf.h.

87{ return m_memberDef; }
const MemberDef * m_memberDef
Definition parserintf.h:129

References m_memberDef.

Referenced by CCodeParser::parseCode(), LexCodeParser::parseCode(), and VHDLCodeParser::parseCode().

◆ searchCtx()

const Definition * CodeParserOptions::searchCtx ( ) const
inline

◆ setCollectXRefs()

CodeParserOptions & CodeParserOptions::setCollectXRefs ( bool enable)
inline

Definition at line 119 of file parserintf.h.

120 { m_collectXRefs = enable; return *this; }

References m_collectXRefs.

Referenced by CodeFragmentManager::parseCodeFragment().

◆ setEndLine()

CodeParserOptions & CodeParserOptions::setEndLine ( int lineNr)
inline

Definition at line 104 of file parserintf.h.

105 { m_endLine = lineNr; return *this; }

References m_endLine.

Referenced by DefinitionImpl::writeInlineCode(), and VhdlDocGen::writeSource().

◆ setExample()

CodeParserOptions & CodeParserOptions::setExample ( bool isExample,
const QCString & name )
inline

Associate this comment block with a given example.

Definition at line 95 of file parserintf.h.

96 { m_isExample=isExample; m_exampleName = name; return *this; }
bool isExample() const
Definition parserintf.h:81

References isExample(), m_exampleName, and m_isExample.

◆ setFileDef()

◆ setInlineFragment()

◆ setMemberDef()

CodeParserOptions & CodeParserOptions::setMemberDef ( const MemberDef * md)
inline

Definition at line 110 of file parserintf.h.

111 { m_memberDef = md; return *this; }

References m_memberDef.

Referenced by DefinitionImpl::writeInlineCode(), and VhdlDocGen::writeSource().

◆ setSearchCtx()

CodeParserOptions & CodeParserOptions::setSearchCtx ( const Definition * d)
inline

Definition at line 116 of file parserintf.h.

117 { m_searchCtx = d; return *this; }

References m_searchCtx.

Referenced by HtmlDocVisitor::operator()(), HtmlDocVisitor::operator()(), and HtmlDocVisitor::operator()().

◆ setShowLineNumbers()

◆ setStartLine()

◆ showLineNumbers()

bool CodeParserOptions::showLineNumbers ( ) const
inline

◆ startLine()

Member Data Documentation

◆ m_collectXRefs

bool CodeParserOptions::m_collectXRefs = true
private

Definition at line 132 of file parserintf.h.

Referenced by collectXRefs(), and setCollectXRefs().

◆ m_endLine

int CodeParserOptions::m_endLine = -1
private

Definition at line 127 of file parserintf.h.

Referenced by endLine(), and setEndLine().

◆ m_exampleName

QCString CodeParserOptions::m_exampleName
private

Definition at line 124 of file parserintf.h.

Referenced by exampleName(), and setExample().

◆ m_fileDef

const FileDef* CodeParserOptions::m_fileDef = nullptr
private

Definition at line 125 of file parserintf.h.

Referenced by fileDef(), and setFileDef().

◆ m_inlineFragment

bool CodeParserOptions::m_inlineFragment = false
private

Definition at line 128 of file parserintf.h.

Referenced by inlineFragment(), and setInlineFragment().

◆ m_isExample

bool CodeParserOptions::m_isExample = false
private

Definition at line 123 of file parserintf.h.

Referenced by isExample(), and setExample().

◆ m_memberDef

const MemberDef* CodeParserOptions::m_memberDef = nullptr
private

Definition at line 129 of file parserintf.h.

Referenced by memberDef(), and setMemberDef().

◆ m_searchCtx

const Definition* CodeParserOptions::m_searchCtx = nullptr
private

Definition at line 131 of file parserintf.h.

Referenced by searchCtx(), and setSearchCtx().

◆ m_showLineNumbers

bool CodeParserOptions::m_showLineNumbers = true
private

Definition at line 130 of file parserintf.h.

Referenced by setShowLineNumbers(), and showLineNumbers().

◆ m_startLine

int CodeParserOptions::m_startLine = -1
private

Definition at line 126 of file parserintf.h.

Referenced by setStartLine(), and startLine().


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