00001 //------------------------------------------------------------------------------ 00002 // This file is part of the OpenStructure project <www.openstructure.org> 00003 // 00004 // Copyright (C) 2008-2010 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 ResidueHandle GetResidue() const; 00044 00045 EntityHandle GetEntity() const; 00046 00048 00049 00050 00051 00052 00053 int GetBondCount() const; 00054 00059 BondHandleList GetBondList() const; 00060 00064 BondHandle FindBondToAtom(const AtomHandle& handle) const; 00065 00067 AtomHandleList GetBondPartners() const; 00069 00071 00072 00073 00074 00075 00076 00077 void Apply(EntityVisitor&); 00079 00083 AtomHandle GetHandle() const; 00084 00089 long GetHashCode() const; 00090 00091 bool operator==(const AtomHandle& ref) const; 00092 bool operator!=(const AtomHandle& ref) const; 00093 00094 }; 00095 00096 }} // ns 00097 00098 #endif // OST_ATOM_HANDLE_HH
1.5.8