41 #ifndef ALGO_MS_FORMATS_PEPXML_MIXTURE_MODEL_BASE_HPP
42 #define ALGO_MS_FORMATS_PEPXML_MIXTURE_MODEL_BASE_HPP
53 #ifndef BEGIN_objects_SCOPE
54 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
55 # define END_objects_SCOPE END_SCOPE(objects)
117 e_precursor_ion_charge,
136 bool IsSetPrecursor_ion_charge(
void)
const;
143 bool CanGetPrecursor_ion_charge(
void)
const;
146 void ResetPrecursor_ion_charge(
void);
173 bool IsSetComments(
void)
const;
180 bool CanGetComments(
void)
const;
183 void ResetComments(
void);
189 const TComments& GetComments(
void)
const;
211 bool IsSetPrior_probability(
void)
const;
218 bool CanGetPrior_probability(
void)
const;
221 void ResetPrior_probability(
void);
248 bool IsSetEst_tot_correct(
void)
const;
255 bool CanGetEst_tot_correct(
void)
const;
258 void ResetEst_tot_correct(
void);
286 bool IsSetTot_num_spectra(
void)
const;
293 bool CanGetTot_num_spectra(
void)
const;
296 void ResetTot_num_spectra(
void);
324 bool IsSetNum_iterations(
void)
const;
331 bool CanGetNum_iterations(
void)
const;
334 void ResetNum_iterations(
void);
381 e_mixturemodel_distribution
395 bool IsSetAttlist(
void)
const;
402 bool CanGetAttlist(
void)
const;
405 void ResetAttlist(
void);
411 const TAttlist& GetAttlist(
void)
const;
432 bool IsSetMixturemodel_distribution(
void)
const;
439 bool CanGetMixturemodel_distribution(
void)
const;
442 void ResetMixturemodel_distribution(
void);
457 virtual void Reset(
void);
489 return IsSetPrecursor_ion_charge();
495 m_Precursor_ion_charge = 0;
502 if (!CanGetPrecursor_ion_charge()) {
505 return m_Precursor_ion_charge;
511 m_Precursor_ion_charge =
value;
519 if (!IsSetPrecursor_ion_charge()) {
520 memset(&m_Precursor_ion_charge,
UnassignedByte(),
sizeof(m_Precursor_ion_charge));
524 return m_Precursor_ion_charge;
536 return IsSetComments();
542 if (!CanGetComments()) {
558 m_Comments = std::forward<CMixture_model_Base::C_Attlist::TComments>(
value);
566 if (!IsSetComments()) {
583 return IsSetPrior_probability();
589 m_Prior_probability = 0;
596 if (!CanGetPrior_probability()) {
599 return m_Prior_probability;
605 m_Prior_probability =
value;
613 if (!IsSetPrior_probability()) {
614 memset(&m_Prior_probability,
UnassignedByte(),
sizeof(m_Prior_probability));
618 return m_Prior_probability;
630 return IsSetEst_tot_correct();
636 if (!CanGetEst_tot_correct()) {
639 return m_Est_tot_correct;
645 m_Est_tot_correct =
value;
652 m_Est_tot_correct = std::forward<CMixture_model_Base::C_Attlist::TEst_tot_correct>(
value);
660 if (!IsSetEst_tot_correct()) {
665 return m_Est_tot_correct;
677 return IsSetTot_num_spectra();
683 if (!CanGetTot_num_spectra()) {
686 return m_Tot_num_spectra;
692 m_Tot_num_spectra =
value;
699 m_Tot_num_spectra = std::forward<CMixture_model_Base::C_Attlist::TTot_num_spectra>(
value);
707 if (!IsSetTot_num_spectra()) {
712 return m_Tot_num_spectra;
724 return IsSetNum_iterations();
730 if (!CanGetNum_iterations()) {
733 return m_Num_iterations;
739 m_Num_iterations =
value;
746 m_Num_iterations = std::forward<CMixture_model_Base::C_Attlist::TNum_iterations>(
value);
754 if (!IsSetNum_iterations()) {
759 return m_Num_iterations;
CMixturemodel_distribution –.
Base class for all serializable objects.
static char UnassignedByte(void)
void ThrowUnassigned(TMemberIndex index) const
static string UnassignedString(void)
uint32_t Uint4
4-byte (32-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_PEPXML_EXPORT
bool IsSetPrecursor_ion_charge(void) const
Check if a value has been assigned to Precursor_ion_charge data member.
bool IsSetAttlist(void) const
Check if a value has been assigned to Attlist data member.
C_Attlist & operator=(const C_Attlist &)
TAttlist & SetAttlist(void)
Assign a value to Attlist data member.
void ResetPrior_probability(void)
Reset Prior_probability data member.
TTot_num_spectra & SetTot_num_spectra(void)
Assign a value to Tot_num_spectra data member.
TPrecursor_ion_charge GetPrecursor_ion_charge(void) const
Get the Precursor_ion_charge member data.
const TNum_iterations & GetNum_iterations(void) const
Get the Num_iterations member data.
TEst_tot_correct & SetEst_tot_correct(void)
Assign a value to Est_tot_correct data member.
bool CanGetNum_iterations(void) const
Check if it is safe to call GetNum_iterations method.
bool CanGetComments(void) const
Check if it is safe to call GetComments method.
C_Attlist(const C_Attlist &)
TNum_iterations & SetNum_iterations(void)
Assign a value to Num_iterations data member.
TComments & SetComments(void)
Assign a value to Comments data member.
list< CRef< CMixturemodel_distribution > > TMixturemodel_distribution
int m_Precursor_ion_charge
const TTot_num_spectra & GetTot_num_spectra(void) const
Get the Tot_num_spectra member data.
void ResetAttlist(void)
Reset Attlist data member.
const TMixturemodel_distribution & GetMixturemodel_distribution(void) const
Get the Mixturemodel_distribution member data.
TPrecursor_ion_charge & SetPrecursor_ion_charge(void)
Assign a value to Precursor_ion_charge data member.
double m_Prior_probability
double TPrior_probability
bool IsSetPrior_probability(void) const
Check if a value has been assigned to Prior_probability data member.
bool CanGetEst_tot_correct(void) const
Check if it is safe to call GetEst_tot_correct method.
bool IsSetMixturemodel_distribution(void) const
Check if a value has been assigned to Mixturemodel_distribution data member.
CMixture_model_Base & operator=(const CMixture_model_Base &)
bool IsSetTot_num_spectra(void) const
Check if a value has been assigned to Tot_num_spectra data member.
TPrior_probability & SetPrior_probability(void)
Assign a value to Prior_probability data member.
CMixture_model_Base(const CMixture_model_Base &)
bool IsSetNum_iterations(void) const
Check if a value has been assigned to Num_iterations data member.
bool CanGetPrior_probability(void) const
Check if it is safe to call GetPrior_probability method.
list< CRef< CMixturemodel_distribution > > m_Mixturemodel_distribution
bool IsSetEst_tot_correct(void) const
Check if a value has been assigned to Est_tot_correct data member.
TPrior_probability GetPrior_probability(void) const
Get the Prior_probability member data.
DECLARE_INTERNAL_TYPE_INFO()
bool CanGetAttlist(void) const
Check if it is safe to call GetAttlist method.
bool IsSetComments(void) const
Check if a value has been assigned to Comments data member.
Tparent::CMemberIndex< E_memberIndex, 3 > TmemberIndex
const TAttlist & GetAttlist(void) const
Get the Attlist member data.
const TEst_tot_correct & GetEst_tot_correct(void) const
Get the Est_tot_correct member data.
Tparent::CMemberIndex< E_memberIndex, 7 > TmemberIndex
const TComments & GetComments(void) const
Get the Comments member data.
DECLARE_INTERNAL_TYPE_INFO()
bool CanGetTot_num_spectra(void) const
Check if it is safe to call GetTot_num_spectra method.
CRef< TAttlist > m_Attlist
int TPrecursor_ion_charge
bool CanGetMixturemodel_distribution(void) const
Check if it is safe to call GetMixturemodel_distribution method.
TMixturemodel_distribution & SetMixturemodel_distribution(void)
Assign a value to Mixturemodel_distribution data member.
bool CanGetPrecursor_ion_charge(void) const
Check if it is safe to call GetPrecursor_ion_charge method.
void ResetPrecursor_ion_charge(void)
Reset Precursor_ion_charge data member.
const GenericPointer< typename T::ValueType > T2 value