2017-02-16 11:20:40 +01:00
|
|
|
// -*- C++ -*-
|
|
|
|
|
|
|
|
#ifndef __base_def_h__
|
|
|
|
#define __base_def_h__
|
|
|
|
|
2017-02-22 13:34:32 +01:00
|
|
|
#include <cassert>
|
|
|
|
|
2017-02-16 11:20:40 +01:00
|
|
|
#define DEFAULT_MEMBERS(__class_name__) __class_name__() = default; \
|
|
|
|
__class_name__(const __class_name__& in) = default; \
|
|
|
|
__class_name__& operator=(const __class_name__& in) = default; \
|
|
|
|
__class_name__(__class_name__&& in) = default; \
|
|
|
|
__class_name__& operator=(__class_name__&& in) = default
|
|
|
|
|
2017-02-21 21:47:40 +01:00
|
|
|
#define DEBUG_MODE_X
|
2017-02-21 17:41:48 +01:00
|
|
|
|
|
|
|
#ifdef DEBUG_MODE_X
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
#define CHECK std::cout << __FILE__ << ": @" << __LINE__ << " in " << __func__ << std::endl;
|
|
|
|
#define VCHECK(a) std::cout << __FILE__ << ": @" << __LINE__ \
|
|
|
|
<< " in " << __func__ << ": " << #a << " = " << a << std::endl;
|
|
|
|
|
|
|
|
#else
|
|
|
|
#define CHECK
|
|
|
|
#define VCHECK(a)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2017-02-16 11:20:40 +01:00
|
|
|
namespace MultiArrayTools
|
|
|
|
{
|
|
|
|
/***********************
|
|
|
|
* Provided Types *
|
|
|
|
***********************/
|
|
|
|
|
|
|
|
// range_base.h
|
|
|
|
enum class RangeType;
|
|
|
|
|
|
|
|
// range_base.h
|
|
|
|
class MultiRangeType;
|
|
|
|
|
|
|
|
// range_base.h
|
|
|
|
template <class Index>
|
|
|
|
class RangeBase;
|
|
|
|
|
|
|
|
// range_base.h
|
|
|
|
template <class Index>
|
|
|
|
class SubRangeBase;
|
|
|
|
|
|
|
|
// index_base.h
|
|
|
|
class IndefinitIndexBase;
|
|
|
|
|
|
|
|
// index_base.h
|
|
|
|
template <class Index>
|
|
|
|
class IndexBase;
|
|
|
|
|
|
|
|
// single_range.h
|
|
|
|
template <typename U, RangeType TYPE>
|
|
|
|
class SingleIndex;
|
|
|
|
|
|
|
|
// single_range.h
|
|
|
|
template <typename U, RangeType TYPE>
|
|
|
|
class SingleRange;
|
|
|
|
|
|
|
|
// multi_range.h
|
|
|
|
template <class... Indices>
|
|
|
|
class MultiIndex;
|
|
|
|
|
|
|
|
// multi_range.h
|
|
|
|
template <class... Ranges>
|
|
|
|
class MultiRange;
|
2017-02-26 18:14:58 +01:00
|
|
|
|
|
|
|
// multi_array.h
|
|
|
|
template <typename T, class Range>
|
|
|
|
class MultiArrayBase;
|
2017-02-16 11:20:40 +01:00
|
|
|
|
|
|
|
// multi_array.h
|
|
|
|
template <typename T, class Range>
|
|
|
|
class MultiArray;
|
|
|
|
|
|
|
|
// multi_array_operation.h
|
2017-02-24 15:08:42 +01:00
|
|
|
template <typename T>
|
2017-02-16 11:20:40 +01:00
|
|
|
class MultiArrayOperationBase;
|
2017-02-24 15:08:42 +01:00
|
|
|
|
|
|
|
// multi_array_operation.h
|
|
|
|
template <typename T, class Range>
|
|
|
|
class MultiArrayOperationRoot;
|
2017-02-16 11:20:40 +01:00
|
|
|
|
|
|
|
// multi_array_operation.h
|
2017-02-24 15:08:42 +01:00
|
|
|
template <typename T, class Operation, class... MAOps>
|
2017-02-16 11:20:40 +01:00
|
|
|
class MultiArrayOperation;
|
2017-02-23 19:33:46 +01:00
|
|
|
|
|
|
|
// slice.h
|
2017-02-27 17:00:51 +01:00
|
|
|
template <typename T, class Range, class MARange>
|
2017-02-23 19:33:46 +01:00
|
|
|
class Slice;
|
2017-03-08 20:10:11 +01:00
|
|
|
|
|
|
|
// manipulator.h
|
|
|
|
template <typename T>
|
|
|
|
class ManipulatorBase;
|
|
|
|
|
|
|
|
// manipulator.h
|
|
|
|
template <typename T>
|
|
|
|
class BinReader;
|
2017-02-16 11:20:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|