File indexing completed on 2024-04-28 07:51:16
0001 /* 0002 This file is part of the KDE project "KAtomic" 0003 0004 SPDX-FileCopyrightText: Andreas Wuest <AndreasWuest@gmx.de> 0005 SPDX-FileCopyrightText: Stephan Kulow <coolo@kde.org> 0006 SPDX-FileCopyrightText: 2006 Dmitry Suzdalev <dimsuz@gmail.com> 0007 0008 SPDX-License-Identifier: GPL-2.0-or-later 0009 */ 0010 0011 #include "molecule.h" 0012 0013 const atom& Molecule::getAtom(int index) const 0014 { 0015 static atom none = { 0, "" }; 0016 0017 if (index > m_atoms.count() || index <= 0) 0018 return none; 0019 0020 return m_atoms.at(index - 1); 0021 } 0022