1 #ifndef __JTOOLS__JARRAY__
2 #define __JTOOLS__JARRAY__
24 namespace JPP {
using namespace JTOOLS; }
39 template<
unsigned int N,
class T>
41 public JMath < JArray<N,T> >,
70 template<
unsigned int M>
75 std::copy_n(array.
data(),
N, this->
data());
84 template<
unsigned int M>
89 std::copy_n(array.
data(),
N, this->
data());
100 std::copy_n(p,
N, this->
data());
134 std::copy_n(array.
data(),
N-1, this->
data());
148 std::copy_n(array.
data(),
N-1, this->
data());
184 template<
class ...Args>
196 template<
class ...Args>
255 if (index >= 0 && index <
N)
270 if (index >= 0 && index <
N)
339 for (
int i = 0; i !=
N; ++i) {
355 for (
int i = 0; i !=
N; ++i) {
371 for (
int i = 0; i !=
N; ++i) {
387 for (
int i = 0; i !=
N; ++i) {
403 for (
int i = 0; i !=
N; ++i) {
419 for (
int i = 0; i !=
N; ++i) {
420 if (
buffer[i] != array[i]) {
508 template<
class ...Args>
531 template<
unsigned int M>
545 template<
unsigned int M>
582 template<
unsigned int M>
587 assign(key.second, value);
597 template<
unsigned int M>
602 assign(key.second, value);
639 public JMath < JArray<1,T> >,
644 static const unsigned int N = 1;
670 template<
unsigned int M>
682 template<
unsigned int M>
781 if (index >= 0 && index <
N)
796 if (index >= 0 && index <
N)
913 return buffer[0] == array[0];
960 return in >> buffer[0];
973 return out << buffer[0];
986 template<
unsigned int N,
class T>
1004 template<
unsigned int M>
1017 template<
unsigned int M>
1053 if (index >= 0 && index <
N)
1089 return JArray<
N-1,
const T>(p + 1);
1144 static const unsigned int N = 1;
1160 template<
unsigned int M>
1173 template<
unsigned int M>
1209 if (index >= 0 && index <
N)
1247 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 CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Auxiliary data structure for floating point format specification.
then usage $script[input file[working directory[option]]] nWhere option can be N