cnorxz/src/lib/ranges/range_base.cc
2018-02-14 16:44:55 +01:00

38 lines
616 B
C++

#include "ranges/range_base.h"
namespace MultiArrayTools
{
size_t indexId()
{
static size_t id = 0;
++id;
return id;
}
/*************************
* 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