OpenStructure
atom_handle.hh
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 // This file is part of the OpenStructure project <www.openstructure.org>
3 //
4 // Copyright (C) 2008-2020 by the OpenStructure authors
5 //
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License as published by the Free
8 // Software Foundation; either version 3.0 of the License, or (at your option)
9 // any later version.
10 // This library is distributed in the hope that it will be useful, but WITHOUT
11 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 // FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13 // details.
14 //
15 // You should have received a copy of the GNU Lesser General Public License
16 // along with this library; if not, write to the Free Software Foundation, Inc.,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 //------------------------------------------------------------------------------
19 #ifndef OST_ATOM_HANDLE_HR
20 #define OST_ATOM_HANDLE_HR
21 
22 #include <ost/mol/module_config.hh>
23 #include <ost/mol/atom_base.hh>
26 
27 namespace ost { namespace mol {
28 
38 public:
41 
42 public:
43 
45 
47 
49 
50  int GetBondCount() const;
55 
61 
65  BondHandle FindBondToAtom(const AtomHandle& handle) const;
66 
70 
72 
73  void Apply(EntityVisitor&);
80 
85 
90  unsigned long GetHashCode() const;
91 
92  bool operator==(const AtomHandle& ref) const;
93  bool operator!=(const AtomHandle& ref) const;
94 
95 };
96 
97 }} // ns
98 
99 #endif // OST_ATOM_HANDLE_HH
base class for AtomHandle and AtomView
Definition: atom_base.hh:44
Handle to atom datatype.
Definition: atom_handle.hh:37
bool operator!=(const AtomHandle &ref) const
bool operator==(const AtomHandle &ref) const
BondHandle FindBondToAtom(const AtomHandle &handle) const
Find bond to specific atom.
AtomHandle(const impl::AtomImplPtr &impl)
ResidueHandle GetResidue() const
EntityHandle GetEntity() const
AtomHandleList GetBondPartners() const
Get all atoms this atom is bonded to.
unsigned long GetHashCode() const
Get unique identifier for atom.
AtomHandle GetHandle() const
get this handle
BondHandleList GetBondList() const
get bond list
chemical bond
Definition: bond_handle.hh:35
Protein or molecule.
EntityVisitor interface.
#define DLLEXPORT_OST_MOL
boost::shared_ptr< AtomImpl > AtomImplPtr
Definition: atom_impl_fw.hh:33
std::vector< AtomHandle > AtomHandleList
std::vector< BondHandle > BondHandleList
Definition: base.dox:1