Tree. remove redunant function
This commit is contained in:
parent
715175085e
commit
4d381d62e4
4 changed files with 34 additions and 22 deletions
|
|
@ -14,16 +14,11 @@ namespace tp {
|
|||
mEnd = end;
|
||||
}
|
||||
|
||||
inline bool descentRight(const IntervalKey& in) const {
|
||||
inline bool descentRight(const IntervalKey& in) const {
|
||||
if (in.mStart != mStart) return in.mStart > mStart;
|
||||
return in.mEnd > mEnd;
|
||||
}
|
||||
|
||||
inline bool descentLeft(const IntervalKey& in) const {
|
||||
if (in.mStart != mStart) return in.mStart < mStart;
|
||||
return in.mEnd < mEnd;
|
||||
}
|
||||
|
||||
inline bool exactNode(const IntervalKey& in) const { return in.mStart == mStart && in.mEnd == mEnd; }
|
||||
|
||||
inline const IntervalKey& getFindKey() const { return *this; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue