Go to the documentation of this file. 1 #ifndef __JTOOLS__JARRAY__
2 #define __JTOOLS__JARRAY__
35 template<
unsigned int N,
class T>
69 std::copy_n(array.
data(), N-1, this->
data());
83 std::copy_n(array.
data(), N-1, this->
data());
94 template<
unsigned int M>
97 std::copy_n(array.
data(), N-1 < M ? N-1 : M, this->
data());
106 template<
unsigned int M>
109 std::copy_n(array.
data(), N-1 < M ? N-1 : M, this->
data());
128 for (
unsigned int i = 2; i != N; ++i) {
130 T value = va_arg(ap, T);
146 std::copy_n(p, N,
data());
180 for (
int i = 0; i != N; ++i) {
236 if (index >= 0 && index < N)
251 if (index >= 0 && index < N)
320 for (
int i = 0; i != N; ++i) {
336 for (
int i = 0; i != N; ++i) {
352 for (
int i = 0; i != N; ++i) {
368 for (
int i = 0; i != N; ++i) {
384 for (
int i = 0; i != N; ++i) {
400 for (
int i = 0; i != N; ++i) {
401 if (
buffer[i] != array[i]) {
452 template<
unsigned int M>
466 template<
unsigned int M>
509 static const unsigned int N = 1;
535 template<
unsigned int M>
547 template<
unsigned int M>
646 if (index >= 0 && index < N)
661 if (index >= 0 && index < N)
778 return buffer[0] == array[0];
824 template<
unsigned int N,
class T>
842 template<
unsigned int M>
855 template<
unsigned int M>
891 if (index >= 0 && index < N)
927 return JArray<N-1,
const T>(p + 1);
938 return JArray<N-1,
const T>(p);
982 static const unsigned int N = 1;
998 template<
unsigned int M>
1011 template<
unsigned int M>
1047 if (index >= 0 && index < N)
1107 class JArray<0, const T>;
Interface for binary input.
Exception for accessing an index in a collection that is outside of its range.
Template definition of auxiliary base class for comparison of data structures.
#define STATIC_CHECK(expr)
JArgument< T >::argument_type argument_type
Auxiliary base class for aritmetic operations of derived class types.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Interface for binary output.