cnorxz/src/ranges/range_base.cc
Christian Zimmermann 7a716d662d im com
2017-12-18 11:19:04 +01:00

38 lines
609 B
C++

#include "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