Classes | Public Member Functions | Private Attributes | Static Private Attributes | List of all members
ArgumentContext::Private Class Reference

Classes

struct  Cachable
 

Public Member Functions

 Private (const Argument *arg, Definition *def, const QCString &relPath)
 
TemplateVariant get (const char *n) const
 
TemplateVariant type () const
 
TemplateVariant attrib () const
 
TemplateVariant name () const
 
TemplateVariant defVal () const
 
TemplateVariant array () const
 
TemplateVariant docs () const
 
TemplateVariant namePart () const
 

Private Attributes

const Argumentm_argument
 
Definitionm_def
 
QCString m_relPath
 
Cachable m_cache
 

Static Private Attributes

static PropertyMapper< ArgumentContext::Privates_inst
 

Detailed Description

Definition at line 9248 of file context.cpp.

Constructor & Destructor Documentation

ArgumentContext::Private::Private ( const Argument arg,
Definition def,
const QCString relPath 
)
inline

Definition at line 9251 of file context.cpp.

9251  :
9252  m_argument(arg), m_def(def), m_relPath(relPath)
9253  {
9254  static bool init=FALSE;
9255  if (!init)
9256  {
9257  s_inst.addProperty("type", &Private::type);
9258  s_inst.addProperty("name", &Private::name);
9259  s_inst.addProperty("defVal", &Private::defVal);
9260  s_inst.addProperty("docs", &Private::docs);
9261  s_inst.addProperty("attrib", &Private::attrib);
9262  s_inst.addProperty("array", &Private::array);
9263  s_inst.addProperty("namePart", &Private::namePart);
9264  init=TRUE;
9265  }
9266  }
TemplateVariant name() const
Definition: context.cpp:9279
TemplateVariant namePart() const
Definition: context.cpp:9308
const bool FALSE
Definition: qglobal.h:370
init
Definition: train.py:42
TemplateVariant array() const
Definition: context.cpp:9287
TemplateVariant type() const
Definition: context.cpp:9271
TemplateVariant attrib() const
Definition: context.cpp:9275
TemplateVariant defVal() const
Definition: context.cpp:9283
const Argument * m_argument
Definition: context.cpp:9320
TemplateVariant docs() const
Definition: context.cpp:9291
const bool TRUE
Definition: qglobal.h:371
static PropertyMapper< ArgumentContext::Private > s_inst
Definition: context.cpp:9328

Member Function Documentation

TemplateVariant ArgumentContext::Private::array ( ) const
inline

Definition at line 9287 of file context.cpp.

9288  {
9289  return m_argument->array;
9290  }
const Argument * m_argument
Definition: context.cpp:9320
QCString array
Definition: arguments.h:70
TemplateVariant ArgumentContext::Private::attrib ( ) const
inline

Definition at line 9275 of file context.cpp.

9276  {
9277  return m_argument->attrib;
9278  }
QCString attrib
Definition: arguments.h:66
const Argument * m_argument
Definition: context.cpp:9320
TemplateVariant ArgumentContext::Private::defVal ( ) const
inline

Definition at line 9283 of file context.cpp.

9284  {
9286  }
TemplateVariant createLinkedText(Definition *def, const QCString &relPath, const QCString &text)
Definition: context.cpp:3840
QCString defval
Definition: arguments.h:71
const Argument * m_argument
Definition: context.cpp:9320
TemplateVariant ArgumentContext::Private::docs ( ) const
inline

Definition at line 9291 of file context.cpp.

9292  {
9293  if (!m_cache.docs && m_def)
9294  {
9295  if (!m_argument->docs.isEmpty())
9296  {
9300  }
9301  else
9302  {
9303  m_cache.docs.reset(new TemplateVariant(""));
9304  }
9305  }
9306  return *m_cache.docs;
9307  }
QCString docFile() const
bool isEmpty() const
Definition: qcstring.h:189
void reset(T *p=0)
Definition: context.cpp:92
static TemplateVariant parseDoc(Definition *def, const QCString &file, int line, const QCString &relPath, const QCString &docStr, bool isBrief)
Definition: context.cpp:1227
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
ScopedPtr< TemplateVariant > docs
Definition: context.cpp:9325
const Argument * m_argument
Definition: context.cpp:9320
int docLine() const
const bool TRUE
Definition: qglobal.h:371
QCString docs
Definition: arguments.h:72
TemplateVariant ArgumentContext::Private::get ( const char *  n) const
inline

Definition at line 9267 of file context.cpp.

9268  {
9269  return s_inst.get(this,n);
9270  }
std::void_t< T > n
static PropertyMapper< ArgumentContext::Private > s_inst
Definition: context.cpp:9328
TemplateVariant ArgumentContext::Private::name ( ) const
inline

Definition at line 9279 of file context.cpp.

9280  {
9281  return m_argument->name;
9282  }
QCString name
Definition: arguments.h:69
const Argument * m_argument
Definition: context.cpp:9320
TemplateVariant ArgumentContext::Private::namePart ( ) const
inline

Definition at line 9308 of file context.cpp.

9309  {
9311  int l = result.length();
9312  if (l>2 && result.at(0)=='[' && result.at(l-1)==']')
9313  {
9314  result = result.mid(1,l-2);
9315  if (result!=",") result+=":"; // for normal keywords add colon
9316  }
9317  return result;
9318  }
static QCString result
uint length() const
Definition: qcstring.h:195
char & at(uint i) const
Definition: qcstring.h:326
static QStrList * l
Definition: config.cpp:1044
QCString mid(uint index, uint len=0xffffffff) const
Definition: qcstring.cpp:246
QCString attrib
Definition: arguments.h:66
const Argument * m_argument
Definition: context.cpp:9320
TemplateVariant ArgumentContext::Private::type ( ) const
inline

Definition at line 9271 of file context.cpp.

9272  {
9274  }
TemplateVariant createLinkedText(Definition *def, const QCString &relPath, const QCString &text)
Definition: context.cpp:3840
QCString type
Definition: arguments.h:67
const Argument * m_argument
Definition: context.cpp:9320

Member Data Documentation

const Argument* ArgumentContext::Private::m_argument
private

Definition at line 9320 of file context.cpp.

Cachable ArgumentContext::Private::m_cache
mutableprivate

Definition at line 9327 of file context.cpp.

Definition* ArgumentContext::Private::m_def
private

Definition at line 9321 of file context.cpp.

QCString ArgumentContext::Private::m_relPath
private

Definition at line 9322 of file context.cpp.

PropertyMapper< ArgumentContext::Private > ArgumentContext::Private::s_inst
staticprivate

Definition at line 9328 of file context.cpp.


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