{
}
-ChemicalDataObject& Element::data(ChemicalDataObject::BlueObelisk type)
+ChemicalDataObject& Element::data(ChemicalDataObject::BlueObelisk type) const
{
foreach( ChemicalDataObject*o, dataList ) {
if ( o->type() == type )
return cdo;
}
-QVariant Element::dataAsVariant( ChemicalDataObject::BlueObelisk type )
+QVariant Element::dataAsVariant( ChemicalDataObject::BlueObelisk type ) const
{
foreach( ChemicalDataObject* o, dataList ) {
if ( o->type() == type )
return QVariant();
}
-QString Element::dataAsString(ChemicalDataObject::BlueObelisk type)
+QString Element::dataAsString(ChemicalDataObject::BlueObelisk type) const
{
foreach( ChemicalDataObject*o, dataList ) {
if ( o->type() == type )
return "";
}
-Isotope* Element::isotopeByNucleons( int numberOfNucleons )
+Isotope* Element::isotopeByNucleons( int numberOfNucleons ) const
{
QList<Isotope*>::ConstIterator it = m_isotopeList.begin();
const QList<Isotope*>::ConstIterator itEnd = m_isotopeList.end();
* @returns a pointer to the istope with @p numberOfNucleons
* nucleons
*/
- Isotope* isotopeByNucleons( int numberOfNucleons );
+ Isotope* isotopeByNucleons( int numberOfNucleons ) const;
enum RADIUSTYPE
{
return m_spectrumList;
}
- void setIsotopeList( QList<Isotope*> list ){
+ void setIsotopeList( const QList<Isotope*> &list ){
m_isotopeList = list;
}
* of the type @p type
* @param type the type of the requested data
*/
- ChemicalDataObject& data( ChemicalDataObject::BlueObelisk type );
+ ChemicalDataObject& data( ChemicalDataObject::BlueObelisk type ) const;
/**
* @return the requested data of the type @p type as a QVariant
*/
- QVariant dataAsVariant( ChemicalDataObject::BlueObelisk type );
+ QVariant dataAsVariant( ChemicalDataObject::BlueObelisk type ) const;
/**
* @return the requested data of the type @p type as a QString
*/
- QString dataAsString( ChemicalDataObject::BlueObelisk type );
+ QString dataAsString( ChemicalDataObject::BlueObelisk type ) const;
/**
* @return the data of the Element