OpenStructure
|
#include <sequence_list.hh>
Public Types | |
typedef impl::SequenceListIterator < ConstSequenceHandle, impl::SequenceImplListIterator > | Iterator |
typedef Iterator | iterator |
Public Member Functions | |
ConstSequenceList () | |
void | AddSequence (const ConstSequenceHandle &sequence) |
int | GetCount () const |
ConstSequenceHandle | operator[] (int index) const |
Iterator | Begin () const |
Iterator | End () const |
Iterator | begin () const |
Iterator | end () const |
bool | SequencesHaveEqualLength () const |
bool | IsValid () const |
ConstSequenceList | Take (int n) const |
ConstSequenceList | Slice (int first, int n) const |
int | GetMinLength () const |
int | GetMaxLength () const |
impl::SequenceListImplPtr & | Impl () const |
ConstSequenceList (const impl::SequenceListImplPtr &impl) |
Protected Member Functions | |
void | CheckValidity () const |
Protected Attributes | |
impl::SequenceListImplPtr | impl_ |
Friends | |
class | SequenceList |
list of immutable sequences.
The sequence list is reference counted and thus very cheap to pass around.
Definition at line 33 of file sequence_list.hh.
Definition at line 37 of file sequence_list.hh.
Definition at line 38 of file sequence_list.hh.
ConstSequenceList | ( | const impl::SequenceListImplPtr & | impl | ) |
void AddSequence | ( | const ConstSequenceHandle & | sequence | ) |
Iterator Begin | ( | ) | const |
|
inline |
Definition at line 51 of file sequence_list.hh.
|
protected |
Iterator End | ( | ) | const |
|
inline |
Definition at line 52 of file sequence_list.hh.
int GetCount | ( | ) | const |
get number of sequences in list
int GetMaxLength | ( | ) | const |
int GetMinLength | ( | ) | const |
impl::SequenceListImplPtr& Impl | ( | ) | const |
bool IsValid | ( | ) | const |
ConstSequenceHandle operator[] | ( | int | index | ) | const |
bool SequencesHaveEqualLength | ( | ) | const |
ConstSequenceList Slice | ( | int | first, |
int | n | ||
) | const |
create a sequence list from the given splice interval
ConstSequenceList Take | ( | int | n | ) | const |
create a sequence list consisting of n first sequences
if n is negative, the sequences taken from the end of the list
|
friend |
Definition at line 35 of file sequence_list.hh.
|
mutableprotected |
Definition at line 72 of file sequence_list.hh.