|
The PropListHolder class is the base class for a number of classes that need storing Prop instances. More...
Header: | #include <PropListHolder.hpp> |
Inherited By: | MsXpS::libXpertMass::Modif, MsXpS::libXpertMass::Monomer, MsXpS::libXpertMass::Oligomer, and MsXpS::libXpertMass::PkaPhPi |
PropListHolder() | |
PropListHolder(const PropListHolder &other) | |
virtual | ~PropListHolder() |
bool | appendProp(Prop *prop) |
Prop * | prop(const QString &name, int *index = 0) |
int | propIndex(const QString &name, Prop *prop = 0) |
const QList<Prop *> & | propList() const |
QList<Prop *> & | propList() |
bool | removeProp(Prop *prop) |
bool | removeProp(const QString &name) |
virtual PropListHolder & | operator=(const PropListHolder &other) |
QList<Prop *> | m_propList |
See also Modif, Monomer, Oligomer, and PkaPhPi.
Constructs a PropListHolder instance.
Constructs a PropListHolder instance as a copy of other.
The Prop instances in the other PropListHolder instance's member list of Prop instances are duplicated and stored in this instance using their own copy constructor.
[virtual noexcept]
PropListHolder::~PropListHolder()Destructs this PropListHolder instance.
Adds prop to the member list of Prop instances.
Returns true.
Searches in the member list of Prop instances a Prop having name.
If the Prop instance was found and index is non-nullptr, its index in the list is set to this parameter.
Returns the found Prop instance.
Searches in the member list of Prop instances a Prop having name.
If the Prop instance was found and prop is non-nullptr, its pointer is set to this parameter.
Returns the index of the found Prop instance.
Returns a const reference to the member list of Prop instances.
Returns a non-const reference to the member list of Prop instances.
Removes prop from the member list of Prop instances.
Returns true if prop was removed, false otherwise.
Removes the Prop instance having name from the member list of Prop instances.
If more than one Prop instance by the name are in the list, only the first encountered Prop instance is removed.
Returns true if a Prop instance was removed, false otherwise.
[virtual]
PropListHolder &PropListHolder::operator=(const PropListHolder &other)Assigns other to this PropListHolder instance.
The Prop instances in the other PropListHolder instance's member list of Prop instances are duplicated and stored in this instance using their own copy constructor.
Returns a reference to this PropListHolder instance.
This variable holds the m_propList stores pointer to Prop instances.