size_t rc = 0;
if (index < count()){
Sequence* seq = getInfo(index);
- rc = seq->m_length;
+ //@ToDo
+ rc = getLength(seq);
}
return rc;
}
size_t rc = 0;
if (index < count()){
Sequence* seq = getInfo(index);
- rc = seq->m_length - 1;
+ rc = rc = getLength(seq) - 1;
}
return rc;
}
for (int ii = count() - 1; ii >= 0; ii--){
Sequence* seq = getInfo(ii);
- rc += seq->m_length;
+ rc += rc = getLength(seq);
}
return rc;
}
for (int ii = count() - 1; ii >= 0; ii--){
Sequence* seq = getInfo(ii);
- rc += seq->m_length - 1;
+ rc += rc = getLength(seq);
}
return rc;
}
ReSeqArray::Index index;
checkF(list.binarySearch("cee", -1, index, NULL));
- checkEqu(5ll, index);
+ checkEqu(ReSeqArray::Index(5), index);
checkF(list.binarySearch("ab", 2, index, NULL));
- checkEqu(0ll, index);
+ checkEqu(ReSeqArray::Index(0), index);
checkF(list.binarySearch("ab", -1, index, NULL));
- checkEqu(0ll, index);
+ checkEqu(ReSeqArray::Index(0), index);
checkF(list.binarySearch("abcd", -1, index, NULL));
- checkEqu(2ll, index);
+ checkEqu(ReSeqArray::Index(2), index);
checkF(list.binarySearch("bbd", -1, index, NULL));
- checkEqu(3ll, index);
+ checkEqu(ReSeqArray::Index(3), index);
checkF(list.binarySearch("bbd", -1, index, NULL));
- checkEqu(3ll, index);
+ checkEqu(ReSeqArray::Index(3), index);
checkF(list.binarySearch("bc", -1, index, NULL));
- checkEqu(3ll, index);
+ checkEqu(ReSeqArray::Index(3), index);
checkF(list.binarySearch("bcd0", -1, index, NULL));
- checkEqu(4ll, index);
+ checkEqu(ReSeqArray::Index(4), index);
checkF(list.binarySearch("cdex", -1, index, NULL));
- checkEqu(5ll, index);
+ checkEqu(ReSeqArray::Index(5), index);
checkF(list.binarySearch("cee", -1, index, NULL));
- checkEqu(5ll, index);
+ checkEqu(ReSeqArray::Index(5), index);
}
void testBinSearch2(){
ReSeqArray list;
- ReSeqArray::Tag tag;
ReSeqArray::Index index;
ReByteBuffer value;
list.setSorted(true);