Example program to test zero values (JMATH::zero).  
More...
#include <iostream>
#include <iomanip>
#include "JMath/JZero.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
 
Go to the source code of this file.
 | 
| #define  | PRINT(OUT,  CLASS) | 
|   | 
 | 
| int  | main (int argc, char **argv) | 
|   | 
Example program to test zero values (JMATH::zero). 
- Author
 - mdejong 
 
Definition in file JZero.cc.
 
◆ PRINT
      
        
          | #define PRINT | 
          ( | 
           |           OUT,  | 
        
        
           | 
           | 
           |           CLASS ) | 
        
      
 
Value:
void print(const TH1 &h1, std::ostream &out)
Print histogram parameters.
 
 
Definition at line 87 of file JZero.cc.
 
 
◆ main()
      
        
          | int main  | 
          ( | 
          int |           argc,  | 
        
        
           | 
           | 
          char ** |           argv ) | 
        
      
 
Definition at line 97 of file JZero.cc.
   98{
  100 
  102 
  103  try {
  104 
  105    JParser<> zap(
"Example program to test zero values of non-primitive data types.");
 
  106 
  108 
  109    zap(argc, argv);
  110  }
  111  catch(const exception &error) {
  112    FATAL(error.what() << endl);
 
  113  }
  114 
  116 
  121 
  122  ASSERT(is_equal<int>   (0));
 
  123  ASSERT(is_equal<float> (0.0));
 
  124  ASSERT(is_equal<double>(0.0));
 
  125  ASSERT(is_equal<__A__> (__A__(0)));
 
  126  
  127  return 0;
  128}
#define ASSERT(A,...)
Assert macro.
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
#define PRINT(OUT, CLASS)
 
Utility class to parse command line options.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).