libXpertMassCore and libXpertMassGui Developer Documentation
  • libXpertMassCore
  • CleavageConfig
  • MsXpS::libXpertMassCore::CleavageConfig Class

    class MsXpS::libXpertMassCore::CleavageConfig

    The CleavageConfig class derives from CleavageAgent to provide a model for specifying aqueous cleavage specifications (patterns) of Polymer Sequences along with instructions on the way the cleavage must occur. More...

    Header: #include <MsXpS/libXpertMassCore/CleavageConfig.hpp>
    Inherits: MsXpS::libXpertMassCore::CleavageAgent

    Properties

    Public Functions

    CleavageConfig(QObject *parent = nullptr)
    CleavageConfig(const MsXpS::libXpertMassCore::CleavageAgent &cleavage_agent, int partials = 0, bool is_sequence_embedded = false, QObject *parent = nullptr)
    CleavageConfig(MsXpS::libXpertMassCore::PolChemDefCstSPtr pol_chem_def_csp, const QString &name, const QString &pattern, int partials = 0, bool is_sequence_embedded = false, QObject *parent = nullptr)
    CleavageConfig(const MsXpS::libXpertMassCore::CleavageConfig &other, QObject *parent = nullptr)
    virtual ~CleavageConfig()
    int getPartials() const
    int getStartIonizeLevel() const
    int getStopIonizeLevel() const
    bool initialize(const MsXpS::libXpertMassCore::CleavageConfig &other, QObject *parent = nullptr)
    bool isSequenceEmbedded() const
    bool setCleavageAgent(const MsXpS::libXpertMassCore::CleavageAgent &cleavage_agent)
    void setIonizeLevels(int value1, int value2)
    void setPartials(int value)
    void setSequenceEmbedded(bool is_sequence_embedded)
    void setStartIonizeLevel(int value)
    void setStopIonizeLevel(int value)
    bool operator!=(const MsXpS::libXpertMassCore::CleavageConfig &other) const
    bool operator==(const MsXpS::libXpertMassCore::CleavageConfig &other) const

    Protected Variables

    int m_partials
    bool m_sequenceEmbedded
    int m_startIonizeLevel
    int m_stopIonizeLevel

    Detailed Description

    The added configuration elements in this class are related to the way the obtained oligomers (peptides, oligonucleotides, oligosaccharides...) are produced:

    See also CleavageAgent, CleavageMotif, and CleavageRule.

    Property Documentation

    partials : int

    This property holds the partial cleavages accepted.

    Access functions:

    int getPartials() const
    void setPartials(int value)

    sequenceEmbedded : bool

    Tells if the sequence of the obtained Oligomer instances needs to be embedded in the object.

    Access functions:

    bool isSequenceEmbedded() const
    void setSequenceEmbedded(bool is_sequence_embedded)

    startIonizeLevel : int

    This property holds the ionization range start level.

    Access functions:

    int getStartIonizeLevel() const
    void setStartIonizeLevel(int value)

    stopIonizeLevel : int

    This property holds the ionization range stop level.

    Access functions:

    int getStopIonizeLevel() const
    void setStopIonizeLevel(int value)

    Member Function Documentation

    [invokable] CleavageConfig::CleavageConfig(QObject *parent = nullptr)

    Constructs a default-initialized CleavageConfig instance.

    Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

    [invokable] CleavageConfig::CleavageConfig(const MsXpS::libXpertMassCore::CleavageAgent &cleavage_agent, int partials = 0, bool is_sequence_embedded = false, QObject *parent = nullptr)

    Constructs a CleavageConfig instance starting using a limited set of parameters.

    cleavage_agent: initializes the base class CleavageAgent.

    partials: initializes m_partials;

    is_sequence_embedded: initializes m_sequenceEmbedded.

    Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

    [invokable] CleavageConfig::CleavageConfig(MsXpS::libXpertMassCore::PolChemDefCstSPtr pol_chem_def_csp, const QString &name, const QString &pattern, int partials = 0, bool is_sequence_embedded = false, QObject *parent = nullptr)

    Constructs a CleavageConfig instance using a full set of parameters.

    pol_chem_def_csp: initializes CleavageAgent::mcsp_polChemDef.

    name: initializes CleavageAgent::m_name;

    pattern: initalizes CleavageAgent::m_pattern;

    partials: initializes m_partials;

    is_sequence_embedded: initializes m_sequenceEmbedded.

    Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

    [invokable] CleavageConfig::CleavageConfig(const MsXpS::libXpertMassCore::CleavageConfig &other, QObject *parent = nullptr)

    Constructs a CleavageConfig instance as a copy of other with parentship set to parent.

    Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

    [virtual noexcept] CleavageConfig::~CleavageConfig()

    Destructs this CleavageConfig instance.

    int CleavageConfig::getPartials() const

    Returns the partial cleavages.

    Note: Getter function for property partials.

    int CleavageConfig::getStartIonizeLevel() const

    Returns the ionization range start level.

    Note: Getter function for property startIonizeLevel.

    int CleavageConfig::getStopIonizeLevel() const

    Returns the ionization range stop level.

    Note: Getter function for property stopIonizeLevel.

    [invokable] bool CleavageConfig::initialize(const MsXpS::libXpertMassCore::CleavageConfig &other, QObject *parent = nullptr)

    Initializes this CleavageConfig instance using other, setting parentship to parent.

    If no initialization error occurred, return true, false otherwise.

    Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

    See also CleavageAgent::initialize().

    bool CleavageConfig::isSequenceEmbedded() const

    Returns the sequence embedded boolean value.

    Note: Getter function for property sequenceEmbedded.

    [invokable] bool CleavageConfig::setCleavageAgent(const MsXpS::libXpertMassCore::CleavageAgent &cleavage_agent)

    Sets this instance's CleavageAgent base class to cleavage_agent.

    Note: The parentship is transferred to cleavage_agent.

    Returns true the CleavageAgent initialization succeeded, false otherwise.

    Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

    [invokable] void CleavageConfig::setIonizeLevels(int value1, int value2)

    Sets both the ionization range start and stop levels to value1 and value2, respectively.

    Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

    void CleavageConfig::setPartials(int value)

    Sets the partial cleavages to value.

    Note: Setter function for property partials.

    void CleavageConfig::setSequenceEmbedded(bool is_sequence_embedded)

    Sets the sequence embedded boolean value to is_sequence_embedded.

    Note: Setter function for property sequenceEmbedded.

    See also isSequenceEmbedded().

    void CleavageConfig::setStartIonizeLevel(int value)

    Sets the ionization range start level to value.

    Note: Setter function for property startIonizeLevel.

    void CleavageConfig::setStopIonizeLevel(int value)

    Sets the ionization range stop level to value.

    Note: Setter function for property stopIonizeLevel.

    bool CleavageConfig::operator!=(const MsXpS::libXpertMassCore::CleavageConfig &other) const

    Returns true if this instance and other differ, false otherwise. Returns the negative value of opearator==().

    See also operator==().

    bool CleavageConfig::operator==(const MsXpS::libXpertMassCore::CleavageConfig &other) const

    Returns true if this CleavageConfig instance and other are identical, false otherwise.

    See also operator!=().

    Member Variable Documentation

    int CleavageConfig::m_partials

    This variable holds the partial cleavages accepted.

    bool CleavageConfig::m_sequenceEmbedded

    Tells if the sequence of the obtained Oligomer instances needs to be embedded in the object.

    int CleavageConfig::m_startIonizeLevel

    This variable holds the ionization range start level.

    int CleavageConfig::m_stopIonizeLevel

    This variable holds the ionization range stop level.