Doxygen
FilterRaw类 参考

The implementation of the "raw" filter 更多...

静态 Public 成员函数

static TemplateVariant apply (const TemplateVariant &v, const TemplateVariant &)
 

详细描述

The implementation of the "raw" filter

在文件 template.cpp799 行定义.

成员函数说明

◆ apply()

static TemplateVariant FilterRaw::apply ( const TemplateVariant v,
const TemplateVariant  
)
inlinestatic

在文件 template.cpp802 行定义.

803  {
804  if (v.isValid() && (v.isString() || v.isInt()))
805  {
806  return TemplateVariant(v.toString(),TRUE);
807  }
808  else
809  {
810  return v;
811  }
812  }

引用了 TemplateVariant::isInt(), TemplateVariant::isString(), TemplateVariant::isValid(), TemplateVariant::toString() , 以及 TRUE.


该类的文档由以下文件生成:
TemplateVariant
Variant type which can hold one value of a fixed set of types.
Definition: template.h:98
TemplateVariant::isInt
constexpr bool isInt() const
Returns TRUE if the variant holds an integer value
Definition: template.h:207
TRUE
#define TRUE
Definition: qcstring.h:36
TemplateVariant::toString
QCString toString() const
Returns the variant as a string.
Definition: template.cpp:399
TemplateVariant::isValid
constexpr bool isValid() const
Returns TRUE if the variant holds a valid value, or FALSE otherwise
Definition: template.h:203
TemplateVariant::isString
constexpr bool isString() const
Returns TRUE if the variant holds a string value
Definition: template.h:209