1 #ifndef __JTOOLS__JARRAY__
2 #define __JTOOLS__JARRAY__
21 namespace JPP {
using namespace JTOOLS; }
36 template<
unsigned int N,
class T>
38 public JMath < JArray<N,T> >,
67 template<
unsigned int M>
72 std::copy_n(array.
data(),
N, this->
data());
81 template<
unsigned int M>
86 std::copy_n(array.
data(),
N, this->
data());
97 std::copy_n(p,
N, this->
data());
131 std::copy_n(array.
data(),
N-1, this->
data());
145 std::copy_n(array.
data(),
N-1, this->
data());
180 template<
class ...Args>
192 template<
class ...Args>
251 if (index >= 0 && index <
N)
266 if (index >= 0 && index <
N)
335 for (
int i = 0; i !=
N; ++i) {
351 for (
int i = 0; i !=
N; ++i) {
367 for (
int i = 0; i !=
N; ++i) {
383 for (
int i = 0; i !=
N; ++i) {
399 for (
int i = 0; i !=
N; ++i) {
415 for (
int i = 0; i !=
N; ++i) {
416 if (
buffer[i] != array[i]) {
470 template<
class ...Args>
493 template<
unsigned int M>
507 template<
unsigned int M>
544 template<
unsigned int M>
549 assign(key.second, value);
559 template<
unsigned int M>
564 assign(key.second, value);
601 public JMath < JArray<1,T> >,
606 static const unsigned int N = 1;
632 template<
unsigned int M>
644 template<
unsigned int M>
743 if (index >= 0 && index <
N)
758 if (index >= 0 && index <
N)
875 return buffer[0] == array[0];
888 return in >> buffer[0];
901 return out << buffer[0];
914 template<
unsigned int N,
class T>
932 template<
unsigned int M>
945 template<
unsigned int M>
981 if (index >= 0 && index <
N)
1017 return JArray<
N-1,
const T>(p + 1);
1072 static const unsigned int N = 1;
1088 template<
unsigned int M>
1101 template<
unsigned int M>
1137 if (index >= 0 && index <
N)
1175 return out << buffer[0];
Interface for binary output.
Auxiliary base class for aritmetic operations of derived class types.
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 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 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