seqmatch_info.cpp

来自「ncbi源码」· C++ 代码 · 共 163 行

CPP
163
字号
/* * =========================================================================== * PRODUCTION $Log: seqmatch_info.cpp,v $ * PRODUCTION Revision 1000.2  2004/06/01 19:24:30  gouriano * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.15 * PRODUCTION * =========================================================================== *//*  $Id: seqmatch_info.cpp,v 1000.2 2004/06/01 19:24:30 gouriano Exp $* ===========================================================================**                            PUBLIC DOMAIN NOTICE*               National Center for Biotechnology Information**  This software/database is a "United States Government Work" under the*  terms of the United States Copyright Act.  It was written as part of*  the author's official duties as a United States Government employee and*  thus cannot be copyrighted.  This software/database is freely available*  to the public for use. The National Library of Medicine and the U.S.*  Government have not placed any restriction on its use or reproduction.**  Although all reasonable efforts have been taken to ensure the accuracy*  and reliability of the software and data, the NLM and the U.S.*  Government do not and cannot warrant the performance or results that*  may be obtained by using this software or data. The NLM and the U.S.*  Government disclaim all warranties, express or implied, including*  warranties of performance, merchantability or fitness for any particular*  purpose.**  Please cite the author in any work or product based on this material.** ===========================================================================** Author: Aleksey Grichenko** File Description:*   CSeqMatch_Info -- used internally by CScope and CDataSource**/#include <ncbi_pch.hpp>#include <objmgr/seqmatch_info.hpp>#include <objmgr/impl/data_source.hpp>#include <objmgr/impl/tse_info.hpp>#include <objmgr/impl/bioseq_info.hpp>BEGIN_NCBI_SCOPEBEGIN_SCOPE(objects)CSeqMatch_Info::CSeqMatch_Info(void)    : m_TSE(0){}CSeqMatch_Info::CSeqMatch_Info(const CSeq_id_Handle& h,                               const CTSE_Info& tse)    : m_Handle(h), m_TSE(&tse){}bool CSeqMatch_Info::operator< (const CSeqMatch_Info& info) const{    if (m_TSE->IsDead()  &&  !info.m_TSE->IsDead())        return false; // info is better;    return true;}CDataSource& CSeqMatch_Info::GetDataSource(void) const{    return GetTSE_Info().GetDataSource();}CConstRef<CBioseq_Info> CSeqMatch_Info::GetBioseq_Info(void) const{    return GetDataSource().GetBioseq_Info(*this);}END_SCOPE(objects)END_NCBI_SCOPE/** ---------------------------------------------------------------------------* $Log: seqmatch_info.cpp,v $* Revision 1000.2  2004/06/01 19:24:30  gouriano* PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.15** Revision 1.15  2004/05/21 21:42:13  gorelenk* Added PCH ncbi_pch.hpp** Revision 1.14  2004/03/16 15:47:28  vasilche* Added CBioseq_set_Handle and set of EditHandles** Revision 1.13  2003/06/02 16:06:38  dicuccio* Rearranged src/objects/ subtree.  This includes the following shifts:*     - src/objects/asn2asn --> arc/app/asn2asn*     - src/objects/testmedline --> src/objects/ncbimime/test*     - src/objects/objmgr --> src/objmgr*     - src/objects/util --> src/objmgr/util*     - src/objects/alnmgr --> src/objtools/alnmgr*     - src/objects/flat --> src/objtools/flat*     - src/objects/validator --> src/objtools/validator*     - src/objects/cddalignview --> src/objtools/cddalignview* In addition, libseq now includes six of the objects/seq... libs, and libmmdb* replaces the three libmmdb? libs.** Revision 1.12  2003/05/20 15:44:38  vasilche* Fixed interaction of CDataSource and CDataLoader in multithreaded app.* Fixed some warnings on WorkShop.* Added workaround for memory leak on WorkShop.** Revision 1.11  2003/04/24 16:12:38  vasilche* Object manager internal structures are splitted more straightforward.* Removed excessive header dependencies.** Revision 1.10  2003/03/21 19:22:51  grichenk* Redesigned TSE locking, replaced CTSE_Lock with CRef<CTSE_Info>.** Revision 1.9  2003/03/12 20:09:34  grichenk* Redistributed members between CBioseq_Handle, CBioseq_Info and CTSE_Info** Revision 1.8  2003/02/24 18:57:22  vasilche* Make feature gathering in one linear pass using CSeqMap iterator.* Do not use feture index by sub locations.* Sort features at the end of gathering in one vector.* Extracted some internal structures and classes in separate header.* Delay creation of mapped features.** Revision 1.7  2003/02/05 17:59:17  dicuccio* Moved formerly private headers into include/objects/objmgr/impl** Revision 1.6  2002/12/26 20:55:18  dicuccio* Moved seq_id_mapper.hpp, tse_info.hpp, and bioseq_info.hpp -> include/ tree** Revision 1.5  2002/12/26 16:39:24  vasilche* Object manager class CSeqMap rewritten.** Revision 1.4  2002/07/08 20:51:02  grichenk* Moved log to the end of file* Replaced static mutex (in CScope, CDataSource) with the mutex* pool. Redesigned CDataSource data locking.** Revision 1.3  2002/05/06 03:28:48  vakatov* OM/OM1 renaming** Revision 1.2  2002/02/25 21:05:29  grichenk* Removed seq-data references caching. Increased MT-safety. Fixed typos.** Revision 1.1  2002/02/21 19:21:04  grichenk* Initial revision*** ===========================================================================*/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?