Doxygen
Operator类 参考

Class representing operators that can appear in template expressions 更多...

Public 类型

enum  Type {
  Or, And, Not, In,
  Equal, NotEqual, Less, Greater,
  LessEqual, GreaterEqual, Plus, Minus,
  Multiply, Divide, Modulo, Filter,
  Colon, Comma, LeftParen, RightParen,
  Last
}
 

静态 Public 成员函数

static const char * toString (Type op)
 

详细描述

Class representing operators that can appear in template expressions

在文件 template.cpp556 行定义.

成员枚举类型说明

◆ Type

枚举值
Or 
And 
Not 
In 
Equal 
NotEqual 
Less 
Greater 
LessEqual 
GreaterEqual 
Plus 
Minus 
Multiply 
Divide 
Modulo 
Filter 
Colon 
Comma 
LeftParen 
RightParen 
Last 

在文件 template.cpp571 行定义.

572  {
576  Last
577  };

成员函数说明

◆ toString()

static const char* Operator::toString ( Type  op)
inlinestatic

在文件 template.cpp579 行定义.

580  {
581  switch(op)
582  {
583  case Or: return "or";
584  case And: return "and";
585  case Not: return "not";
586  case In: return "in";
587  case Equal: return "==";
588  case NotEqual: return "!=";
589  case Less: return "<";
590  case Greater: return ">";
591  case LessEqual: return "<=";
592  case GreaterEqual: return ">=";
593  case Plus: return "+";
594  case Minus: return "-";
595  case Multiply: return "*";
596  case Divide: return "/";
597  case Modulo: return "%";
598  case Filter: return "|";
599  case Colon: return ":";
600  case Comma: return ",";
601  case LeftParen: return "(";
602  case RightParen: return ")";
603  case Last: return "?";
604  }
605  return "?";
606  }

引用了 And, Colon, Comma, Divide, Equal, Filter, Greater, GreaterEqual, In, Last, LeftParen, Less, LessEqual, Minus, Modulo, Multiply, Not, NotEqual, Or, Plus , 以及 RightParen.

被这些函数引用 ExprAstBinary::ExprAstBinary(), ExprAstUnary::ExprAstUnary() , 以及 ExpressionParser::parsePrimaryExpression().


该类的文档由以下文件生成:
Operator::Modulo
@ Modulo
Definition: template.cpp:574
Operator::Minus
@ Minus
Definition: template.cpp:574
Operator::GreaterEqual
@ GreaterEqual
Definition: template.cpp:574
Operator::In
@ In
Definition: template.cpp:573
Operator::Or
@ Or
Definition: template.cpp:573
Operator::Comma
@ Comma
Definition: template.cpp:574
Operator::LessEqual
@ LessEqual
Definition: template.cpp:573
Operator::RightParen
@ RightParen
Definition: template.cpp:575
Operator::LeftParen
@ LeftParen
Definition: template.cpp:575
Operator::NotEqual
@ NotEqual
Definition: template.cpp:573
Operator::Divide
@ Divide
Definition: template.cpp:574
Operator::Not
@ Not
Definition: template.cpp:573
Operator::Equal
@ Equal
Definition: template.cpp:573
Operator::Last
@ Last
Definition: template.cpp:576
Operator::Colon
@ Colon
Definition: template.cpp:574
Operator::Multiply
@ Multiply
Definition: template.cpp:574
Operator::Plus
@ Plus
Definition: template.cpp:574
Operator::And
@ And
Definition: template.cpp:573
Operator::Filter
@ Filter
Definition: template.cpp:574
Operator::Less
@ Less
Definition: template.cpp:573
Operator::Greater
@ Greater
Definition: template.cpp:573