cnorxz/src/ranges/range_base.cc

39 lines
609 B
C++
Raw Normal View History

2017-12-17 17:40:55 +01:00
#include "range_base.h"
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