OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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-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_ENTITY_VISITOR_HH
20 #define OST_ENTITY_VISITOR_HH
21 
22 #include "module_config.hh"
23 #include "entity_visitor_fw.hh"
24 
25 #include <ost/mol/view_type_fw.hh>
27 
28 namespace ost { namespace mol {
70 
71 
74 public:
75  virtual ~EntityVisitor();
76 
77  virtual void OnEntry();
78  virtual void OnExit();
80  virtual bool VisitChain(const ChainHandle& c);
81 
83  virtual bool VisitResidue(const ResidueHandle& r);
84 
86  virtual bool VisitAtom(const AtomHandle& a);
87 
90  virtual bool VisitBond(const BondHandle& b);
91 
94  virtual bool VisitTorsion(const TorsionHandle& t);
95 };
96 
99 public:
100  virtual ~EntityViewVisitor();
101 
102  virtual void OnEntry();
103  virtual void OnExit();
104 
105  virtual bool VisitChain(const ChainView& c);
106 
107  virtual bool VisitResidue(const ResidueView& r);
108 
109  virtual bool VisitAtom(const AtomView& a);
110 
111  // is handle until bond view is implemented
112  virtual bool VisitBond(const BondHandle& b);
113 };
114 
115 }} //ns
116 
117 #endif
Handle to atom datatype.
Definition: atom_handle.hh:37
EntityVisitor interface.
linear chain of residues
Definition: chain_handle.hh:52
definition of ChainView
Definition: chain_view.hh:37
#define DLLEXPORT_OST_MOL
Named torsion (dihedral) angle.
definition of AtomView
Definition: atom_view.hh:34
chemical bond
Definition: bond_handle.hh:34
EntityViewVisitor interface.