OpenStructure
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
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
:
atom
(a),
pos
(p) {}
34
impl::AtomImplW
atom
;
35
geom::Vec3
pos
;
36
};
37
38
typedef
std::vector<AtomGroupEntry>
AtomGroupEntryList
;
39
40
struct
AtomGroup
{
41
String
name
;
42
AtomGroupEntryList
atoms
;
43
};
44
45
typedef
std::map<String, AtomGroup>
AtomEntryGroups
;
46
47
}}}
// ns
48
49
#endif
Generated on Thu Jun 14 2012 18:58:01 for OpenStructure by
1.8.1.1