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

Represents ASN.1 type MSMod defined in file omssa.asn

Search Toolkit Book for CMSMod

#include "Mod.hpp"
(Private to src/algo/ms/omssa.)

+ Collaboration diagram for CMSMod:

Public Types

typedef vector< intTModLists

Public Member Functions

 CMSMod (void)
 CMSMod (const CMSSearchSettings::TVariable &Mods, CRef< CMSModSpecSet > Modset)
bool Init (const CMSSearchSettings::TVariable &Mods, CRef< CMSModSpecSet > Modset)
 initialize variable mod type array More...
const TModListsGetAAMods (EMSModType Type) const

Private Attributes

TModLists ModLists [eMSModType_modmax]

Detailed Description

Definition at line 61 of file Mod.hpp.

Member Typedef Documentation

◆ TModLists

typedef vector< int > CMSMod::TModLists

Definition at line 76 of file Mod.hpp.

Constructor & Destructor Documentation

◆ CMSMod() [1/2]

CMSMod::CMSMod ( void  )

Definition at line 63 of file Mod.hpp.

◆ CMSMod() [2/2]

CMSMod::CMSMod ( const CMSSearchSettings::TVariable Mods,
CRef< CMSModSpecSet Modset 

Definition at line 51 of file Mod.cpp.

References Init().

Member Function Documentation

◆ GetAAMods()

const CMSMod::TModLists & CMSMod::GetAAMods ( EMSModType  Type) const

Definition at line 85 of file Mod.hpp.

References ModLists, and Type.

Referenced by CCleave::CheckAAMods(), CCleave::CheckNonSpecificMods(), and CMassArray::Init().

◆ Init()

bool CMSMod::Init ( const CMSSearchSettings::TVariable Mods,
CRef< CMSModSpecSet Modset 

initialize variable mod type array

Modslist of input mods
Modsetcontainer for mods
was methionine cleavage one of the mods?

Definition at line 56 of file Mod.cpp.

References eMSMod_ntermmcleave, ERR_POST, Error(), CMSModSpecSet::GetModType(), CMSModSpecSet::IsArrayed(), and ModLists.

Referenced by CMSMod(), and CSearch< LEGACY, NHITS >::Search().

Member Data Documentation

◆ ModLists

TModLists CMSMod::ModLists[eMSModType_modmax]

Definition at line 79 of file Mod.hpp.

Referenced by GetAAMods(), and Init().

The documentation for this class was generated from the following files:
Modified on Thu Feb 22 17:07:43 2024 by rev. 669887