OpenStructure
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends
ConstSequenceList Class Reference

#include <sequence_list.hh>

Public Types

typedef impl::SequenceListIterator< ConstSequenceHandle, impl::SequenceImplListIteratorIterator
 
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::SequenceListImplPtrImpl () const
 
 ConstSequenceList (const impl::SequenceListImplPtr &impl)
 

Protected Member Functions

void CheckValidity () const
 

Protected Attributes

impl::SequenceListImplPtr impl_
 

Friends

class SequenceList
 

Detailed Description

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.

Member Typedef Documentation

◆ Iterator

Definition at line 37 of file sequence_list.hh.

◆ iterator

typedef Iterator iterator

Definition at line 38 of file sequence_list.hh.

Constructor & Destructor Documentation

◆ ConstSequenceList() [1/2]

◆ ConstSequenceList() [2/2]

Member Function Documentation

◆ AddSequence()

void AddSequence ( const ConstSequenceHandle sequence)

◆ Begin()

Iterator Begin ( ) const

◆ begin()

Iterator begin ( ) const
inline

Definition at line 51 of file sequence_list.hh.

◆ CheckValidity()

void CheckValidity ( ) const
protected

◆ End()

Iterator End ( ) const

◆ end()

Iterator end ( ) const
inline

Definition at line 52 of file sequence_list.hh.

◆ FindSequence()

ConstSequenceHandle FindSequence ( const String name) const

◆ GetCount()

int GetCount ( ) const

get number of sequences in list

◆ GetMaxLength()

int GetMaxLength ( ) const

◆ GetMinLength()

int GetMinLength ( ) const

◆ Impl()

impl::SequenceListImplPtr& Impl ( ) const

◆ IsValid()

bool IsValid ( ) const

◆ operator[]()

ConstSequenceHandle operator[] ( int  index) const

◆ SequencesHaveEqualLength()

bool SequencesHaveEqualLength ( ) const

◆ Slice()

ConstSequenceList Slice ( int  first,
int  n 
) const

create a sequence list from the given splice interval

◆ Take()

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

Friends And Related Function Documentation

◆ SequenceList

friend class SequenceList
friend

Definition at line 35 of file sequence_list.hh.

Field Documentation

◆ impl_

impl::SequenceListImplPtr impl_
mutableprotected

Definition at line 74 of file sequence_list.hh.


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