Public Types | Static Public Member Functions | List of all members
Operator Class Reference

Class representing operators that can appear in template expressions. More...

Public Types

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

Static Public Member Functions

static const char * toString (Type op)
 

Detailed Description

Class representing operators that can appear in template expressions.

Definition at line 428 of file template.cpp.

Member Enumeration Documentation

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

Definition at line 443 of file template.cpp.

Member Function Documentation

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

Definition at line 451 of file template.cpp.

452  {
453  switch(op)
454  {
455  case Or: return "or";
456  case And: return "and";
457  case Not: return "not";
458  case In: return "in";
459  case Equal: return "==";
460  case NotEqual: return "!=";
461  case Less: return "<";
462  case Greater: return ">";
463  case LessEqual: return "<=";
464  case GreaterEqual: return ">=";
465  case Plus: return "+";
466  case Minus: return "-";
467  case Multiply: return "*";
468  case Divide: return "/";
469  case Modulo: return "%";
470  case Filter: return "|";
471  case Colon: return ":";
472  case Comma: return ",";
473  case LeftParen: return "(";
474  case RightParen: return ")";
475  case Last: return "?";
476  }
477  return "?";
478  }

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