Static Public Member Functions | List of all members
FilterDefault Class Reference

The implementation of the "default" filter. More...

Static Public Member Functions

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

Detailed Description

The implementation of the "default" filter.

Definition at line 792 of file template.cpp.

Member Function Documentation

static TemplateVariant FilterDefault::apply ( const TemplateVariant v,
const TemplateVariant arg 
)
inlinestatic

Definition at line 795 of file template.cpp.

796  {
797  if (!v.isValid())
798  {
799  return arg;
800  }
801  else if (v.type()==TemplateVariant::String && v.toString().isEmpty())
802  {
803  return arg;
804  }
805  else
806  {
807  return v;
808  }
809  }
bool isEmpty() const
Definition: qcstring.h:189
QCString toString() const
Definition: template.h:232
bool isValid() const
Definition: template.h:161
Type type() const
Definition: template.h:142

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