NCBI C++ ToolKit
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
CUpdateMultipleSeq_Input Class Reference

Search Toolkit Book for CUpdateMultipleSeq_Input

#include <gui/packages/pkg_sequence_edit/update_multi_seq_input.hpp>

+ Collaboration diagram for CUpdateMultipleSeq_Input:

Public Types

typedef map< objects::CSeq_id_Handle, CRef< CUpdateSeq_Input > > TIDToUpdInputMap
 
typedef vector< objects::CSeq_id_Handle > TSeqIDHVector
 
typedef map< objects::CSeq_id_Handle, objects::CSeq_id_Handle > TOldToUpdateMap
 

Public Member Functions

 CUpdateMultipleSeq_Input (void)
 
 ~CUpdateMultipleSeq_Input ()
 
bool SetOldEntryAndScope (const objects::CSeq_entry_Handle &tse)
 
objects::CSeq_entry_Handle GetOldEntry ()
 
bool SetUpdateEntry (CRef< objects::CSeq_entry > update)
 
bool ReadUpdSeqs_FromClipboard (objects::ILineErrorListener *msg_listener)
 
bool ReadUpdSeqs_FromFile (objects::ILineErrorListener *msg_listener)
 
const TIDToUpdInputMapGetNonIdenticalUpdates () const
 
const TIDToUpdInputMapGetIdenticalUpdates () const
 
const TSeqIDHVectorGetSeqsWithoutUpdates () const
 
const TSeqIDHVectorGetUnmatchedUpdateSeqs () const
 
void PrepareMultipleSequenceInputs ()
 
bool AppendOld_UpdateSeqPairs (const TOldToUpdateMap &update_pairs)
 
CRef< CUpdateSeq_InputGetUpdateInput (const objects::CSeq_id_Handle &idh) const
 
bool HaveIdenticalResidues (const objects::CSeq_id_Handle &idh1, const objects::CSeq_id_Handle &idh2)
 
bool PrepareMultipleSequenceInputsForUnitTest ()
 
objects::CSeq_inst::EMol GetMolType () const
 

Private Member Functions

bool x_MatchIdsAndAddUpdateToScope ()
 
bool x_ReadFromStream (CNcbiIstream &istr, objects::ILineErrorListener *msg_listener)
 
bool x_ReadUpdateSeqs_Fasta (CNcbiIstream &istr, objects::ILineErrorListener *msg_listener)
 
bool x_ReadUpdateSeqs_ASN (CNcbiIstream &istr)
 
bool x_CreateUpdateSeqInput (const TOldToUpdateMap &updatepairs, TIDToUpdInputMap &inputmap)
 
bool x_CreateUpdateSeqInputForUnitTest (const TOldToUpdateMap &updatepairs, TIDToUpdInputMap &inputmap)
 
 CUpdateMultipleSeq_Input (const CUpdateMultipleSeq_Input &)
 
CUpdateMultipleSeq_Inputoperator= (const CUpdateMultipleSeq_Input &)
 

Private Attributes

int m_NumUpdated
 
int m_NumSkipped
 
TIDToUpdInputMap m_NonIdentUpdates
 
TIDToUpdInputMap m_IdenticalUpdates
 
TSeqIDHVector m_WithoutUpdates
 
TSeqIDHVector m_UnmatchedUpdates
 
objects::CSeq_entry_Handle m_OldSeh
 
CRef< objects::CSeq_entry > m_UpdEntry
 
CRef< objects::CScope > m_Scope
 
TOldToUpdateMap m_NonIdentPairs
 
TOldToUpdateMap m_IdenticalPairs
 
objects::CSeq_inst::EMol m_MolType = objects::CSeq_inst::eMol_na
 

Detailed Description

Definition at line 43 of file update_multi_seq_input.hpp.

Member Typedef Documentation

◆ TIDToUpdInputMap

Definition at line 49 of file update_multi_seq_input.hpp.

◆ TOldToUpdateMap

typedef map<objects::CSeq_id_Handle, objects::CSeq_id_Handle> CUpdateMultipleSeq_Input::TOldToUpdateMap

Definition at line 52 of file update_multi_seq_input.hpp.

◆ TSeqIDHVector

typedef vector<objects::CSeq_id_Handle> CUpdateMultipleSeq_Input::TSeqIDHVector

Definition at line 50 of file update_multi_seq_input.hpp.

Constructor & Destructor Documentation

◆ CUpdateMultipleSeq_Input() [1/2]

CUpdateMultipleSeq_Input::CUpdateMultipleSeq_Input ( void  )

Definition at line 57 of file update_multi_seq_input.cpp.

◆ ~CUpdateMultipleSeq_Input()

CUpdateMultipleSeq_Input::~CUpdateMultipleSeq_Input ( )

Definition at line 62 of file update_multi_seq_input.cpp.

◆ CUpdateMultipleSeq_Input() [2/2]

CUpdateMultipleSeq_Input::CUpdateMultipleSeq_Input ( const CUpdateMultipleSeq_Input )
private

Member Function Documentation

◆ AppendOld_UpdateSeqPairs()

bool CUpdateMultipleSeq_Input::AppendOld_UpdateSeqPairs ( const TOldToUpdateMap update_pairs)

◆ GetIdenticalUpdates()

const TIDToUpdInputMap& CUpdateMultipleSeq_Input::GetIdenticalUpdates ( ) const
inline

◆ GetMolType()

objects::CSeq_inst::EMol CUpdateMultipleSeq_Input::GetMolType ( ) const
inline

Definition at line 82 of file update_multi_seq_input.hpp.

References m_MolType.

◆ GetNonIdenticalUpdates()

