NCBI C++ ToolKit
Public Member Functions | Static Public Member Functions | Protected Attributes | Private Member Functions | List of all members
CAutoAddDesc Class Reference

Search Toolkit Book for CAutoAddDesc

#include <objects/seq/Seq_descr.hpp>

+ Inheritance diagram for CAutoAddDesc:
+ Collaboration diagram for CAutoAddDesc:

Public Member Functions

 CAutoAddDesc (CSeq_descr &descr, CSeqdesc::E_Choice which)
 
const CSeqdescGet () const
 
CSeqdescSet (bool skip_lookup=false)
 
bool IsNull () const
 
void Erase ()
 

Static Public Member Functions

static CRef< CSeqdescLocateDesc (const CSeq_descr &descr, CSeqdesc::E_Choice which)
 
static bool EraseDesc (CSeq_descr &descr, CSeqdesc::E_Choice which)
 

Protected Attributes

CSeqdesc::E_Choice m_which
 
CRef< CSeq_descrm_descr
 
CRef< CSeqdescm_desc
 

Private Member Functions

 CAutoAddDesc ()
 
 CAutoAddDesc (const CAutoAddDesc &)
 

Detailed Description

Definition at line 86 of file Seq_descr.hpp.

Constructor & Destructor Documentation

◆ CAutoAddDesc() [1/3]

CAutoAddDesc::CAutoAddDesc ( CSeq_descr descr,
CSeqdesc::E_Choice  which 
)
inline

Definition at line 114 of file Seq_descr.hpp.

References m_descr, m_which, and CRef< C, Locker >::Reset().

◆ CAutoAddDesc() [2/3]

CAutoAddDesc::CAutoAddDesc ( )
private

◆ CAutoAddDesc() [3/3]

CAutoAddDesc::CAutoAddDesc ( const CAutoAddDesc )
private

Member Function Documentation

◆ Erase()

void CAutoAddDesc::Erase ( )

Definition at line 117 of file Seq_descr.cpp.

References IsNull(), m_descr, Set(), and CSeq_descr_Base::Set().

◆ EraseDesc()

bool CAutoAddDesc::EraseDesc ( CSeq_descr descr,
CSeqdesc::E_Choice  which 
)
static

Definition at line 123 of file Seq_descr.cpp.

References CSeq_descr_Base::Set().

Referenced by CTable2AsnContext::ApplyCreateUpdateDates().

◆ Get()

const CSeqdesc & CAutoAddDesc::Get ( void  ) const

Definition at line 86 of file Seq_descr.cpp.

References CRef< C, Locker >::IsNull(), LocateDesc(), m_desc, m_descr, and m_which.

◆ IsNull()

bool CAutoAddDesc::IsNull ( void  ) const

Definition at line 79 of file Seq_descr.cpp.

References CRef< C, Locker >::IsNull(), LocateDesc(), m_desc, m_descr, and m_which.

Referenced by CFastaReaderEx::AssembleSeq(), and Erase().

◆ LocateDesc()

CRef< CSeqdesc > CAutoAddDesc::LocateDesc ( const CSeq_descr descr,
CSeqdesc::E_Choice  which 
)
static

Definition at line 106 of file Seq_descr.cpp.

References CSeq_descr_Base::Get(), and ITERATE.

Referenced by Get(), IsNull(), CTable2AsnContext::MergeSeqDescr(), and Set().

◆ Set()

CSeqdesc & CAutoAddDesc::Set ( bool  skip_lookup = false)

Member Data Documentation

◆ m_desc

CRef<CSeqdesc> CAutoAddDesc::m_desc
mutableprotected

Definition at line 109 of file Seq_descr.hpp.

Referenced by Get(), IsNull(), and Set().

◆ m_descr

CRef<CSeq_descr> CAutoAddDesc::m_descr
protected

Definition at line 108 of file Seq_descr.hpp.

Referenced by CAutoAddDesc(), CAutoInitDesc< _T >::CAutoInitDesc(), Erase(), Get(), IsNull(), and Set().

◆ m_which

CSeqdesc::E_Choice CAutoAddDesc::m_which
protected

Definition at line 107 of file Seq_descr.hpp.

Referenced by CAutoAddDesc(), Get(), IsNull(), and Set().


The documentation for this class was generated from the following files:
Modified on Fri Jan 05 07:23:11 2024 by modify_doxy.py rev. 669887