OpenStructure
build-dev-doc
stage
include
ost
mol
impl
atom_group.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_IMPL_ATOM_GROUP_HH
20
#define OST_IMPL_ATOM_GROUP_HH
21
22
#include <
ost/mol/module_config.hh
>
23
#include <
ost/mol/impl/atom_impl_fw.hh
>
24
#include <vector>
25
#include <map>
26
#include <
ost/geom/vec3.hh
>
27
28
namespace
ost
{
namespace
mol {
namespace
impl {
29
30
struct
AtomGroupEntry
{
31
AtomGroupEntry
() {}
32
AtomGroupEntry
(
const
AtomImplPtr
& a,
const
geom::Vec3
& p,
33
Real
o,
Real
b)
34
:
atom
(a),
pos
(p),
occ
(o),
b_factor
(b) {}
35
impl::AtomImplW
atom
;
36
geom::Vec3
pos
;
37
Real
occ
;
38
Real
b_factor
;
39
};
40
41
typedef
std::vector<AtomGroupEntry>
AtomGroupEntryList
;
42
43
struct
AtomGroup
{
44
String
name
;
45
AtomGroupEntryList
atoms
;
46
};
47
48
typedef
std::map<String, AtomGroup>
AtomEntryGroups
;
49
50
}}}
// ns
51
52
#endif
atom_impl_fw.hh
geom::Vec3
Three dimensional vector class, using Real precision.
Definition:
vec3.hh:48
Real
float Real
Definition:
base.hh:44
String
std::string String
Definition:
base.hh:54
module_config.hh
ost::mol::impl::AtomGroupEntryList
std::vector< AtomGroupEntry > AtomGroupEntryList
Definition:
atom_group.hh:41
ost::mol::impl::AtomImplPtr
boost::shared_ptr< AtomImpl > AtomImplPtr
Definition:
atom_impl_fw.hh:33
ost::mol::impl::AtomEntryGroups
std::map< String, AtomGroup > AtomEntryGroups
Definition:
atom_group.hh:48
ost::mol::impl::AtomImplW
boost::weak_ptr< AtomImpl > AtomImplW
Definition:
atom_impl_fw.hh:40
ost
Definition:
base.dox:1
ost::mol::impl::AtomGroupEntry
Definition:
atom_group.hh:30
ost::mol::impl::AtomGroupEntry::atom
impl::AtomImplW atom
Definition:
atom_group.hh:35
ost::mol::impl::AtomGroupEntry::AtomGroupEntry
AtomGroupEntry(const AtomImplPtr &a, const geom::Vec3 &p, Real o, Real b)
Definition:
atom_group.hh:32
ost::mol::impl::AtomGroupEntry::AtomGroupEntry
AtomGroupEntry()
Definition:
atom_group.hh:31
ost::mol::impl::AtomGroupEntry::b_factor
Real b_factor
Definition:
atom_group.hh:38
ost::mol::impl::AtomGroupEntry::pos
geom::Vec3 pos
Definition:
atom_group.hh:36
ost::mol::impl::AtomGroupEntry::occ
Real occ
Definition:
atom_group.hh:37
ost::mol::impl::AtomGroup
Definition:
atom_group.hh:43
ost::mol::impl::AtomGroup::name
String name
Definition:
atom_group.hh:44
ost::mol::impl::AtomGroup::atoms
AtomGroupEntryList atoms
Definition:
atom_group.hh:45
vec3.hh
Generated by
1.9.1