OpenStructure
Public Member Functions
PythonContext Class Reference

#include <python_context_parser.hh>

Public Member Functions

 PythonContext ()
 
 ~PythonContext ()
 
bool IsRoot () const
 
const RangeGetRange () const
 
const std::vector< PythonContext * > & GetSubContexts () const
 
void SetRange (const Range &range)
 
const PythonContextGetParent () const
 
void AddToken (const PythonToken &token)
 
void Print ()
 
bool FindLastToken (PythonToken::Type type, const QString &value, PythonToken &token)
 
bool FindFirstToken (PythonToken::Type type, const QString &value, PythonToken &token)
 
void AddContext (PythonContext *context)
 
bool GetContextAtLocation (size_t location, PythonContext *&context)
 
void Clear ()
 

Detailed Description

Definition at line 33 of file python_context_parser.hh.

Constructor & Destructor Documentation

◆ PythonContext()

PythonContext ( )
inline

Definition at line 36 of file python_context_parser.hh.

◆ ~PythonContext()

~PythonContext ( )
inline

Definition at line 40 of file python_context_parser.hh.

Member Function Documentation

◆ AddContext()

void AddContext ( PythonContext context)
inline

Definition at line 81 of file python_context_parser.hh.

◆ AddToken()

void AddToken ( const PythonToken token)
inline

Definition at line 60 of file python_context_parser.hh.

◆ Clear()

void Clear ( )

◆ FindFirstToken()

bool FindFirstToken ( PythonToken::Type  type,
const QString &  value,
PythonToken token 
)

◆ FindLastToken()

bool FindLastToken ( PythonToken::Type  type,
const QString &  value,
PythonToken token 
)

◆ GetContextAtLocation()

bool GetContextAtLocation ( size_t  location,
PythonContext *&  context 
)

◆ GetParent()

const PythonContext* GetParent ( ) const
inline

Definition at line 57 of file python_context_parser.hh.

◆ GetRange()

const Range& GetRange ( ) const
inline

Definition at line 48 of file python_context_parser.hh.

◆ GetSubContexts()

const std::vector<PythonContext*>& GetSubContexts ( ) const
inline

Definition at line 51 of file python_context_parser.hh.

◆ IsRoot()

bool IsRoot ( ) const
inline

Definition at line 43 of file python_context_parser.hh.

◆ Print()

void Print ( )
inline

Definition at line 66 of file python_context_parser.hh.

◆ SetRange()

void SetRange ( const Range range)
inline

Definition at line 54 of file python_context_parser.hh.


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