OpenStructure
Loading...
Searching...
No Matches
build-2.11
stage
include
ost
mol
impl
atom_prop.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_ATOM_PROP_HH
20
#define OST_ATOM_PROP_HH
21
22
#include <map>
23
#include <
ost/mol/module_config.hh
>
24
#include <
ost/geom/mat3.hh
>
25
26
namespace
ost
{
namespace
mol {
namespace
impl {
27
28
29
class
DLLEXPORT_OST_MOL
AtomProp
{
30
public
:
31
AtomProp
()
32
: radius(0.0), charge(0.0), mass(0.0), has_anisou(false), is_default(true),
33
anisou(
geom
::Mat3())
34
{
35
}
36
AtomProp
(
Real
r,
Real
m,
Real
c=0.0): radius(r), charge(c),
37
mass(m), has_anisou(false), is_default(true)
38
{ }
39
AtomProp
(
const
AtomProp
& rhs): radius(rhs.radius), charge(rhs.charge),
40
mass(rhs.mass), has_anisou(rhs.has_anisou), is_default(rhs.is_default),
41
anisou(rhs.anisou)
42
{ }
43
Real
radius
;
44
Real
charge
;
45
Real
mass
;
46
bool
has_anisou
;
47
bool
is_default
;
48
geom::Mat3
anisou
;
49
50
static
AtomProp
*
GetDefaultProps
(
const
String
& ele);
51
52
private
:
53
static
void
Init();
54
static
std::map<String, AtomProp> defaults_;
55
};
56
57
}}}
// ns
58
59
#endif
60
geom::Mat3
Definition
mat3.hh:39
ost::mol::impl::AtomProp
Definition
atom_prop.hh:29
ost::mol::impl::AtomProp::AtomProp
AtomProp(Real r, Real m, Real c=0.0)
Definition
atom_prop.hh:36
ost::mol::impl::AtomProp::anisou
geom::Mat3 anisou
Definition
atom_prop.hh:48
ost::mol::impl::AtomProp::is_default
bool is_default
Definition
atom_prop.hh:47
ost::mol::impl::AtomProp::GetDefaultProps
static AtomProp * GetDefaultProps(const String &ele)
ost::mol::impl::AtomProp::mass
Real mass
Definition
atom_prop.hh:45
ost::mol::impl::AtomProp::charge
Real charge
Definition
atom_prop.hh:44
ost::mol::impl::AtomProp::AtomProp
AtomProp(const AtomProp &rhs)
Definition
atom_prop.hh:39
ost::mol::impl::AtomProp::radius
Real radius
Definition
atom_prop.hh:43
ost::mol::impl::AtomProp::AtomProp
AtomProp()
Definition
atom_prop.hh:31
ost::mol::impl::AtomProp::has_anisou
bool has_anisou
Definition
atom_prop.hh:46
mat3.hh
Real
float Real
Definition
base.hh:44
String
std::string String
Definition
base.hh:54
module_config.hh
DLLEXPORT_OST_MOL
#define DLLEXPORT_OST_MOL
Definition
module_config.hh:28
geom
Definition
aligned_cuboid.hh:29
ost
Definition
base.dox:1
Generated by
1.9.8