list of immutable sequences. More...
#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 |
ConstSequenceHandle | FindSequence (const String &name) 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 38 of file sequence_list.hh.
Definition at line 37 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.
Iterator Begin | ( | ) | const |
void CheckValidity | ( | ) | const [protected] |
Iterator end | ( | ) | const [inline] |
Definition at line 52 of file sequence_list.hh.
Iterator End | ( | ) | const |
ConstSequenceHandle FindSequence | ( | const String & | name | ) | const |
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 class SequenceList [friend] |
Definition at line 35 of file sequence_list.hh.
impl::SequenceListImplPtr impl_ [mutable, protected] |
Definition at line 74 of file sequence_list.hh.