103 template <
class T, TemplateVariant (T::*TMethod)(const QValueList<TemplateVariant> &) const>
130 template <
class T, TemplateVariant (T::*TMethod)(const QValueList<TemplateVariant> &) const>
133 T*
p = (
T*)(objectPtr);
134 return (p->*TMethod)(
args);
149 case None:
return "none";
150 case Bool:
return "bool";
151 case Integer:
return "integer";
152 case String:
return "string";
153 case Struct:
return "struct";
154 case List:
return "list";
155 case Function:
return "function";
240 case Struct:
return "[struct]";
241 case List:
return "[list]";
242 case Function:
return "[function]";
318 T *
get()
const {
return m_obj; }
339 virtual void toFirst() = 0;
341 virtual void toLast() = 0;
343 virtual void toNext() = 0;
345 virtual void toPrev() = 0;
358 virtual int count()
const = 0;
369 virtual int addRef() = 0;
380 virtual int count()
const;
383 virtual int addRef();
418 virtual int addRef() = 0;
431 virtual int addRef();
463 virtual void enableTabbing(
bool b) = 0;
475 virtual void reset() = 0;
495 virtual void push() = 0;
498 virtual void pop() = 0;
524 virtual void setOutputDirectory(
const QCString &
dir) = 0;
591 void printIncludeContext(
const char *fileName,
int line)
const;
603 void setOutputExtension(
const char *extension);
Abstract interface for a template context.
Class representing an 'create' tag in a template.
Abstract interface for a template.
TemplateVariant(* StubType)(const void *obj, const QValueList< TemplateVariant > &args)
TemplateListIntf * toList() const
static Delegate fromMethod(const T *objectPtr)
TemplateListIntf * m_list
Default implementation of a context value of type list.
QCString typeAsString() const
TemplateVariant call(const QValueList< TemplateVariant > &args)
Simplified and optimized version of QTextStream.
Abstract interface for a context value of type struct.
static Delegate fromFunction(const void *obj, StubType func)
Private data of the template engine.
Class representing a 'block' tag in a template.
TemplateVariant & operator=(const TemplateVariant &v)
bool operator==(TemplateVariant &other)
TemplateVariant operator()(const QValueList< TemplateVariant > &args) const
Helper class to create a delegate that can store a function/method call.
Private data of a template list object.
QTextStream & reset(QTextStream &s)
QCString toString() const
TemplateStructIntf * m_strukt
virtual ~TemplateListIntf()
virtual ~TemplateStructIntf()
TemplateVariant(const Delegate &delegate)
Abstract interface for a iterator of a list.
Interface used to escape characters in a string.
static TemplateVariant methodStub(const void *objectPtr, const QValueList< TemplateVariant > &args)
Variant type which can hold one value of a fixed set of types.
Private data of a template struct object.
Engine to create templates and template contexts.
QCString & setNum(short n)
virtual ~TemplateContext()
void line(double t, double *p, double &x, double &y, double &z)
TemplateVariant(const char *s, bool raw=FALSE)
TemplateStructIntf * toStruct() const
std::string escape(std::string const &str)
Abstract read-only interface for a context value of type list.
Default implementation of a context value of type struct.
TemplateVariant(const QCString &s, bool raw=FALSE)
Interface used to remove redundant spaces inside a spaceless block.