OpenStructure
Loading...
Searching...
No Matches
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
27
28namespace ost { namespace mol {
70
71
74public:
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
99public:
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 of AtomView
Definition atom_view.hh:34
linear chain of residues
definition of ChainView
Definition chain_view.hh:37
EntityViewVisitor interface.
virtual bool VisitBond(const BondHandle &b)
virtual bool VisitChain(const ChainView &c)
virtual bool VisitResidue(const ResidueView &r)
virtual bool VisitAtom(const AtomView &a)
EntityVisitor interface.
virtual bool VisitBond(const BondHandle &b)
Bond callback.
virtual bool VisitResidue(const ResidueHandle &r)
Residue callback.
virtual bool VisitAtom(const AtomHandle &a)
Atom callback.
virtual void OnExit()
virtual bool VisitTorsion(const TorsionHandle &t)
Torsion callback.
virtual void OnEntry()
virtual bool VisitChain(const ChainHandle &c)
Chain callback.
Named torsion (dihedral) angle.
#define DLLEXPORT_OST_MOL
Definition base.dox:1