OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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::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::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

Definition at line 37 of file sequence_list.hh.

typedef Iterator iterator

Definition at line 38 of file sequence_list.hh.

Constructor & Destructor Documentation

Member Function Documentation

void AddSequence ( const ConstSequenceHandle sequence)
Iterator Begin ( ) const
Iterator begin ( ) const
inline

Definition at line 51 of file sequence_list.hh.

void CheckValidity ( ) const
protected
Iterator End ( ) const
Iterator end ( ) const
inline

Definition at line 52 of file sequence_list.hh.

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

Friends And Related Function Documentation

friend class SequenceList
friend

Definition at line 35 of file sequence_list.hh.

Field Documentation

impl::SequenceListImplPtr impl_
mutableprotected

Definition at line 74 of file sequence_list.hh.


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