My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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::Private
s_inst
 

Detailed Description

Definition at line 9263 of file context.cpp.

Constructor & Destructor Documentation

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

Definition at line 9266 of file context.cpp.

References array(), attrib(), defVal(), docs(), Config::init(), name(), namePart(), s_inst, and type().

:
m_argument(arg), m_def(def), m_relPath(relPath)
{
static bool init=FALSE;
if (!init)
{
s_inst.addProperty("type", &Private::type);
s_inst.addProperty("name", &Private::name);
s_inst.addProperty("defVal", &Private::defVal);
s_inst.addProperty("docs", &Private::docs);
s_inst.addProperty("attrib", &Private::attrib);
s_inst.addProperty("array", &Private::array);
s_inst.addProperty("namePart", &Private::namePart);
init=TRUE;
}
}

Member Function Documentation

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

Definition at line 9302 of file context.cpp.

References Argument::array, and m_argument.

Referenced by Private().

{
return m_argument->array;
}
TemplateVariant ArgumentContext::Private::attrib ( ) const
inline

Definition at line 9290 of file context.cpp.

References Argument::attrib, and m_argument.

Referenced by Private().

{
return m_argument->attrib;
}
TemplateVariant ArgumentContext::Private::defVal ( ) const
inline

Definition at line 9298 of file context.cpp.

References createLinkedText(), Argument::defval, m_argument, m_def, and m_relPath.

Referenced by Private().

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

Definition at line 9306 of file context.cpp.

References Definition::docFile(), Definition::docLine(), Argument::docs, ArgumentContext::Private::Cachable::docs, m_argument, m_cache, m_def, m_relPath, parseDoc(), and ScopedPtr< T >::reset().

Referenced by Private().

{
if (!m_cache.docs && m_def)
{
if (!m_argument->docs.isEmpty())
{
}
else
{
}
}
return *m_cache.docs;
}
TemplateVariant ArgumentContext::Private::get ( const char *  n) const
inline

Definition at line 9282 of file context.cpp.

References s_inst.

Referenced by ArgumentContext::get().

{
return s_inst.get(this,n);
}
TemplateVariant ArgumentContext::Private::name ( ) const
inline

Definition at line 9294 of file context.cpp.

References m_argument, and Argument::name.

Referenced by Private().

{
return m_argument->name;
}
TemplateVariant ArgumentContext::Private::namePart ( ) const
inline

Definition at line 9323 of file context.cpp.

References Argument::attrib, and m_argument.

Referenced by Private().

{
QCString result = m_argument->attrib;
int l = result.length();
if (l>2 && result.at(0)=='[' && result.at(l-1)==']')
{
result = result.mid(1,l-2);
if (result!=",") result+=":"; // for normal keywords add colon
}
return result;
}
TemplateVariant ArgumentContext::Private::type ( ) const
inline

Definition at line 9286 of file context.cpp.

References createLinkedText(), m_argument, m_def, m_relPath, and Argument::type.

Referenced by Private().

Member Data Documentation

const Argument* ArgumentContext::Private::m_argument
private

Definition at line 9335 of file context.cpp.

Referenced by array(), attrib(), defVal(), docs(), name(), namePart(), and type().

Cachable ArgumentContext::Private::m_cache
mutableprivate

Definition at line 9342 of file context.cpp.

Referenced by docs().

Definition* ArgumentContext::Private::m_def
private

Definition at line 9336 of file context.cpp.

Referenced by defVal(), docs(), and type().

QCString ArgumentContext::Private::m_relPath
private

Definition at line 9337 of file context.cpp.

Referenced by defVal(), docs(), and type().

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

Definition at line 9343 of file context.cpp.

Referenced by get(), and Private().


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