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 (  )  [inline]

Definition at line 36 of file python_context_parser.hh.

~PythonContext (  )  [inline]

Definition at line 40 of file python_context_parser.hh.


Member Function Documentation

void AddContext ( PythonContext context  )  [inline]

Definition at line 81 of file python_context_parser.hh.

void AddToken ( const PythonToken token  )  [inline]

Definition at line 60 of file python_context_parser.hh.

void Clear (  ) 
bool FindFirstToken ( PythonToken::Type  type,
const QString &  value,
PythonToken token 
)
bool FindLastToken ( PythonToken::Type  type,
const QString &  value,
PythonToken token 
)
bool GetContextAtLocation ( size_t  location,
PythonContext *&  context 
)
const PythonContext* GetParent (  )  const [inline]

Definition at line 57 of file python_context_parser.hh.

const Range& GetRange (  )  const [inline]

Definition at line 48 of file python_context_parser.hh.

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

Definition at line 51 of file python_context_parser.hh.

bool IsRoot (  )  const [inline]

Definition at line 43 of file python_context_parser.hh.

void Print (  )  [inline]

Definition at line 66 of file python_context_parser.hh.

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:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 6 Dec 2017 for OpenStructure by  doxygen 1.6.1