1 #ifndef __JTOOLS__JMULTIKEY__
2 #define __JTOOLS__JMULTIKEY__
20 namespace JPP {
using namespace JTOOLS; }
33 template<
unsigned int N,
class JKey_t>
41 template<
unsigned int N,
class JKey_t>
47 template<
unsigned int N,
class JKey_t>
48 struct JArgument<
N, const JKey_t> {
65 template<
unsigned int N,
class JKey_t>
67 public std::pair<JKey_t, JMultiKey<N-1, JKey_t> >,
68 public JComparable< JMultiKey<N, JKey_t> >
107 pair(__first, __second)
129 if (this->
first == key.first)
130 return this->second.less(key.second);
132 return this->
first < key.first;
143 return this->
first*this->
first + this->second.getLengthSquared();
176 return this->second.back();
203 friend inline std::ostream& operator<<(std::ostream& out, const JMultiKey<N, JKey_t>& key)
207 out << format << key.first;
219 template<
class JKey_t>
221 public std::pair<JKey_t, JMultiKey<1, JKey_t> >,
283 if (this->
first == key.first)
284 return this->second.less(key.second);
286 return this->
first < key.first;
297 return this->
first*this->
first + this->second.getLengthSquared();
330 return this->second.back();
357 friend inline std::ostream& operator<<(std::ostream& out, const JMultiKey<2, JKey_t>& key)
361 out << format << key.first;
373 template<
class JKey_t>
504 friend inline std::ostream& operator<<(std::ostream& out, const JMultiKey<1, JKey_t>& key)
508 out << format << key.first;
521 template<
class JKey_t>
JFormat_t & getFormat()
Get format for given type.
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
JArgument< T >::argument_type argument_type
Template definition of auxiliary base class for comparison of data structures.
Template for generic class types.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
then usage $script[input file[working directory[option]]] nWhere option can be N