Example program to test JLANG::JMultiPointer class.  
More...
#include <iostream>
#include <iomanip>
#include "JLang/JMultiPointer.hh"
#include "JLang/JType.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
 
Go to the source code of this file.
 | 
| int  | main (int argc, char **argv) | 
|   | 
Example program to test JLANG::JMultiPointer class. 
- Author
 - mdejong 
 
Definition in file JMultiPointer.cc.
 
◆ main()
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char **  | 
          argv  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 81 of file JMultiPointer.cc.
   89     JParser<> zap(
"Example program to test multi pointer.");
 
   95   catch(
const exception &error) {
 
   96     FATAL(error.what() << endl);
 
  105     print<int>(cout, ps); 
 
  107     delete ps.get<
int>();
 
  120     ps.
reset(
new int(1));
 
  121     ps.
reset(
new double(123.456));
 
  123     *ps.
get<
int>() += 10;
 
  125     print<int>       (cout, ps);
 
  126     print<const char>(cout, ps);
 
  127     print<double>    (cout, ps);
 
  129     delete ps.
get<
int>   ();
 
  130     delete ps.
get<
double>();
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
Utility class to parse command line options.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
General purpose class for multiple pointers.
 
T * get() const
Get single pointer.
 
void reset(const JMultiPointer< JClass_t > &pointer)
Reset multi-pointer.