2017-12-17 17:40:55 +01:00
|
|
|
|
2018-02-14 16:44:55 +01:00
|
|
|
#include "ranges/range_base.h"
|
2017-12-17 17:40:55 +01:00
|
|
|
|
|
|
|
namespace MultiArrayTools
|
|
|
|
{
|
|
|
|
|
2017-12-18 11:19:04 +01:00
|
|
|
size_t indexId()
|
|
|
|
{
|
|
|
|
static size_t id = 0;
|
|
|
|
++id;
|
|
|
|
return id;
|
|
|
|
}
|
|
|
|
|
2017-12-17 17:40:55 +01:00
|
|
|
/*************************
|
|
|
|
* RangeFactoryBase *
|
|
|
|
*************************/
|
|
|
|
|
|
|
|
void RangeFactoryBase::setSelf()
|
|
|
|
{
|
|
|
|
mProd->mThis = mProd;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************
|
|
|
|
* RangeBase *
|
|
|
|
******************/
|
|
|
|
|
|
|
|
bool RangeBase::operator==(const RangeBase& in) const
|
|
|
|
{
|
|
|
|
return this == ∈
|
|
|
|
}
|
|
|
|
|
|
|
|
bool RangeBase::operator!=(const RangeBase& in) const
|
|
|
|
{
|
|
|
|
return this != ∈
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
} // end namespace MultiArrayTools
|