1 #ifndef __JTOOLS__JARRAY__
2 #define __JTOOLS__JARRAY__
21 namespace JPP {
using namespace JTOOLS; }
34 template<
unsigned int N,
class T>
65 template<
unsigned int M>
70 std::copy_n(array.
data(),
N, this->
data());
79 template<
unsigned int M>
84 std::copy_n(array.
data(),
N, this->
data());
95 std::copy_n(p,
N, this->
data());
129 std::copy_n(array.
data(),
N-1, this->
data());
143 std::copy_n(array.
data(),
N-1, this->
data());
178 template<
class ...Args>
190 template<
class ...Args>
249 if (index >= 0 && index <
N)
264 if (index >= 0 && index <
N)
333 for (
int i = 0; i !=
N; ++i) {
349 for (
int i = 0; i !=
N; ++i) {
365 for (
int i = 0; i !=
N; ++i) {
381 for (
int i = 0; i !=
N; ++i) {
397 for (
int i = 0; i !=
N; ++i) {
413 for (
int i = 0; i !=
N; ++i) {
414 if (
buffer[i] != array[i]) {
468 template<
class ...Args>
491 template<
unsigned int M>
505 template<
unsigned int M>
542 template<
unsigned int M>
547 assign(key.second, value);
557 template<
unsigned int M>
562 assign(key.second, value);
604 static const unsigned int N = 1;
630 template<
unsigned int M>
642 template<
unsigned int M>
741 if (index >= 0 && index <
N)
756 if (index >= 0 && index <
N)
873 return buffer[0] == array[0];
886 return in >> buffer[0];
899 return out << buffer[0];
912 template<
unsigned int N,
class T>
930 template<
unsigned int M>
943 template<
unsigned int M>
979 if (index >= 0 && index <
N)
1015 return JArray<
N-1,
const T>(p + 1);
1070 static const unsigned int N = 1;
1086 template<
unsigned int M>
1099 template<
unsigned int M>
1135 if (index >= 0 && index <
N)
1173 return out << buffer[0];
Interface for binary output.
Auxiliary base class for aritmetic operations of derived class types.
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
JArgument< T >::argument_type argument_type
do set_variable OUTPUT_DIRECTORY $WORKDIR T
Template definition of auxiliary base class for comparison of data structures.
Interface for binary input.
#define STATIC_CHECK(expr)
Base class for data structures with artithmetic capabilities.
Exception for accessing an index in a collection that is outside of its range.
then usage $script[input file[working directory[option]]] nWhere option can be N