Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

FeatureInfo Class Reference

Base class for displaying info about reads and features. More...

#include <featureinfo.h>

Inheritance diagram for FeatureInfo:

Inheritance graph
Collaboration diagram for FeatureInfo:

Collaboration graph
List of all members.

Public Member Functions

 FeatureInfo (FeatureData *data)
virtual ~FeatureInfo ()
std::string getPosInfo (TR_DNA pos)
std::string getRangeInfo (TR_DNA begin, TR_DNA end)

Protected Member Functions

virtual std::string myInfoPos (TR_DNA pos)
virtual std::string myInfoRange (TR_DNA begin, TR_DNA end)

Protected Attributes


Detailed Description

Base class for displaying info about reads and features.

Definition at line 19 of file featureinfo.h.

Constructor & Destructor Documentation

FeatureInfo::FeatureInfo FeatureData data  )  [inline]

Definition at line 22 of file featureinfo.h.

00022 : m_data(data) {}

virtual FeatureInfo::~FeatureInfo  )  [inline, virtual]

Definition at line 23 of file featureinfo.h.

00023 {}

Member Function Documentation

std::string FeatureInfo::getPosInfo TR_DNA  pos  ) 

Definition at line 6 of file

References FeatureData::endPos(), m_data, and myInfoPos().

Referenced by TrapperView::getInfo().

00007 {
00008   if ( pos < m_data->startPos() || pos > m_data->endPos() )
00009     return std::string();
00011   return myInfoPos(pos);
00012 }

std::string FeatureInfo::getRangeInfo TR_DNA  begin,
TR_DNA  end

Definition at line 14 of file

References FeatureData::endPos(), m_data, and myInfoRange().

Referenced by TrapperView::getInfo().

00015 {
00016   if ( end < m_data->startPos() || begin > m_data->endPos() )
00017     return std::string();
00019   return myInfoRange(begin, end);
00020 }

std::string FeatureInfo::myInfoPos TR_DNA  pos  )  [protected, virtual]

Reimplemented in DnpInfo, DnaStrInfo, and QualityInfo.

Definition at line 22 of file

Referenced by getPosInfo().

00023 {
00024   return std::string();
00025 }

std::string FeatureInfo::myInfoRange TR_DNA  begin,
TR_DNA  end
[protected, virtual]

Reimplemented in DnpInfo.

Definition at line 27 of file

Referenced by getRangeInfo().

00028 {
00029   return std::string();
00030 }

Member Data Documentation

FeatureData* FeatureInfo::m_data [protected]

Definition at line 28 of file featureinfo.h.

Referenced by DnaStrInfo::dnaStrData(), DnpInfo::dnpData(), getPosInfo(), getRangeInfo(), and QualityInfo::qualityData().

The documentation for this class was generated from the following files:
Generated on Fri Mar 17 17:44:58 2006 for trapper by  doxygen 1.4.4