22 __A__(
const int __i) :
26 friend inline bool operator<(
const __A__& first,
const __A__& second)
28 return first.i < second.i;
31 friend inline std::ostream&
operator<<(std::ostream& out,
const __A__&
object)
33 return out <<
object.i;
50 void inline print(std::ostream& out,
int debug,
const char*
const message,
int N, T* p)
55 if (
debug >- debug_t) {
59 for (
int i = 0; i != N; ++i) {
60 out <<
' ' <<
setw(2) << p[i];
83 JParser<> zap(
"Example program to test selection of ordered data.");
89 catch(
const exception &error) {
101 buffer.push_back(__A__(i));
108 buffer[index].i += 1;
118 for (
int i = 0; i != index; ++i) {
122 for (
int i = index; i != N; ++i) {
123 ASSERT(buffer[i].i == i+1);
128 sort(buffer.begin(), buffer.end());
134 buffer[index].i += 1;
144 buffer[index].i = index;
150 buffer[index].i -= 1;
160 buffer[index].i = index;
165 buffer[index].i -= 1;
175 for (
int i = 0; i != index; ++i) {
179 for (
int i = index; i != N; ++i) {
180 ASSERT(buffer[i].i == i+1);
185 sort(buffer.begin(), buffer.end());
bool operator<(const Status_Item &first, const Status_Item &second)
comparator for Status item; earliest hit first
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.
Auxiliary methods to convert data members or return values of member methods of a set of objects to a...
Template definition of a multi-dimensional oscillation probability interpolation table.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).