ARB
Public Member Functions | List of all members
BasePosition Class Reference

#include <BI_basepos.hxx>

Inheritance diagram for BasePosition:
Inheritance graph
[legend]
Collaboration diagram for BasePosition:
Collaboration graph
[legend]

Public Member Functions

void initialize (const char *seq, int size)
 
void initialize (const char *seq, int size, const CharPredicate &is_gap)
 
 BasePosition ()
 
 BasePosition (const char *seq, int size)
 
 BasePosition (const char *seq, int size, const CharPredicate &is_gap)
 
 ~BasePosition ()
 
bool gotData () const
 
int abs_2_rel (int abs) const
 
int rel_2_abs (int rel) const
 
int first_base_abspos () const
 
int last_base_abspos () const
 
int base_count () const
 
int abs_count () const
 

Detailed Description

Definition at line 46 of file BI_basepos.hxx.

Constructor & Destructor Documentation

BasePosition::BasePosition ( )
inline

Definition at line 69 of file BI_basepos.hxx.

BasePosition::BasePosition ( const char seq,
int  size 
)
inline

Definition at line 70 of file BI_basepos.hxx.

References initialize().

BasePosition::BasePosition ( const char seq,
int  size,
const CharPredicate is_gap 
)
inline

Definition at line 71 of file BI_basepos.hxx.

References initialize().

BasePosition::~BasePosition ( )
inline

Definition at line 72 of file BI_basepos.hxx.

Member Function Documentation

void BasePosition::initialize ( const char seq,
int  size 
)

Definition at line 22 of file BI_basepos.cxx.

References is_Gap().

Referenced by BasePosition(), and BI_ecoli_ref::init().

void BasePosition::initialize ( const char seq,
int  size,
const CharPredicate is_gap 
)

Definition at line 27 of file BI_basepos.cxx.

References CharPredicate::applies(), and bi_assert.

bool BasePosition::gotData ( ) const
inline

Definition at line 74 of file BI_basepos.hxx.

Referenced by abs_2_rel(), ED4_jump_to_cursor_position(), and rel_2_abs().

int BasePosition::abs_2_rel ( int  abs) const
inline
int BasePosition::rel_2_abs ( int  rel) const
inline
int BasePosition::first_base_abspos ( ) const
inline

Definition at line 97 of file BI_basepos.hxx.

References rel_2_abs().

Referenced by CompactedSequence::CompactedSequence().

int BasePosition::last_base_abspos ( ) const
inline

Definition at line 98 of file BI_basepos.hxx.

References rel_2_abs().

Referenced by CompactedSequence::CompactedSequence().

int BasePosition::base_count ( ) const
inline

Definition at line 100 of file BI_basepos.hxx.

Referenced by ED4_base_position::get_base_count(), and CompactedSequence::length().

int BasePosition::abs_count ( ) const
inline

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