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> >,
72 template<
unsigned int M>
77 std::copy_n(array.
data(),
N, this->
data());
86 template<
unsigned int M>
91 std::copy_n(array.
data(),
N, this->
data());
102 std::copy_n(p,
N, this->
data());
136 std::copy_n(array.
data(),
N-1, this->
data());
150 std::copy_n(array.
data(),
N-1, this->
data());
186 template<
class ...Args>
198 template<
class ...Args>
257 if (index >= 0 && index <
N)
272 if (index >= 0 && index <
N)
341 for (
int i = 0; i !=
N; ++i) {
354 for (
int i = 0; i !=
N; ++i) {
370 for (
int i = 0; i !=
N; ++i) {
386 for (
int i = 0; i !=
N; ++i) {
402 for (
int i = 0; i !=
N; ++i) {
418 for (
int i = 0; i !=
N; ++i) {
434 for (
int i = 0; i !=
N; ++i) {
435 if (
buffer[i] != array[i]) {
523 template<
class ...Args>
546 template<
unsigned int M>
560 template<
unsigned int M>
597 template<
unsigned int M>
602 assign(key.second, value);
612 template<
unsigned int M>
617 assign(key.second, value);
654 public JMath < JArray<1,T> >,
659 static const unsigned int N = 1;
687 template<
unsigned int M>
699 template<
unsigned int M>
941 return buffer[0] == array[0];
988 return in >> buffer[0];
1001 return out << buffer[0];
1014 template<
unsigned int N,
class T>
1032 template<
unsigned int M>
1045 template<
unsigned int M>
1081 if (index >= 0 && index <
N)
1117 return JArray<
N-1,
const T>(p + 1);
1172 static const unsigned int N = 1;
1188 template<
unsigned int M>
1201 template<
unsigned int M>
1237 if (index >= 0 && index <
N)
1275 return out << buffer[0];
Interface for binary output.
Auxiliary base class for aritmetic operations of derived class types.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
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.
then usage $script< input file >[option[primary[working directory]]] nWhere option can be N
#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 JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Auxiliary data structure for floating point format specification.