OmniSciDB  cde582ebc3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
import_export::anonymous_namespace{ExpressionParser.cpp}::Operator_not Class Reference
+ Inheritance diagram for import_export::anonymous_namespace{ExpressionParser.cpp}::Operator_not:
+ Collaboration diagram for import_export::anonymous_namespace{ExpressionParser.cpp}::Operator_not:

Public Member Functions

 Operator_not ()
 
const mup::char_type * GetDesc () const final
 
mup::IToken * Clone () const final
 
void Eval (mup::ptr_val_type &ret, const mup::ptr_val_type *args, int argc) final
 

Detailed Description

Definition at line 327 of file ExpressionParser.cpp.

Constructor & Destructor Documentation

import_export::anonymous_namespace{ExpressionParser.cpp}::Operator_not::Operator_not ( )
inline

Definition at line 329 of file ExpressionParser.cpp.

329 : mup::IOprtInfix(_T("not"), mup::prINFIX) {}

Member Function Documentation

mup::IToken* import_export::anonymous_namespace{ExpressionParser.cpp}::Operator_not::Clone ( ) const
inlinefinal
void import_export::anonymous_namespace{ExpressionParser.cpp}::Operator_not::Eval ( mup::ptr_val_type &  ret,
const mup::ptr_val_type *  args,
int  argc 
)
inlinefinal

Definition at line 332 of file ExpressionParser.cpp.

References run_benchmark_import::args, CHECK_EQ, and VALIDATE_ARG_TYPE.

332  {
333  CHECK_EQ(argc, 1);
334  VALIDATE_ARG_TYPE(0, 'b');
335  *ret = !(args[0]->GetBool());
336  }
#define CHECK_EQ(x, y)
Definition: Logger.h:230
#define VALIDATE_ARG_TYPE(arg, t2)
const mup::char_type* import_export::anonymous_namespace{ExpressionParser.cpp}::Operator_not::GetDesc ( ) const
inlinefinal

Definition at line 330 of file ExpressionParser.cpp.

330 { return _T("bool inversion operator"); }

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