NCBI C++ ToolKit
|
Search Toolkit Book for CAlnSeqIdsExtract
IAlnSeqId extracting functor. More...
#include <objtools/alnmgr/seqids_extractor.hpp>
Public Types | |
typedef vector< TAlnSeqIdIRef > | TIdVec |
Public Member Functions | |
CAlnSeqIdsExtract (void) | |
CAlnSeqIdsExtract (const TIdConverter &id_conv) | |
void | operator() (const CSeq_align &seq_align, TIdVec &id_vec) const |
Extract ids for the alignment. More... | |
TAlnSeqId * | NewAlnSeqId (const CSeq_id &id) const |
Convert seq-id to TAlnSeqId. More... | |
Static Private Member Functions | |
static bool | IdVecEqual (const TIdVec &x, const TIdVec &y) |
Private Attributes | |
TIdConverter | m_IdConv |
IAlnSeqId extracting functor.
Definition at line 99 of file seqids_extractor.hpp.
typedef vector<TAlnSeqIdIRef> CAlnSeqIdsExtract< TAlnSeqId, TIdConverter >::TIdVec |
Definition at line 105 of file seqids_extractor.hpp.
|
inline |
Definition at line 102 of file seqids_extractor.hpp.
|
inline |
Definition at line 103 of file seqids_extractor.hpp.
|
inlinestaticprivate |
Definition at line 329 of file seqids_extractor.hpp.
Referenced by CAlnSeqIdsExtract< TAlnSeqId, TIdConverter >::operator()().
|
inline |
Convert seq-id to TAlnSeqId.
Definition at line 323 of file seqids_extractor.hpp.
References CAlnSeqIdsExtract< TAlnSeqId, TIdConverter >::m_IdConv.
Referenced by CAlnSeqIdsExtract< TAlnSeqId, TIdConverter >::operator()().
|
inline |
Extract ids for the alignment.
seq_align | Input seq-align. |
id_vec | Output vector to receive ids for the alignment. |
Definition at line 112 of file seqids_extractor.hpp.
References _ASSERT, CSeq_loc_Base::e_Empty, CSeq_loc_Base::e_Int, e_not_set, CSeq_loc_Base::e_Pnt, CSpliced_seg_Base::eProduct_type_protein, CStd_seg_Base::GetDim(), CSparse_align_Base::GetFirst_id(), CSpliced_seg_Base::GetGenomic_id(), CStd_seg_Base::GetLoc(), CSpliced_seg_Base::GetProduct_id(), CSpliced_seg_Base::GetProduct_type(), CSparse_align_Base::GetSecond_id(), CSeq_align_Base::GetSegs(), i, CAlnSeqIdsExtract< TAlnSeqId, TIdConverter >::IdVecEqual(), ITERATE, NCBI_THROW, CAlnSeqIdsExtract< TAlnSeqId, TIdConverter >::NewAlnSeqId(), NStr::NumericToString(), prot, row, string, true, and CSeq_align::Validate().
|
private |
Definition at line 335 of file seqids_extractor.hpp.
Referenced by CAlnSeqIdsExtract< TAlnSeqId, TIdConverter >::NewAlnSeqId().