1 #ifndef OBJECTS_OBJMGR_IMPL___TSE_CHUNK_INFO__HPP
2 #define OBJECTS_OBJMGR_IMPL___TSE_CHUNK_INFO__HPP
95 typedef pair<TBioseqId, TBioseq_setId>
TPlace;
138 bool NotLoaded(
void)
const;
139 bool IsLoaded(
void)
const;
140 void Load(
void)
const;
151 void x_AddAssemblyInfo(
const TBioseqId&
id);
153 void x_AddAnnotPlace(
const TBioseqId&
id);
155 void x_AddAnnotPlace(
const TPlace& place);
163 void x_AddAnnotType(
const CAnnotName& annot_name,
166 void x_AddAnnotType(
const CAnnotName& annot_name,
170 void x_AddAnnotType(
const CAnnotName& annot_name,
175 void x_AddFeat_ids(
void);
209 void SetLoaded(
CObject* obj = 0);
213 void x_LoadDescr(
const TPlace& place,
const CSeq_descr& descr);
214 void x_LoadAnnot(
const TPlace& place,
const CSeq_annot& annot);
216 void x_LoadBioseq(
const TPlace& place,
const CBioseq& bioseq);
217 void x_LoadBioseqs(
const TPlace& place,
const list<
CRef<CBioseq> >& bioseqs);
218 void x_LoadSequence(
const TPlace& place,
TSeqPos pos,
219 const TSequence& seq);
220 void x_LoadAssembly(
const TBioseqId& seq_id,
const TAssembly& assembly);
225 void x_AddUsedMemory(
size_t size);
236 return m_AnnotPlaces;
240 return m_BioseqPlaces;
248 return m_AnnotContents;
256 return m_AssemblyInfos;
259 Uint4 GetLoadBytes()
const;
260 double GetLoadSeconds()
const;
261 pair<Uint4, double> GetLoadCost()
const;
263 void x_SetLoadBytes(
Uint4 bytes);
264 void x_SetLoadSeconds(
double seconds);
274 bool x_Attached(
void)
const;
280 void GetBioseqsIds(TBioseqIds& ids)
const;
286 bool x_AnnotIndexNeedsUpdate()
const;
288 void x_UpdateAnnotIndexContents(
CTSE_Info& tse);
298 void x_DropAnnotObjects(
void);
300 void x_InitObjectIndexList(
void);
@Seq_descr.hpp User-defined methods of the data storage class.
virtual void Loaded(CTSE_Chunk_Info &chunk)=0
vector< TDescInfo > TDescInfos
pair< TBioseqId, TBioseq_setId > TPlace
map< SAnnotTypeSelector, TLocationSet > TAnnotTypes
vector< TAssemblyInfo > TAssemblyInfos
CRef< CTSEChunkLoadListener > m_LoadListener
TObjectIndexList m_ObjectIndexList
CTSE_Chunk_Info & operator=(const CTSE_Chunk_Info &)
const TAnnotContents & GetAnnotContents(void) const
list< TFeatIdStr > TFeatIdStrList
Uint4 GetLoadBytes() const
list< CRef< CSeq_align > > TAssembly
CInitMutex< CObject > m_LoadLock
CTSE_Chunk_Info(const CTSE_Chunk_Info &)
CTSE_Split_Info * m_SplitInfo
pair< TDescTypeMask, TPlace > TDescInfo
vector< TBioseqId > TBioseqIds
TBioseqPlaces m_BioseqPlaces
vector< TLocation > TLocationSet
const TLocationSet & GetSeq_dataInfos(void) const
map< CAnnotName, TAnnotTypes > TAnnotContents
list< TObjectIndex > TObjectIndexList
CRange< TSeqPos > TLocationRange
TAnnotContents m_AnnotContents
CSeq_id_Handle TLocationId
TChunkId GetChunkId(void) const
double GetLoadSeconds() const
const TBioseqPlaces & GetBioseqPlaces(void) const
TAssemblyInfos m_AssemblyInfos
vector< TFeatIdInt > TFeatIdIntList
list< CRef< CSeq_literal > > TSequence
const TBioseqIds & GetBioseqIds(void) const
bool x_AnnotIndexNeedsUpdate() const
const TPlaces & GetAnnotPlaces(void) const
const CTSE_Split_Info & GetSplitInfo(void) const
pair< TLocationId, TLocationRange > TLocation
vector< TBioseq_setId > TBioseqPlaces
bool NotLoaded(void) const
SAnnotObjectsIndex TObjectIndex
map< SAnnotTypeSelector, SFeatIds > TFeatIdsMap
const TDescInfos & GetDescInfos(void) const
const TAssemblyInfos & GetAssemblyInfos(void) const
bool IsLoaded(void) const
static const char location[]
unsigned int TSeqPos
Type for sequence locations and lengths.
uint32_t Uint4
4-byte (32-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
#define NCBI_XOBJMGR_EXPORT
const struct ncbi::grid::netcache::search::fields::SIZE size
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.