OpenStructure
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
SequenceList Class Reference

#include <sequence_list.hh>

Public Types

typedef impl::SequenceListIterator< SequenceHandle, impl::SequenceImplListIteratorIterator
 
typedef Iterator iterator
 

Public Member Functions

 SequenceList ()
 
void AddSequence (const SequenceHandle &sequence)
 
bool SequencesHaveEqualLength () const
 
int GetCount () const
 
SequenceHandle operator[] (int index) const
 
Iterator Begin () const
 
Iterator End () const
 
SequenceList Take (int n) const
 
SequenceList Slice (int first, int n) const
 
Iterator begin () const
 
Iterator end () const
 
bool IsValid () const
 
int GetMinLength () const
 
int GetMaxLength () const
 
SequenceHandle FindSequence (const String &name) const
 
impl::SequenceListImplPtrImpl () const
 
 SequenceList (const impl::SequenceListImplPtr &impl)
 
 operator ConstSequenceList () const
 

Protected Member Functions

void CheckValidity () const
 

Protected Attributes

impl::SequenceListImplPtr impl_
 

Detailed Description

list of sequences.

The sequence list is reference counted and thus very cheap to pass around.

Definition at line 80 of file sequence_list.hh.

Member Typedef Documentation

◆ Iterator

Definition at line 84 of file sequence_list.hh.

◆ iterator

typedef Iterator iterator

Definition at line 85 of file sequence_list.hh.

Constructor & Destructor Documentation

◆ SequenceList() [1/2]

◆ SequenceList() [2/2]

Member Function Documentation

◆ AddSequence()

void AddSequence ( const SequenceHandle sequence)

◆ Begin()

Iterator Begin ( ) const

◆ begin()

Iterator begin ( ) const
inline

Definition at line 104 of file sequence_list.hh.

◆ CheckValidity()

void CheckValidity ( ) const
protected

◆ End()

Iterator End ( ) const

◆ end()

Iterator end ( ) const
inline

Definition at line 105 of file sequence_list.hh.

◆ FindSequence()

SequenceHandle FindSequence ( const String name) const

◆ GetCount()

int GetCount ( ) const

◆ GetMaxLength()

int GetMaxLength ( ) const

◆ GetMinLength()

int GetMinLength ( ) const

◆ Impl()

impl::SequenceListImplPtr& Impl ( ) const

◆ IsValid()

bool IsValid ( ) const

◆ operator ConstSequenceList()

operator ConstSequenceList ( ) const

◆ operator[]()

SequenceHandle operator[] ( int  index) const

◆ SequencesHaveEqualLength()

bool SequencesHaveEqualLength ( ) const

◆ Slice()

SequenceList Slice ( int  first,
int  n 
) const

create a sequence list from the given splice interval

◆ Take()

SequenceList 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

Field Documentation

◆ impl_

impl::SequenceListImplPtr impl_
mutableprotected

Definition at line 121 of file sequence_list.hh.


The documentation for this class was generated from the following file: