Classes | Public Member Functions | Private Attributes | List of all members
PyCallContext Class Reference

Classes

struct  Ctx
 

Public Member Functions

 PyCallContext ()
 
virtual ~PyCallContext ()
 
void setClass (ClassDef *cd)
 
void pushScope ()
 
void popScope ()
 
void clear ()
 
ClassDefgetClass () const
 

Private Attributes

QList< Ctxm_classList
 

Detailed Description

Definition at line 1375 of file pycode.cpp.

Constructor & Destructor Documentation

PyCallContext::PyCallContext ( )
inline

Definition at line 1386 of file pycode.cpp.

1387  {
1388  m_classList.append(new Ctx);
1389  m_classList.setAutoDelete(TRUE);
1390  }
const bool TRUE
Definition: qglobal.h:371
QList< Ctx > m_classList
Definition: pycode.cpp:1441
virtual PyCallContext::~PyCallContext ( )
inlinevirtual

Definition at line 1392 of file pycode.cpp.

1392 {}

Member Function Documentation

void PyCallContext::clear ( )
inline

Definition at line 1424 of file pycode.cpp.

1425  {
1426  m_classList.clear();
1427  m_classList.append(new Ctx);
1428  }
QList< Ctx > m_classList
Definition: pycode.cpp:1441
ClassDef* PyCallContext::getClass ( ) const
inline

Definition at line 1430 of file pycode.cpp.

1431  {
1432  Ctx *ctx = m_classList.getLast();
1433 
1434  if (ctx)
1435  return ctx->cd;
1436  else
1437  return 0;
1438  }
QList< Ctx > m_classList
Definition: pycode.cpp:1441
void PyCallContext::popScope ( )
inline

Definition at line 1407 of file pycode.cpp.

1408  {
1409  if (m_classList.count()>1)
1410  {
1411  Ctx *ctx = m_classList.getLast();
1412  if (ctx)
1413  {
1414  g_name = ctx->name;
1415  g_type = ctx->type;
1416  }
1417  m_classList.removeLast();
1418  }
1419  else
1420  {
1421  }
1422  }
static QCString g_type
Definition: pycode.cpp:1253
static QCString g_name
Definition: pycode.cpp:1254
QList< Ctx > m_classList
Definition: pycode.cpp:1441
void PyCallContext::pushScope ( )
inline

Definition at line 1402 of file pycode.cpp.

1403  {
1404  m_classList.append(new Ctx);
1405  }
QList< Ctx > m_classList
Definition: pycode.cpp:1441
void PyCallContext::setClass ( ClassDef cd)
inline

Definition at line 1394 of file pycode.cpp.

1395  {
1396  Ctx *ctx = m_classList.getLast();
1397  if (ctx)
1398  {
1399  ctx->cd=cd;
1400  }
1401  }
QList< Ctx > m_classList
Definition: pycode.cpp:1441

Member Data Documentation

QList<Ctx> PyCallContext::m_classList
private

Definition at line 1441 of file pycode.cpp.


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