OpenStructure
entity_visitor.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-2011 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_ENTITY_VISITOR_HC
20 #define OST_ENTITY_VISITOR_HC
21 
22 #include "entity_visitor_fw.hh"
23 
24 #include <ost/mol/atom_handle.hh>
26 #include <ost/mol/chain_handle.hh>
27 #include <ost/mol/bond_handle.hh>
29 #include <ost/mol/atom_view.hh>
30 #include <ost/mol/residue_view.hh>
31 #include <ost/mol/chain_view.hh>
32 
33 namespace ost { namespace mol {
75 
76 
79 public:
80  virtual ~EntityVisitor();
81 
82  virtual void OnEntry();
83  virtual void OnExit();
85  virtual bool VisitChain(const ChainHandle& c);
86 
88  virtual bool VisitResidue(const ResidueHandle& r);
89 
91  virtual bool VisitAtom(const AtomHandle& a);
92 
95  virtual bool VisitBond(const BondHandle& b);
96 
99  virtual bool VisitTorsion(const TorsionHandle& t);
100 };
101 
104 public:
105  virtual ~EntityViewVisitor();
106 
107  virtual void OnEntry();
108  virtual void OnExit();
109 
110  virtual bool VisitChain(const ChainView& c);
111 
112  virtual bool VisitResidue(const ResidueView& r);
113 
114  virtual bool VisitAtom(const AtomView& a);
115 
116  // is handle until bond view is implemented
117  virtual bool VisitBond(const BondHandle& b);
118 };
119 
120 }} //ns
121 
122 #endif