const TIDToUpdInputMap& CUpdateMultipleSeq_Input::GetNonIdenticalUpdates ( ) const
inline

◆ GetOldEntry()

objects::CSeq_entry_Handle CUpdateMultipleSeq_Input::GetOldEntry ( )
inline

◆ GetSeqsWithoutUpdates()

const TSeqIDHVector& CUpdateMultipleSeq_Input::GetSeqsWithoutUpdates ( ) const
inline

◆ GetUnmatchedUpdateSeqs()

const TSeqIDHVector& CUpdateMultipleSeq_Input::GetUnmatchedUpdateSeqs ( ) const
inline

Definition at line 70 of file update_multi_seq_input.hpp.

References m_UnmatchedUpdates.

Referenced by CUpdateMultiSeq_Dlg::x_FillUnmatchedList().

◆ GetUpdateInput()

CRef< CUpdateSeq_Input > CUpdateMultipleSeq_Input::GetUpdateInput ( const objects::CSeq_id_Handle &  idh) const

◆ HaveIdenticalResidues()

bool CUpdateMultipleSeq_Input::HaveIdenticalResidues ( const objects::CSeq_id_Handle &  idh1,
const objects::CSeq_id_Handle &  idh2 
)

◆ operator=()

CUpdateMultipleSeq_Input& CUpdateMultipleSeq_Input::operator= ( const CUpdateMultipleSeq_Input )
private

◆ PrepareMultipleSequenceInputs()

void CUpdateMultipleSeq_Input::PrepareMultipleSequenceInputs ( )

◆ PrepareMultipleSequenceInputsForUnitTest()

bool CUpdateMultipleSeq_Input::PrepareMultipleSequenceInputsForUnitTest ( )

◆ ReadUpdSeqs_FromClipboard()

bool CUpdateMultipleSeq_Input::ReadUpdSeqs_FromClipboard ( objects::ILineErrorListener *  msg_listener)

◆ ReadUpdSeqs_FromFile()

bool CUpdateMultipleSeq_Input::ReadUpdSeqs_FromFile ( objects::ILineErrorListener *  msg_listener)

◆ SetOldEntryAndScope()

bool CUpdateMultipleSeq_Input::SetOldEntryAndScope ( const objects::CSeq_entry_Handle &  tse)

◆ SetUpdateEntry()

bool CUpdateMultipleSeq_Input::SetUpdateEntry ( CRef< objects::CSeq_entry >  update)

◆ x_CreateUpdateSeqInput()

bool CUpdateMultipleSeq_Input::x_CreateUpdateSeqInput ( const TOldToUpdateMap updatepairs,
TIDToUpdInputMap inputmap 
)
private

◆ x_CreateUpdateSeqInputForUnitTest()

bool CUpdateMultipleSeq_Input::x_CreateUpdateSeqInputForUnitTest ( const TOldToUpdateMap updatepairs,
TIDToUpdInputMap inputmap 
)
private

◆ x_MatchIdsAndAddUpdateToScope()

bool CUpdateMultipleSeq_Input::x_MatchIdsAndAddUpdateToScope ( )
private

◆ x_ReadFromStream()

bool CUpdateMultipleSeq_Input::x_ReadFromStream ( CNcbiIstream istr,
objects::ILineErrorListener *  msg_listener 
)
private

◆ x_ReadUpdateSeqs_ASN()

bool CUpdateMultipleSeq_Input::x_ReadUpdateSeqs_ASN ( CNcbiIstream istr)
private

◆ x_ReadUpdateSeqs_Fasta()

bool CUpdateMultipleSeq_Input::x_ReadUpdateSeqs_Fasta ( CNcbiIstream istr,
objects::ILineErrorListener *  msg_listener 
)
private

Member Data Documentation

◆ m_IdenticalPairs

TOldToUpdateMap CUpdateMultipleSeq_Input::m_IdenticalPairs
private

◆ m_IdenticalUpdates

TIDToUpdInputMap CUpdateMultipleSeq_Input::m_IdenticalUpdates
private

◆ m_MolType

objects::CSeq_inst::EMol CUpdateMultipleSeq_Input::m_MolType = objects::CSeq_inst::eMol_na
private

Definition at line 113 of file update_multi_seq_input.hpp.

Referenced by GetMolType(), and x_MatchIdsAndAddUpdateToScope().

◆ m_NonIdentPairs

TOldToUpdateMap CUpdateMultipleSeq_Input::m_NonIdentPairs
private

◆ m_NonIdentUpdates

TIDToUpdInputMap CUpdateMultipleSeq_Input::m_NonIdentUpdates
private

◆ m_NumSkipped

int CUpdateMultipleSeq_Input::m_NumSkipped
private

Definition at line 95 of file update_multi_seq_input.hpp.

◆ m_NumUpdated

int CUpdateMultipleSeq_Input::m_NumUpdated
private

Definition at line 94 of file update_multi_seq_input.hpp.

◆ m_OldSeh

objects::CSeq_entry_Handle CUpdateMultipleSeq_Input::m_OldSeh
private

◆ m_Scope

CRef<objects::CScope> CUpdateMultipleSeq_Input::m_Scope
private

◆ m_UnmatchedUpdates

TSeqIDHVector CUpdateMultipleSeq_Input::m_UnmatchedUpdates
private

◆ m_UpdEntry

CRef<objects::CSeq_entry> CUpdateMultipleSeq_Input::m_UpdEntry
private

◆ m_WithoutUpdates

TSeqIDHVector CUpdateMultipleSeq_Input::m_WithoutUpdates
private

The documentation for this class was generated from the following files:
Modified on Wed Feb 21 09:55:53 2024 by modify_doxy.py rev. 669887