24  template<
class U, 
class V>
 
   25  inline bool equals(U __begin1, U __end1,
 
   31    for ( ; p != __end1 && q != __end2; ++p, ++q) {
 
   37    return (p == __end1 && q == __end2);
 
   41  void print(std::ostream& out, 
int debug, 
const char* title, T __begin, T __end)
 
   46    if (
debug >= debug_t) {
 
   48      copy(__begin, __end, ostream_iterator<typename T::value_type>(out, 
" "));
 
   61int main(
int argc, 
char **argv)
 
   69    JParser<> zap(
"Example program to test object output using STD containers.");
 
   75  catch(
const exception &error) {
 
   76    FATAL(error.what() << endl);
 
   88  print(cout, 
debug, 
"data", data.begin(), data.end());
 
   97    for (vector<double>::const_iterator i = data.begin(); i != data.end(); ++i) {
 
  101    print(cout, 
debug, 
"JSTDObjectWriter<double>(vector<double>&);", buffer.begin(), buffer.end());
 
  103    ASSERT(equals(data.begin(),   data.end(),
 
  104                  buffer.begin(), buffer.end()));
 
  113    for (vector<double>::const_iterator i = data.begin(); i != data.end(); ++i) {
 
  117    print(cout, 
debug, 
"JSTDObjectWriter<double>(set<double>&);", buffer.begin(), buffer.end());
 
  119    ASSERT(equals(data.rbegin(),  data.rend(),
 
  120                  buffer.begin(), buffer.end()));
 
 
General purpose messaging.
 
#define ASSERT(A,...)
Assert macro.
 
Utility class to parse command line options.
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
int main(int argc, char **argv)
 
void print(const TH1 &h1, std::ostream &out)
Print histogram parameters.
 
virtual bool put(const T &object)=0
Object output.
 
Implementation of object output from STD container.
 
Utility class to parse command line options.
 
void copy(const Head &from, JHead &to)
Copy header from from to to.
 
bool equals(const JFirst_t &first, const JSecond_t &second, const double precision=std::numeric_limits< double >::min())
Check equality.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).