NCBI C++ ToolKit
|
Search Toolkit Book for CSeq_annot_SNP_Info
#include <objmgr/impl/snp_annot_info.hpp>
Public Types | |
typedef vector< SSNP_Info > | TSNP_Set |
typedef TSNP_Set::const_iterator | const_iterator |
typedef CRange< TSeqPos > | TRange |
typedef vector< char > | TOctetString |
Public Types inherited from CTSE_Info_Object | |
enum | ENeedUpdateAux { kNeedUpdate_bits = 8 } |
enum | ENeedUpdate { fNeedUpdate_this = (1<<kNeedUpdate_bits)-1 , fNeedUpdate_children = fNeedUpdate_this<<kNeedUpdate_bits , fNeedUpdate_descr = 1<<0 , fNeedUpdate_annot = 1<<1 , fNeedUpdate_seq_data = 1<<2 , fNeedUpdate_core = 1<<3 , fNeedUpdate_assembly = 1<<4 , fNeedUpdate_bioseq = 1<<5 , fNeedUpdate_children_descr = fNeedUpdate_descr <<kNeedUpdate_bits , fNeedUpdate_children_annot = fNeedUpdate_annot <<kNeedUpdate_bits , fNeedUpdate_children_seq_data = fNeedUpdate_seq_data<<kNeedUpdate_bits , fNeedUpdate_children_core = fNeedUpdate_core <<kNeedUpdate_bits , fNeedUpdate_children_assembly = fNeedUpdate_assembly<<kNeedUpdate_bits , fNeedUpdate_children_bioseq = fNeedUpdate_bioseq <<kNeedUpdate_bits } |
typedef map< CConstRef< CObject >, CRef< CObject > > | TObjectCopyMap |
typedef int | TNeedUpdateFlags |
typedef int | TChunkId |
typedef vector< TChunkId > | TChunkIds |
Public Types inherited from CObject | |
enum | EAllocFillMode { eAllocFillNone = 1 , eAllocFillZero , eAllocFillPattern } |
Control filling of newly allocated memory. More... | |
typedef CObjectCounterLocker | TLockerType |
Default locker type for CRef. More... | |
typedef atomic< Uint8 > | TCounter |
Counter type is CAtomiCounter. More... | |
typedef Uint8 | TCount |
Alias for value type of counter. More... | |
Protected Member Functions | |
bool | x_CheckId (const CSeq_id &id) |
void | x_DoUpdate (TNeedUpdateFlags flags) |
Protected Member Functions inherited from CTSE_Info_Object | |
void | x_BaseParentAttach (CTSE_Info_Object &parent) |
void | x_BaseParentDetach (CTSE_Info_Object &parent) |
void | x_AttachObject (CTSE_Info_Object &object) |
void | x_DetachObject (CTSE_Info_Object &object) |
Protected Member Functions inherited from CObject | |
virtual void | DeleteThis (void) |
Virtual method "deleting" this object. More... | |
Private Types | |
typedef CTSE_Info_Object | TParent |
Private Member Functions | |
CSeq_annot_SNP_Info & | operator= (const CSeq_annot_SNP_Info &) |
Friends | |
class | CSeq_annot_Info |
class | CSeq_annot_SNP_Info_Reader |
struct | SSNP_Info |
class | CSeq_feat_Handle |
Additional Inherited Members | |
Static Public Member Functions inherited from CObject | |
static NCBI_XNCBI_EXPORT void | ThrowNullPointerException (void) |
Define method to throw null pointer exception. More... | |
static NCBI_XNCBI_EXPORT void | ThrowNullPointerException (const type_info &type) |
static EAllocFillMode | GetAllocFillMode (void) |
static void | SetAllocFillMode (EAllocFillMode mode) |
static void | SetAllocFillMode (const string &value) |
Set mode from configuration parameter value. More... | |
Static Public Member Functions inherited from CDebugDumpable | |
static void | EnableDebugDump (bool on) |
Static Public Attributes inherited from CObject | |
static const TCount | eCounterBitsCanBeDeleted = 1 << 0 |
Define possible object states. More... | |
static const TCount | eCounterBitsInPlainHeap = 1 << 1 |
Heap signature was found. More... | |
static const TCount | eCounterBitsPlaceMask |
Mask for 'in heap' state flags. More... | |
static const int | eCounterStep = 1 << 2 |
Skip over the "in heap" bits. More... | |
static const TCount | eCounterValid = TCount(1) << (sizeof(TCount) * 8 - 2) |
Minimal value for valid objects (reference counter is zero) Must be a single bit value. More... | |
static const TCount | eCounterStateMask |
Valid object, and object in heap. More... | |
Definition at line 158 of file snp_annot_info.hpp.
typedef TSNP_Set::const_iterator CSeq_annot_SNP_Info::const_iterator |
Definition at line 182 of file snp_annot_info.hpp.
typedef vector<char> CSeq_annot_SNP_Info::TOctetString |
Definition at line 217 of file snp_annot_info.hpp.
|
private |
Definition at line 160 of file snp_annot_info.hpp.
typedef CRange<TSeqPos> CSeq_annot_SNP_Info::TRange |
Definition at line 183 of file snp_annot_info.hpp.
typedef vector<SSNP_Info> CSeq_annot_SNP_Info::TSNP_Set |
Definition at line 181 of file snp_annot_info.hpp.
CSeq_annot_SNP_Info::CSeq_annot_SNP_Info | ( | void | ) |
Definition at line 809 of file snp_annot_info.cpp.
CSeq_annot_SNP_Info::CSeq_annot_SNP_Info | ( | CSeq_annot & | annot | ) |
Definition at line 814 of file snp_annot_info.cpp.
CSeq_annot_SNP_Info::CSeq_annot_SNP_Info | ( | const CSeq_annot_SNP_Info & | info | ) |
Definition at line 820 of file snp_annot_info.cpp.
CSeq_annot_SNP_Info::~CSeq_annot_SNP_Info | ( | void | ) |
Definition at line 833 of file snp_annot_info.cpp.
|
inline |
Definition at line 281 of file snp_annot_info.hpp.
References m_SNP_Set.
|
inline |
Definition at line 266 of file snp_annot_info.hpp.
References m_SNP_Set.
Referenced by GetPackedFeatAnnot().
|
inline |
Definition at line 289 of file snp_annot_info.hpp.
References m_SNP_Set.
Referenced by CAnnot_Collector::x_SearchObjects().
|
inline |
Definition at line 297 of file snp_annot_info.hpp.
References m_SNP_Set, and compile_time_bits::range().
Referenced by CAnnot_Collector::x_SearchObjects().
Definition at line 424 of file snp_annot_info.hpp.
Definition at line 416 of file snp_annot_info.hpp.
References _ASSERT, and m_SNP_Set.
Referenced by GetLabel(), CCreateFeat::GetOriginalFeat(), CAnnotObject_Ref::GetSNP_Info(), HasLabel(), and CSeq_feat_Handle::x_GetSNP_InfoAny().
|
inline |
Definition at line 439 of file snp_annot_info.hpp.
References GetInfo(), and SSNP_Info::GetLabel().
Referenced by CSeq_annot_Info::TableFeat_GetLabel().
CSeq_annot_Info & CSeq_annot_SNP_Info::GetParentSeq_annot_Info | ( | void | ) |
Definition at line 844 of file snp_annot_info.cpp.
References CTSE_Info_Object::GetBaseParent_Info().
const CSeq_annot_Info & CSeq_annot_SNP_Info::GetParentSeq_annot_Info | ( | void | ) | const |
Definition at line 838 of file snp_annot_info.cpp.
References CTSE_Info_Object::GetBaseParent_Info().
Referenced by GetParentSeq_entry_Info(), CAnnot_Collector::x_SearchObjects(), CSeq_annot_Info::x_SetSNP_annot_Info(), CSeq_annot_Info::x_TSEAttachContents(), x_UnmapAnnotObjects(), and x_UpdateAnnotIndexContents().
CSeq_entry_Info & CSeq_annot_SNP_Info::GetParentSeq_entry_Info | ( | void | ) |
Definition at line 856 of file snp_annot_info.cpp.
References GetParentSeq_annot_Info(), and CSeq_annot_Info::GetParentSeq_entry_Info().
const CSeq_entry_Info & CSeq_annot_SNP_Info::GetParentSeq_entry_Info | ( | void | ) | const |
Definition at line 850 of file snp_annot_info.cpp.
References GetParentSeq_annot_Info(), and CSeq_annot_Info::GetParentSeq_entry_Info().
|
inline |
Definition at line 311 of file snp_annot_info.hpp.
References m_Seq_annot.
Referenced by CSeq_annot_Info::x_SetSNP_annot_Info().
Definition at line 304 of file snp_annot_info.hpp.
References m_Seq_id.
Referenced by CAnnotObject_Ref::CAnnotObject_Ref(), CSeq_feat_Handle::GetSNPGi(), CSeq_feat_Handle::GetSNPSeq_id(), x_UnmapAnnotObjects(), x_UpdateAnnotIndexContents(), SSNP_Info::x_UpdateSeq_feat(), and CSeq_annot_SNP_Info_Reader::x_Write().
|
inline |
Definition at line 409 of file snp_annot_info.hpp.
References m_SNP_Set.
|
inline |
Definition at line 432 of file snp_annot_info.hpp.
References GetInfo(), and SSNP_Info::HasLabel().
Referenced by CSeq_annot_Info::TableFeat_HasLabel().
void CSeq_annot_SNP_Info::OffsetGi | ( | TIntId | gi_offset | ) |
Definition at line 1071 of file snp_annot_info.cpp.
References CSeq_id_Base::GetGi(), GI_FROM, CSeq_id_Base::IsGi(), m_Seq_id, and CSeq_id_Base::SetGi().
|
private |
void CSeq_annot_SNP_Info::Reset | ( | void | ) |
Definition at line 1094 of file snp_annot_info.cpp.
References CIndexedStrings::Clear(), CIndexedOctetStrings::Clear(), m_Alleles, m_Comments, m_Extra, m_QualityCodesOs, m_QualityCodesStr, m_Seq_annot, m_Seq_id, m_SNP_Set, and CRef< C, Locker >::Reset().
Referenced by CSeq_annot_SNP_Info_Reader::x_Read().
void CSeq_annot_SNP_Info::SetGi | ( | TGi | gi | ) |
Definition at line 1064 of file snp_annot_info.cpp.
References m_Seq_id, and CSeq_id_Base::SetGi().
Definition at line 1058 of file snp_annot_info.cpp.
References m_Seq_id, and SerialClone().
Referenced by GetPackedFeatAnnot(), and CSeq_annot_SNP_Info_Reader::x_Read().
|
inline |
Definition at line 273 of file snp_annot_info.hpp.
References m_SNP_Set.
Definition at line 402 of file snp_annot_info.hpp.
References m_SNP_Set.
Referenced by x_ParseSNP_Info().
Definition at line 140 of file snp_annot_info.cpp.
References CSerialObject::Equals(), CSeq_id_Base::GetGi(), CSeq_id_Base::IsGi(), m_Seq_id, and SerialClone().
Referenced by SSNP_Info::ParseSeq_feat().
|
protectedvirtual |
Reimplemented from CTSE_Info_Object.
Definition at line 894 of file snp_annot_info.cpp.
References flags, and CTSE_Info_Object::x_DoUpdate().
void CSeq_annot_SNP_Info::x_DropAnnotObjects | ( | CTSE_Info & | tse | ) |
Definition at line 889 of file snp_annot_info.cpp.
Referenced by CSeq_annot_Info::x_DropAnnotObjects().
void CSeq_annot_SNP_Info::x_FinishParsing | ( | void | ) |
Definition at line 1079 of file snp_annot_info.cpp.
References CIndexedStrings::ClearIndices(), CIndexedOctetStrings::ClearIndices(), m_Alleles, m_Comments, m_Extra, m_QualityCodesOs, m_QualityCodesStr, m_SNP_Set, ct::sort(), and CTSE_Info_Object::x_SetDirtyAnnotIndex().
|
inline |
Definition at line 371 of file snp_annot_info.hpp.
References CIndexedStrings::GetString(), and m_Alleles.
Referenced by SSNP_Info::GetLabel(), CSeq_feat_Handle::GetSNPAllele(), and SSNP_Info::x_UpdateSeq_featData().
SSNP_Info::TAlleleIndex CSeq_annot_SNP_Info::x_GetAlleleIndex | ( | const string & | allele | ) |
Definition at line 1037 of file snp_annot_info.cpp.
References CIndexedStrings::GetIndex(), CIndexedStrings::IsEmpty(), SSNP_Info::kMax_AlleleIndex, and m_Alleles.
Referenced by SSNP_Info::ParseSeq_feat(), and x_ParseSNP_Info().
|
inline |
Definition at line 227 of file snp_annot_info.hpp.
References m_Alleles.
|
inline |
Definition at line 363 of file snp_annot_info.hpp.
References CIndexedStrings::GetString(), and m_Comments.
Referenced by CSeq_feat_Handle::GetSNPComment(), and SSNP_Info::x_UpdateSeq_featData().
|
inline |
Definition at line 319 of file snp_annot_info.hpp.
References CIndexedStrings::GetIndex(), SSNP_Info::kMax_CommentIndex, and m_Comments.
Referenced by SSNP_Info::ParseSeq_feat().
|
inline |
Definition at line 224 of file snp_annot_info.hpp.
References m_Comments.
|
inline |
Definition at line 395 of file snp_annot_info.hpp.
References CIndexedStrings::GetString(), and m_Extra.
Referenced by CSeq_feat_Handle::GetSNPExtra(), and SSNP_Info::x_UpdateSeq_featData().
|
inline |
Definition at line 330 of file snp_annot_info.hpp.
References CIndexedStrings::GetIndex(), SSNP_Info::kMax_ExtraIndex, m_Extra, and str().
Referenced by SSNP_Info::ParseSeq_feat().
|
inline |
Definition at line 341 of file snp_annot_info.hpp.
References CIndexedStrings::GetIndex(), SSNP_Info::kMax_QualityCodesIndex, m_QualityCodesStr, and str().
Referenced by SSNP_Info::ParseSeq_feat(), and x_ParseSNP_Info().
|
inline |
Definition at line 352 of file snp_annot_info.hpp.
References CIndexedOctetStrings::GetIndex(), SSNP_Info::kMax_QualityCodesIndex, and m_QualityCodesOs.
|
inline |
Definition at line 386 of file snp_annot_info.hpp.
References CIndexedOctetStrings::GetString(), and m_QualityCodesOs.
Referenced by CSeq_feat_Handle::GetSNPQualityCodeOs(), and SSNP_Info::x_UpdateSeq_featData().
|
inline |
Definition at line 233 of file snp_annot_info.hpp.
References m_QualityCodesOs.
|
inline |
Definition at line 379 of file snp_annot_info.hpp.
References CIndexedStrings::GetString(), and m_QualityCodesStr.
Referenced by CSeq_feat_Handle::GetSNPQualityCodeStr(), and SSNP_Info::x_UpdateSeq_featData().
|
inline |
Definition at line 230 of file snp_annot_info.hpp.
References m_QualityCodesStr.
void CSeq_annot_SNP_Info::x_ParentAttach | ( | CSeq_annot_Info & | parent | ) |
Definition at line 862 of file snp_annot_info.cpp.
References CTSE_Info_Object::x_BaseParentAttach().
Referenced by CSeq_annot_Info::x_SetObject(), CSeq_annot_Info::x_SetSNP_annot_Info(), and CSeq_annot_Info::x_TSEAttachContents().
void CSeq_annot_SNP_Info::x_ParentDetach | ( | CSeq_annot_Info & | parent | ) |
Definition at line 868 of file snp_annot_info.cpp.
References CTSE_Info_Object::x_BaseParentDetach().
void CSeq_annot_SNP_Info::x_UnmapAnnotObjects | ( | CTSE_Info & | tse | ) |
Definition at line 882 of file snp_annot_info.cpp.
References CSeq_id_Handle::GetHandle(), GetParentSeq_annot_Info(), GetSeq_id(), and CTSE_Info::x_UnmapSNP_Table().
Referenced by CSeq_annot_Info::x_UnmapAnnotObjects().
|
virtual |
Reimplemented from CTSE_Info_Object.
Definition at line 874 of file snp_annot_info.cpp.
References CSeq_id_Handle::GetHandle(), GetParentSeq_annot_Info(), GetSeq_id(), CTSE_Info::x_MapSNP_Table(), and CTSE_Info_Object::x_UpdateAnnotIndexContents().
|
friend |
Definition at line 245 of file snp_annot_info.hpp.
|
friend |
Definition at line 246 of file snp_annot_info.hpp.
|
friend |
Definition at line 248 of file snp_annot_info.hpp.
|
friend |
Definition at line 247 of file snp_annot_info.hpp.
|
private |
Definition at line 253 of file snp_annot_info.hpp.
Referenced by Reset(), x_FinishParsing(), x_GetAllele(), x_GetAlleleIndex(), x_GetAlleles(), CSeq_annot_SNP_Info_Reader::x_Read(), and CSeq_annot_SNP_Info_Reader::x_Write().
|
private |
Definition at line 252 of file snp_annot_info.hpp.
Referenced by Reset(), x_FinishParsing(), x_GetComment(), x_GetCommentIndex(), x_GetComments(), CSeq_annot_SNP_Info_Reader::x_Read(), and CSeq_annot_SNP_Info_Reader::x_Write().
|
private |
Definition at line 256 of file snp_annot_info.hpp.
Referenced by Reset(), x_FinishParsing(), x_GetExtra(), x_GetExtraIndex(), CSeq_annot_SNP_Info_Reader::x_Read(), and CSeq_annot_SNP_Info_Reader::x_Write().
|
private |
Definition at line 255 of file snp_annot_info.hpp.
Referenced by Reset(), x_FinishParsing(), x_GetQualityCodesIndex(), x_GetQualityCodesOs(), CSeq_annot_SNP_Info_Reader::x_Read(), and CSeq_annot_SNP_Info_Reader::x_Write().
|
private |
Definition at line 254 of file snp_annot_info.hpp.
Referenced by Reset(), x_FinishParsing(), x_GetQualityCodesIndex(), x_GetQualityCodesStr(), CSeq_annot_SNP_Info_Reader::x_Read(), and CSeq_annot_SNP_Info_Reader::x_Write().
|
private |
Definition at line 257 of file snp_annot_info.hpp.
Referenced by GetRemainingSeq_annot(), CSeq_annot_SNP_Info_Reader::Read(), Reset(), and CSeq_annot_SNP_Info_Reader::Write().
Definition at line 250 of file snp_annot_info.hpp.
Referenced by GetSeq_id(), OffsetGi(), Reset(), SetGi(), SetSeq_id(), and x_CheckId().
|
private |
Definition at line 251 of file snp_annot_info.hpp.
Referenced by begin(), empty(), end(), FirstIn(), GetIndex(), GetInfo(), GetSize(), Reset(), size(), x_AddSNP(), x_FinishParsing(), CSeq_annot_SNP_Info_Reader::x_Read(), and CSeq_annot_SNP_Info_Reader::x_Write().