NCBI C++ ToolKit
|
Search Toolkit Book for CBlobSplitterImpl
#include <objmgr/split/blob_splitter_impl.hpp>
Public Types | |
typedef map< CPlaceId, CPlace_SplitInfo > | TEntries |
typedef int | TChunkId |
typedef map< TChunkId, SChunkInfo > | TChunks |
typedef map< CID2S_Chunk_Id, CRef< CID2S_Chunk > > | TID2Chunks |
typedef vector< CRef< CAnnotPieces > > | TPieces |
typedef CSeqsRange::TRange | TRange |
typedef vector< CAnnotObject_SplitInfo > | TAnnotObjects |
typedef map< CPlaceId, CRef< CID2S_Chunk_Data > > | TChunkData |
typedef vector< CRef< CID2S_Chunk_Content > > | TChunkContent |
Static Public Member Functions | |
static size_t | CountAnnotObjects (const CSeq_annot &annot) |
static size_t | CountAnnotObjects (const CSeq_entry &entry) |
static size_t | CountAnnotObjects (const CID2S_Chunk &chunk) |
static size_t | CountAnnotObjects (const TID2Chunks &chunks) |
Definition at line 96 of file blob_splitter_impl.hpp.
typedef vector<CAnnotObject_SplitInfo> CBlobSplitterImpl::TAnnotObjects |
Definition at line 177 of file blob_splitter_impl.hpp.
typedef vector< CRef<CID2S_Chunk_Content> > CBlobSplitterImpl::TChunkContent |
Definition at line 182 of file blob_splitter_impl.hpp.
typedef map<CPlaceId, CRef<CID2S_Chunk_Data> > CBlobSplitterImpl::TChunkData |
Definition at line 181 of file blob_splitter_impl.hpp.
typedef int CBlobSplitterImpl::TChunkId |
Definition at line 103 of file blob_splitter_impl.hpp.
typedef map<TChunkId, SChunkInfo> CBlobSplitterImpl::TChunks |
Definition at line 104 of file blob_splitter_impl.hpp.
Definition at line 102 of file blob_splitter_impl.hpp.
typedef map<CID2S_Chunk_Id, CRef<CID2S_Chunk> > CBlobSplitterImpl::TID2Chunks |
Definition at line 105 of file blob_splitter_impl.hpp.
typedef vector< CRef<CAnnotPieces> > CBlobSplitterImpl::TPieces |
Definition at line 106 of file blob_splitter_impl.hpp.
Definition at line 107 of file blob_splitter_impl.hpp.
CBlobSplitterImpl::CBlobSplitterImpl | ( | const SSplitterParams & | params | ) |
Definition at line 90 of file blob_splitter_maker.cpp.
CBlobSplitterImpl::~CBlobSplitterImpl | ( | void | ) |
Definition at line 96 of file blob_splitter_maker.cpp.
void CBlobSplitterImpl::Add | ( | const SAnnotPiece & | piece | ) |
Definition at line 290 of file blob_splitter_impl.cpp.
References m_Pieces, SAnnotPiece::m_Priority, and max().
Referenced by CollectPieces().
void CBlobSplitterImpl::AddToSkeleton | ( | CAnnotPieces & | pieces | ) |
Definition at line 417 of file blob_splitter_impl.cpp.
References _ASSERT, SChunkInfo::Add(), SIdAnnotPieces::begin(), CAnnotPieces::begin(), SIdAnnotPieces::empty(), CAnnotPieces::empty(), CAnnotPieces::erase(), m_Chunks, and CAnnotPieces::Remove().
Referenced by SplitPieces().
void CBlobSplitterImpl::AttachToSkeleton | ( | const SChunkInfo & | info | ) |
Definition at line 1116 of file blob_splitter_maker.cpp.
References _ASSERT, data, delta(), CSeq_ext_Base::e_Delta, CDelta_seq_Base::e_Literal, map_checker< Container >::end(), map_checker< Container >::find(), CSeq_descr_Base::Get(), CSeq_inst_Base::GetExt(), GetLength(), CDelta_seq_Base::GetLiteral(), i, info, CSeq_inst_Base::IsSetExt(), CSeq_inst_Base::IsSetSeq_data(), CSeq_literal_Base::IsSetSeq_data(), ITERATE, literal(), m_Entries, MakeSeq_annot(), NON_CONST_ITERATE, compile_time_bits::range(), CSeq_descr_Base::Set(), CSeq_inst_Base::SetExt(), CDelta_seq_Base::SetLiteral(), CSeq_inst_Base::SetSeq_data(), CDelta_seq_Base::Which(), and CSeq_ext_Base::Which().
Referenced by MakeID2SObjects().
Definition at line 675 of file blob_splitter_parser.cpp.
References CBioseq_Base::GetId(), CBioseq_Base::GetInst(), GetLength(), SSplitterParams::m_ChunkSize, and m_Params.
Referenced by CopySkeleton(), and SplitBioseq().
void CBlobSplitterImpl::CollectPieces | ( | const CPlace_SplitInfo & | info | ) |
Definition at line 174 of file blob_splitter_impl.cpp.
References Add(), CollectPieces(), info, ITERATE, and CSeq_inst_SplitInfo::m_Seq_data.
void CBlobSplitterImpl::CollectPieces | ( | const CPlaceId & | place_id, |
const CSeq_annot_SplitInfo & | info | ||
) |
Definition at line 198 of file blob_splitter_impl.cpp.
References Add(), i, info, ITERATE, and ncbi::grid::netcache::search::fields::size.
void CBlobSplitterImpl::CollectPieces | ( | const CPlaceId & | place_id, |
const CSeq_descr_SplitInfo & | info | ||
) |
Definition at line 240 of file blob_splitter_impl.cpp.
References _ASSERT, Add(), eAnnotPriority_skeleton, GetSeqdescPriority(), i, info, ITERATE, SSplitterParams::m_MaxChunkSize, m_Params, CSeq_descr_SplitInfo::m_Priority, NonConst(), CSeq_descr_Base::Set(), and ncbi::grid::netcache::search::fields::size.
void CBlobSplitterImpl::CollectPieces | ( | const CPlaceId & | place_id, |
const CSeq_hist_SplitInfo & | info | ||
) |
Definition at line 282 of file blob_splitter_impl.cpp.
void CBlobSplitterImpl::CollectPieces | ( | void | ) |
Definition at line 139 of file blob_splitter_impl.cpp.
References ITERATE, m_Entries, m_Params, m_Pieces, SSplitterParams::m_Verbose, NcbiCout, and NcbiEndl.
Referenced by CollectPieces(), and Split().
bool CBlobSplitterImpl::CopyAnnot | ( | CPlace_SplitInfo & | place_info, |
const CSeq_annot & | annot | ||
) |
Definition at line 634 of file blob_splitter_parser.cpp.
References ConstRef(), CSeq_annot_Base::C_Data::e_Align, CSeq_annot_Base::C_Data::e_Ftable, CSeq_annot_Base::C_Data::e_Graph, CSeq_annot_Base::C_Data::e_Seq_table, CSeq_annot_Base::GetData(), CSeq_annot_Base::C_Data::GetSeq_table(), info, CSeqTableInfo::IsGoodFeatTable(), CPlace_SplitInfo::m_Annots, SSplitterParams::m_DisableSplitAnnotations, m_Params, SSplitterParams::m_SplitNonFeatureSeqTables, SSplitterParams::m_Verbose, NcbiCout, small_annot, and CSeq_annot_Base::C_Data::Which().
Referenced by CopySkeleton().
bool CBlobSplitterImpl::CopyDescr | ( | CPlace_SplitInfo & | place_info, |
TSeqPos | seq_length, | ||
const CSeq_descr & | descr | ||
) |
Definition at line 482 of file blob_splitter_parser.cpp.
References _ASSERT, eAnnotPriority_skeleton, kInvalidSeqPos, CPlace_SplitInfo::m_Bioseq, CPlace_SplitInfo::m_Descr, m_Params, CPlace_SplitInfo::m_PlaceId, and CSeq_descr_SplitInfo::m_Priority.
Referenced by CopySkeleton().
bool CBlobSplitterImpl::CopyHist | ( | CPlace_SplitInfo & | place_info, |
const CSeq_hist & | hist | ||
) |
Definition at line 502 of file blob_splitter_parser.cpp.
References _ASSERT, CSize::GetZipSize(), CSeq_hist_Base::IsSetAssembly(), CPlace_SplitInfo::m_Bioseq, SSplitterParams::m_DisableSplitAssembly, CPlace_SplitInfo::m_Hist, SSplitterParams::m_MinChunkSize, m_Params, CPlace_SplitInfo::m_PlaceId, CSeq_hist_SplitInfo::m_Size, and CRef< C, Locker >::Reset().
Referenced by CopySequence().
bool CBlobSplitterImpl::CopySequence | ( | CPlace_SplitInfo & | place_info, |
TSeqPos | seq_length, | ||
CSeq_inst & | dst, | ||
const CSeq_inst & | src | ||
) |
Definition at line 524 of file blob_splitter_parser.cpp.
References _ASSERT, CopyHist(), data, CSeq_ext_Base::e_Delta, CDelta_seq_Base::e_Literal, CDelta_seq_Base::e_Loc, CDelta_ext_Base::Get(), CSeq_hist_Base::GetDeleted(), CSeq_ext_Base::GetDelta(), CSeq_inst_Base::GetExt(), CSeq_inst_Base::GetFuzz(), CSeq_literal_Base::GetFuzz(), CSeq_inst_Base::GetHist(), GetLength(), CDelta_seq_Base::GetLiteral(), CSeq_inst_Base::GetMol(), CSeq_hist_Base::GetReplaced_by(), CSeq_hist_Base::GetReplaces(), CSeq_inst_Base::GetRepr(), CSeq_inst_Base::GetSeq_data(), CSeq_literal_Base::GetSeq_data(), CSeq_inst_Base::GetStrand(), CSeq_inst_Base::GetTopology(), info, CSeq_data_Base::IsGap(), CSeq_hist_Base::IsSetDeleted(), CSeq_inst_Base::IsSetExt(), CSeq_inst_Base::IsSetFuzz(), CSeq_literal_Base::IsSetFuzz(), CSeq_inst_Base::IsSetHist(), CSeq_hist_Base::IsSetReplaced_by(), CSeq_hist_Base::IsSetReplaces(), CSeq_inst_Base::IsSetSeq_data(), CSeq_literal_Base::IsSetSeq_data(), CSeq_inst_Base::IsSetStrand(), CSeq_inst_Base::IsSetTopology(), ITERATE, kInvalidSeqPos, CPlace_SplitInfo::m_Bioseq, CPlace_SplitInfo::m_Inst, m_Params, CPlace_SplitInfo::m_PlaceId, compile_time_bits::range(), CRef< C, Locker >::Reset(), CDelta_ext_Base::Set(), CSeq_inst_Base::SetExt(), CSeq_inst_Base::SetFuzz(), CSeq_literal_Base::SetFuzz(), CSeq_inst_Base::SetHist(), CSeq_inst_Base::SetLength(), CSeq_literal_Base::SetLength(), CSeq_inst_Base::SetMol(), CSeq_inst_Base::SetRepr(), CSeq_literal_Base::SetSeq_data(), CSeq_inst_Base::SetStrand(), CSeq_inst_Base::SetTopology(), CDelta_seq_Base::Which(), and CSeq_ext_Base::Which().
Referenced by CopySkeleton().
Definition at line 201 of file blob_splitter_parser.cpp.
References _ASSERT, CSeq_id_Handle::AsString(), CopyAnnot(), CopyDescr(), CopySequence(), CSeq_ext_Base::e_Delta, ERR_POST_X, CSeq_descr_Base::Get(), CBioseq_Base::GetAnnot(), CPlaceId::GetBioseqId(), CBioseq_Base::GetDescr(), CSeq_inst_Base::GetExt(), CSeq_id_Handle::GetHandle(), CBioseq_Base::GetId(), CBioseq_Base::GetInst(), GetLength(), info, CSeq_id_Handle::IsBetter(), CPlaceId::IsBioseq(), CSeq_id_Handle::IsGi(), CBioseq_Base::IsSetDescr(), CSeq_inst_Base::IsSetExt(), CSeq_inst_Base::IsSetSeq_data(), ITERATE, SSplitterParams::m_DisableSplitAnnotations, SSplitterParams::m_DisableSplitDescriptions, SSplitterParams::m_DisableSplitSequence, m_Entries, m_Params, NonConst(), Ref(), CBioseq_Base::Reset(), CBioseq_Base::SetAnnot(), CBioseq_Base::SetDescr(), CBioseq_Base::SetId(), CBioseq_Base::SetInst(), and CSeq_ext_Base::Which().
void CBlobSplitterImpl::CopySkeleton | ( | CBioseq_set & | dst, |
const CBioseq_set & | src | ||
) |
Definition at line 325 of file blob_splitter_parser.cpp.
References _ASSERT, CMasterSeqSegments::AddSegmentIds(), CMasterSeqSegments::AddSegments(), CanSplitBioseq(), CopyAnnot(), CopyDescr(), CopySkeleton(), CSeq_entry_Base::e_Seq, CBioseq_set_Base::eClass_segset, ERR_POST_X, first(), CSeq_descr_Base::Get(), CBioseq_set_Base::GetAnnot(), CPlaceId::GetBioseq_setId(), CScope::GetBioseqHandle(), CBioseq_set_Base::GetClass(), CBioseq_set_Base::GetColl(), CBioseq_set_Base::GetDate(), CBioseq_set_Base::GetDescr(), CObject_id_Base::GetId(), CBioseq_set_Base::GetId(), CBioseq_set_Base::GetLevel(), CBioseq_set_Base::GetRelease(), CSeq_entry_Base::GetSeq(), CBioseq_set_Base::GetSeq_set(), CBioseq_Handle::GetSeqMap(), info, CPlaceId::IsBioseq_set(), CObject_id_Base::IsId(), CBioseq_set_Base::IsSetClass(), CBioseq_set_Base::IsSetColl(), CBioseq_set_Base::IsSetDate(), CBioseq_set_Base::IsSetDescr(), CBioseq_set_Base::IsSetId(), CBioseq_set_Base::IsSetLevel(), CBioseq_set_Base::IsSetRelease(), ITERATE, kInvalidSeqPos, SSplitterParams::m_DisableSplitAnnotations, SSplitterParams::m_DisableSplitDescriptions, m_Entries, m_Master, m_NextBioseq_set_Id, m_Params, m_Scope, SSplitterParams::m_SplitWholeBioseqs, NonConst(), prev(), Ref(), CBioseq_set_Base::Reset(), REVERSE_ITERATE, CBioseq_set_Base::SetAnnot(), CBioseq_set_Base::SetClass(), CBioseq_set_Base::SetColl(), CBioseq_set_Base::SetDate(), CBioseq_set_Base::SetDescr(), CBioseq_set_Base::SetId(), CBioseq_set_Base::SetLevel(), CBioseq_set_Base::SetRelease(), CBioseq_set_Base::SetSeq_set(), SplitBioseq(), and CSeq_entry_Base::Which().
void CBlobSplitterImpl::CopySkeleton | ( | CSeq_entry & | dst, |
const CSeq_entry & | src | ||
) |
Definition at line 99 of file blob_splitter_parser.cpp.
References CSeq_entry_Base::GetSeq(), CSeq_entry_Base::GetSet(), CSeq_entry_Base::IsSeq(), m_Params, m_Skeleton, SSplitterParams::m_Verbose, NcbiCout, NcbiEndl, s_Sizer, CSeq_entry_Base::SetSeq(), CSeq_entry_Base::SetSet(), ncbi::grid::netcache::search::fields::size, and small_annot.
Referenced by CopySkeleton(), and Split().
|
static |
Definition at line 1274 of file blob_splitter_maker.cpp.
References ConstBegin(), count, and CSeq_annot_SplitInfo::CountAnnotObjects().
|
static |
Referenced by CountAnnotObjects().
|
static |
Definition at line 718 of file blob_splitter_parser.cpp.
References ConstBegin(), count, and CSeq_annot_SplitInfo::CountAnnotObjects().
|
static |
Definition at line 1264 of file blob_splitter_maker.cpp.
References count, CountAnnotObjects(), and ITERATE.
|
inline |
Definition at line 111 of file blob_splitter_impl.hpp.
References m_SplitBlob.
CID2S_Chunk_Data & CBlobSplitterImpl::GetChunkData | ( | TChunkData & | chunk_data, |
const CPlaceId & | place_id | ||
) |
Definition at line 832 of file blob_splitter_maker.cpp.
References data, CPlaceId::GetBioseq_setId(), CPlaceId::GetBioseqId(), CSeq_id_Handle::GetGi(), CSeq_id_Handle::GetSeqId(), CPlaceId::IsBioseq_set(), and CSeq_id_Handle::IsGi().
Referenced by MakeID2Chunk().
TSeqPos CBlobSplitterImpl::GetLength | ( | const CDelta_ext & | src | ) | const |
Definition at line 165 of file blob_splitter_parser.cpp.
References CDelta_ext_Base::Get(), GetLength(), and ITERATE.
TSeqPos CBlobSplitterImpl::GetLength | ( | const CDelta_seq & | src | ) | const |
Definition at line 151 of file blob_splitter_parser.cpp.
References CDelta_seq_Base::e_Literal, CDelta_seq_Base::e_Loc, CSeq_loc_Base::GetInt(), CSeq_literal_Base::GetLength(), CSeq_interval::GetLength(), CDelta_seq_Base::GetLiteral(), CDelta_seq_Base::GetLoc(), NCBI_THROW, and CDelta_seq_Base::Which().
Definition at line 127 of file blob_splitter_parser.cpp.
References CSeq_data_Base::e_Iupacaa, CSeq_data_Base::e_Iupacna, CSeq_data_Base::e_Ncbi2na, CSeq_data_Base::e_Ncbi4na, CSeq_data_Base::e_Ncbi8aa, CSeq_data_Base::e_Ncbi8na, CSeq_data_Base::e_Ncbieaa, CAliasBase< TPrim >::Get(), CSeq_data_Base::GetIupacaa(), CSeq_data_Base::GetIupacna(), CSeq_data_Base::GetNcbi2na(), CSeq_data_Base::GetNcbi4na(), CSeq_data_Base::GetNcbi8aa(), CSeq_data_Base::GetNcbi8na(), CSeq_data_Base::GetNcbieaa(), NCBI_THROW, and CSeq_data_Base::Which().
Referenced by AttachToSkeleton(), CanSplitBioseq(), CopySequence(), CopySkeleton(), GetLength(), IsWhole(), and SetLoc().
Definition at line 175 of file blob_splitter_parser.cpp.
References CSeq_ext_Base::GetDelta(), and GetLength().
TSeqPos CBlobSplitterImpl::GetLength | ( | const CSeq_id_Handle & | id | ) | const |
Definition at line 694 of file blob_splitter_maker.cpp.
References CScope::GetBioseqHandle(), CBioseq_Handle::GetBioseqLength(), CRef< C, Locker >::GetNCObject(), kInvalidSeqPos, and m_Scope.
Definition at line 181 of file blob_splitter_parser.cpp.
References ERR_POST_X, CSeq_inst_Base::GetExt(), GetLength(), CSeq_inst_Base::GetLength(), CException::GetMsg(), CSeq_inst_Base::GetSeq_data(), CSeq_inst_Base::IsSetExt(), CSeq_inst_Base::IsSetLength(), CSeq_inst_Base::IsSetSeq_data(), and kInvalidSeqPos.
|
inline |
Definition at line 192 of file blob_splitter_impl.hpp.
References CRef< C, Locker >::GetPointerOrNull(), and m_Master.
bool CBlobSplitterImpl::IsWhole | ( | const CSeq_id_Handle & | id, |
const TRange & | range | ||
) | const |
Definition at line 708 of file blob_splitter_maker.cpp.
References GetLength(), and compile_time_bits::range().
Referenced by SetLoc().
CRef< CID2S_Bioseq_set_Ids > CBlobSplitterImpl::MakeBioseq_setIds | ( | const set< int > & | ids | ) | const |
Definition at line 863 of file blob_splitter_maker.cpp.
Referenced by MakeID2Chunk().
CRef< CID2S_Bioseq_Ids > CBlobSplitterImpl::MakeBioseqIds | ( | const set< CSeq_id_Handle > & | ids | ) | const |
Definition at line 854 of file blob_splitter_maker.cpp.
Referenced by MakeID2Chunk().
void CBlobSplitterImpl::MakeID2Chunk | ( | TChunkId | id, |
const SChunkInfo & | info | ||
) |
Definition at line 871 of file blob_splitter_maker.cpp.
References _ASSERT, CHandleRangeMap::AddRange(), data, CSeqdesc_Base::e_MaxChoice, CHandleRangeMap::empty(), eNa_strand_unknown, CSeq_descr_Base::Get(), CPlaceId::GetBioseqId(), GetChunkData(), CSeq_annot_Base::GetData(), CSeq_annot_Base::C_Data::GetFtable(), CSeq_id_Handle::GetHandle(), CBioseq_Base::GetId(), CSeq_annot_SplitInfo::GetName(), CAnnotName::GetName(), i, info, CPlaceId::IsBioseq(), CPlaceId::IsBioseq_set(), CSeq_annot_Base::C_Data::IsFtable(), CAnnotName::IsNamed(), ITERATE, kInvalidSeqPos, literal(), m_ID2_Chunks, m_Split_Info, MakeBioseq_setIds(), MakeBioseqIds(), MakeLoc(), MakeSeq_annot(), NON_CONST_ITERATE, compile_time_bits::range(), Ref(), CRef< C, Locker >::Reset(), CSeq_descr_Base::Set(), CID2S_Seq_annot_Info_Base::SetAlign(), CID2S_Chunk_Data_Base::SetAnnots(), CID2S_Chunk_Data_Base::SetAssembly(), CID2S_Seq_annot_place_Info_Base::SetBioseq_sets(), CID2S_Seq_descr_Info_Base::SetBioseq_sets(), CID2S_Seq_annot_place_Info_Base::SetBioseqs(), CID2S_Seq_assembly_Info_Base::SetBioseqs(), CID2S_Seq_descr_Info_Base::SetBioseqs(), CID2S_Chunk_Data_Base::SetBioseqs(), CID2S_Split_Info_Base::SetChunks(), CID2S_Chunk_Base::SetData(), CID2S_Chunk_Data_Base::SetDescr(), CID2S_Seq_annot_Info_Base::SetFeat(), CID2S_Seq_annot_Info_Base::SetGraph(), SetLoc(), CID2S_Seq_annot_Info_Base::SetName(), CID2S_Chunk_Data_Base::SetSeq_data(), CID2S_Seq_annot_Info_Base::SetSeq_loc(), CID2S_Seq_descr_Info_Base::SetType_mask(), and types.
Referenced by MakeID2SObjects().
void CBlobSplitterImpl::MakeID2SObjects | ( | void | ) |
Definition at line 114 of file blob_splitter_maker.cpp.
References CSplitBlob::AddChunk(), AttachToSkeleton(), ITERATE, m_Chunks, m_ID2_Chunks, m_Skeleton, m_Split_Info, m_SplitBlob, MakeID2Chunk(), CRef< C, Locker >::Reset(), and CSplitBlob::Reset().
Referenced by Split().
CRef< CID2S_Seq_loc > CBlobSplitterImpl::MakeLoc | ( | const CSeq_id_Handle & | id, |
const TRange & | range | ||
) | const |
Definition at line 824 of file blob_splitter_maker.cpp.
References compile_time_bits::range(), and SetLoc().
CRef< CID2S_Seq_loc > CBlobSplitterImpl::MakeLoc | ( | const CSeqsRange & | range | ) | const |
Definition at line 815 of file blob_splitter_maker.cpp.
References compile_time_bits::range(), and SetLoc().
Referenced by MakeID2Chunk().
CRef< CSeq_annot > CBlobSplitterImpl::MakeSeq_annot | ( | const CSeq_annot & | src, |
const TAnnotObjects & | objs | ||
) |
Definition at line 1209 of file blob_splitter_maker.cpp.
References _ASSERT, CSeq_annot_Base::C_Data::e_Align, CSeq_annot_Base::C_Data::e_Ftable, CSeq_annot_Base::C_Data::e_Graph, CSeq_annot_Base::C_Data::e_Seq_table, CSeq_annot_Base::GetData(), CSeq_annot_Base::GetDb(), CSeq_annot_Base::GetDesc(), CSeq_annot_Base::GetId(), CSeq_annot_Base::GetName(), CSeq_annot_Base::IsSetDb(), CSeq_annot_Base::IsSetDesc(), CSeq_annot_Base::IsSetId(), CSeq_annot_Base::IsSetName(), ITERATE, NonConst(), Ref(), CSeq_annot_Base::SetData(), CSeq_annot_Base::SetDb(), CSeq_annot_Base::SetDesc(), CSeq_annot_Base::SetId(), CSeq_annot_Base::SetName(), and CSeq_annot_Base::C_Data::Which().
Referenced by AttachToSkeleton(), and MakeID2Chunk().
SChunkInfo * CBlobSplitterImpl::NextChunk | ( | SChunkInfo * | chunk, |
const CSize & | size | ||
) |
Definition at line 310 of file blob_splitter_impl.cpp.
References CSize::GetZipSize(), SSplitterParams::m_ChunkSize, SSplitterParams::m_MaxChunkSize, m_Params, SChunkInfo::m_Size, NextChunk(), and ncbi::grid::netcache::search::fields::size.
SChunkInfo * CBlobSplitterImpl::NextChunk | ( | void | ) |
Definition at line 301 of file blob_splitter_impl.cpp.
References map_checker< Container >::end(), map_checker< Container >::find(), int, m_Chunks, and map_checker< Container >::size().
Referenced by NextChunk(), and SplitPieces().
void CBlobSplitterImpl::Reset | ( | void | ) |
Definition at line 101 of file blob_splitter_maker.cpp.
References map_checker< Container >::clear(), m_Chunks, m_Entries, m_Master, m_NextBioseq_set_Id, m_Pieces, m_Scope, m_Skeleton, m_SplitBlob, CRef< C, Locker >::Reset(), and CSplitBlob::Reset().
Referenced by Split().
void CBlobSplitterImpl::SetLoc | ( | CID2S_Seq_loc & | loc, |
const CHandleRangeMap & | ranges | ||
) | const |
Definition at line 749 of file blob_splitter_maker.cpp.
References _ASSERT, AddLoc(), CID2S_Seq_loc_Base::e_not_set, GetLength(), set< Key, Compare >::insert(), IsWhole(), ITERATE, len, compile_time_bits::range(), and CID2S_Seq_loc_Base::Which().
Referenced by MakeID2Chunk(), and MakeLoc().
void CBlobSplitterImpl::SetLoc | ( | CID2S_Seq_loc & | loc, |
const CSeq_id_Handle & | id, | ||
TRange | range | ||
) | const |
Definition at line 784 of file blob_splitter_maker.cpp.
References GetLength(), GetSeqId(), IsWhole(), len, compile_time_bits::range(), CID2S_Gi_Interval_Base::SetGi(), CID2S_Seq_loc_Base::SetGi_interval(), CID2S_Seq_id_Interval_Base::SetSeq_id(), CID2S_Seq_loc_Base::SetSeq_id_interval(), CID2S_Seq_loc_Base::SetWhole_gi(), and CID2S_Seq_loc_Base::SetWhole_seq_id().
void CBlobSplitterImpl::SetLoc | ( | CID2S_Seq_loc & | loc, |
const CSeqsRange & | ranges | ||
) | const |
Definition at line 716 of file blob_splitter_maker.cpp.
References _ASSERT, AddLoc(), CID2S_Seq_loc_Base::e_not_set, GetLength(), set< Key, Compare >::insert(), IsWhole(), ITERATE, len, compile_time_bits::range(), and CID2S_Seq_loc_Base::Which().
bool CBlobSplitterImpl::Split | ( | const CSeq_entry & | entry | ) |
Definition at line 91 of file blob_splitter_impl.cpp.
References CScope::AddTopLevelSeqEntry(), CollectPieces(), CopySkeleton(), eAnnotPriority_skeleton, eAnnotPriority_zoomed, CSize::GetAsnSize(), CObjectManager::GetInstance(), i, CSplitBlob::IsSplit(), ITERATE, m_Chunks, SSplitterParams::m_MaxChunkSize, SSplitterParams::m_MinChunkCount, m_Params, m_Pieces, m_Scope, SIdAnnotPieces::m_Size, m_Skeleton, m_SplitBlob, MakeID2SObjects(), pi, Reset(), map_checker< Container >::size(), SplitPieces(), and total_size.
bool CBlobSplitterImpl::SplitBioseq | ( | CPlace_SplitInfo & | place_info, |
const CBioseq & | bioseq | ||
) |
Definition at line 682 of file blob_splitter_parser.cpp.
References _ASSERT, CanSplitBioseq(), ConstBegin(), CBioseq_Base::GetId(), i, info, ITERATE, CPlace_SplitInfo::m_Bioseq_set, CPlace_SplitInfo::m_Bioseqs, SSplitterParams::m_ChunkSize, and m_Params.
Referenced by CopySkeleton().
void CBlobSplitterImpl::SplitPieces | ( | CAnnotPieces & | pieces | ) |
Definition at line 440 of file blob_splitter_impl.cpp.
References _ASSERT, SChunkInfo::Add(), SIdAnnotPieces::begin(), CAnnotPieces::begin(), SIdAnnotPieces::empty(), CAnnotPieces::empty(), COpenRange< Position >::Empty(), CAnnotPieces::erase(), CSize::GetCount(), COpenRange< TSeqPos >::GetEmpty(), CRange_Base::GetFrom(), COpenRange< Position >::GetLength(), CSize::GetZipSize(), ITERATE, LOG_POST_X, SSplitterParams::m_ChunkSize, SAnnotPiece::m_IdRange, SIdAnnotPieces::m_IdRange, SSplitterParams::m_MaxChunkSize, m_Params, SAnnotPiece::m_Size, SIdAnnotPieces::m_Size, SSplitterParams::m_Verbose, NextChunk(), NON_CONST_ITERATE, compile_time_bits::range(), CAnnotPieces::Remove(), and ncbi::grid::netcache::search::fields::size.
void CBlobSplitterImpl::SplitPieces | ( | void | ) |
Definition at line 325 of file blob_splitter_impl.cpp.
References _ASSERT, SChunkInfo::Add(), AddToSkeleton(), eAnnotPriority_skeleton, map_checker< Container >::erase(), CSize::GetZipSize(), i, ITERATE, LOG_POST_X, m_Chunks, SSplitterParams::m_JoinSmallChunks, SSplitterParams::m_MaxChunkSize, SSplitterParams::m_MinChunkSize, m_Params, m_Pieces, SChunkInfo::m_Size, SSplitterParams::m_Verbose, NcbiCout, NcbiEndl, and NON_CONST_ITERATE.
Referenced by Split().
|
private |
Definition at line 214 of file blob_splitter_impl.hpp.
Referenced by AddToSkeleton(), MakeID2SObjects(), NextChunk(), Reset(), Split(), and SplitPieces().
|
private |
Definition at line 210 of file blob_splitter_impl.hpp.
Referenced by AttachToSkeleton(), CollectPieces(), CopySkeleton(), and Reset().
|
private |
Definition at line 206 of file blob_splitter_impl.hpp.
Referenced by MakeID2Chunk(), and MakeID2SObjects().
|
private |
Definition at line 217 of file blob_splitter_impl.hpp.
Referenced by CopySkeleton(), GetMaster(), and Reset().
|
private |
Definition at line 208 of file blob_splitter_impl.hpp.
Referenced by CopySkeleton(), and Reset().
|
private |
Definition at line 198 of file blob_splitter_impl.hpp.
Referenced by CanSplitBioseq(), CollectPieces(), CopyAnnot(), CopyDescr(), CopyHist(), CopySequence(), CopySkeleton(), NextChunk(), Split(), SplitBioseq(), and SplitPieces().
|
private |
Definition at line 212 of file blob_splitter_impl.hpp.
Referenced by Add(), CollectPieces(), Reset(), Split(), and SplitPieces().
Definition at line 216 of file blob_splitter_impl.hpp.
Referenced by CopySkeleton(), GetLength(), Reset(), and Split().
|
private |
Definition at line 204 of file blob_splitter_impl.hpp.
Referenced by CopySkeleton(), MakeID2SObjects(), Reset(), and Split().
|
private |
Definition at line 205 of file blob_splitter_impl.hpp.
Referenced by MakeID2Chunk(), and MakeID2SObjects().
|
private |
Definition at line 201 of file blob_splitter_impl.hpp.
Referenced by GetBlob(), MakeID2SObjects(), Reset(), and Split().