#include <featureinfo.h>
Inheritance diagram for DnaStrInfo:
Public Member Functions | |
DnaStrInfo (SpatialFeatureData *data) | |
std::string | myInfoPos (TR_DNA pos) |
Private Member Functions | |
DnaStrData * | dnaStrData () |
Definition at line 53 of file featureinfo.h.
DnaStrInfo::DnaStrInfo | ( | SpatialFeatureData * | data | ) | [inline] |
std::string DnaStrInfo::myInfoPos | ( | TR_DNA | pos | ) | [virtual] |
Reimplemented from FeatureInfo.
Definition at line 65 of file featureinfo.cc.
References dnaStrData(), DnaStrData::dnaVector, and TrapperVector< T >::stlVector().
00066 { 00067 assert( pos >= 0 ); 00068 00069 assert( static_cast<size_t>(pos) < dnaStrData()->dnaVector.stlVector().size() ); 00070 00071 ostringstream os; 00072 00073 os<<"Base: "<<dnaStrData()->dnaVector.stlVector()[ pos ]; 00074 00075 return os.str(); 00076 }
DnaStrData * DnaStrInfo::dnaStrData | ( | ) | [private] |
Definition at line 78 of file featureinfo.cc.
References FeatureInfo::m_data.
Referenced by myInfoPos().
00079 { 00080 return dynamic_cast<DnaStrData *>( m_data ); 00081 }