00001 //------------------------------------------------------------------------------ 00002 // This file is part of the OpenStructure project <www.openstructure.org> 00003 // 00004 // Copyright (C) 2008-2011 by the OpenStructure authors 00005 // 00006 // This library is free software; you can redistribute it and/or modify it under 00007 // the terms of the GNU Lesser General Public License as published by the Free 00008 // Software Foundation; either version 3.0 of the License, or (at your option) 00009 // any later version. 00010 // This library is distributed in the hope that it will be useful, but WITHOUT 00011 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00012 // FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 00013 // details. 00014 // 00015 // You should have received a copy of the GNU Lesser General Public License 00016 // along with this library; if not, write to the Free Software Foundation, Inc., 00017 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00018 //------------------------------------------------------------------------------ 00019 #ifndef OST_ATOM_HANDLE_HR 00020 #define OST_ATOM_HANDLE_HR 00021 00022 #include <ost/mol/module_config.hh> 00023 #include <ost/mol/atom_base.hh> 00024 #include <ost/mol/entity_visitor_fw.hh> 00025 #include <ost/mol/handle_type_fw.hh> 00026 00027 namespace ost { namespace mol { 00028 00037 class DLLEXPORT_OST_MOL AtomHandle : public AtomBase { 00038 public: 00039 AtomHandle(); 00040 AtomHandle(const impl::AtomImplPtr& impl); 00041 00042 public: 00043 00044 ResidueHandle GetResidue() const; 00045 00046 EntityHandle GetEntity() const; 00047 00049 00050 00051 00052 00053 00054 int GetBondCount() const; 00055 00060 BondHandleList GetBondList() const; 00061 00065 BondHandle FindBondToAtom(const AtomHandle& handle) const; 00066 00068 AtomHandleList GetBondPartners() const; 00070 00072 00073 00074 00075 00076 00077 00078 void Apply(EntityVisitor&); 00080 00084 AtomHandle GetHandle() const; 00085 00090 long GetHashCode() const; 00091 00092 bool operator==(const AtomHandle& ref) const; 00093 bool operator!=(const AtomHandle& ref) const; 00094 00095 }; 00096 00097 }} // ns 00098 00099 #endif // OST_ATOM_HANDLE_HH