ISet.cxx revision 7c478bd95313f5f23a4c958a745db2134aa03244
// Copyright (c) 1994 James Clark
// See the file COPYING for copying permission.
#pragma ident "%Z%%M% %I% %E% SMI"
#ifndef ISet_DEF_INCLUDED
#define ISet_DEF_INCLUDED 1
#include <stdlib.h>
#ifdef SP_NAMESPACE
namespace SP_NAMESPACE {
#endif
template<class T>
{
}
template<class T>
{
}
template<class T>
{
for (size_t i = 0; i < n; i++)
add(v[i]);
}
template<class T>
{
return 0;
}
template<class T>
{
size_t i;
if (min == 0)
i = 0;
else {
;
}
// r_[i - 1].max < min - 1 <= r_[i].max
// we can coelesce
size_t j;
// get rid of i + 1 ... j - 1
if (j > i + 1) {
}
}
}
else {
// r_[i - 1].max < min - 1
// max + 1 < r_[i].min
}
}
template<class T>
{
}
else {
// split the range
// subtracting 2 is safe since we know that the length is >= 2
}
}
break;
}
}
template<class T>
{
abort();
// adjacent ranges must be coalesced
abort();
}
}
template<class T>
{
}
#ifdef SP_NAMESPACE
}
#endif
#endif /* not ISet_DEF_INCLUDED */