OpenStructure
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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-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_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
Generated on Thu Mar 5 2015 15:19:05 for OpenStructure by
1.8.1.1