/usr/include/votca/csg/beadtriple.h is in libvotca-csg-dev 1.4.1-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | /*
* Copyright 2016 The VOTCA Development Team (http://www.votca.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#ifndef BEADTRIPLE_H
#define BEADTRIPLE_H
#include <tuple>
namespace votca { namespace csg {
using namespace votca::tools;
/**
\brief A particle pair
This class defines a particle pair. The future plan is, that the Pair class
can be overloaded and Particle list creates these inherited pairs.
*/
class BeadTriple
: public std::tuple<Bead *, Bead *, Bead *>
{
public:
BeadTriple() {}
BeadTriple(Bead *bead1, Bead *bead2, Bead *bead3, vec r12, vec r13, vec r23)
: std::tuple<Bead*, Bead *, Bead *>(bead1, bead2, bead3), _r12(r12), _r13(r13), _r23(r23), _dist12(abs(r12)), _dist13(abs(r13)), _dist23(abs(r23)) {}
virtual ~BeadTriple() {}
/// \brief the vector connecting two beads
vec &r12() { return _r12; }
vec &r13() { return _r13; }
vec &r23() { return _r23; }
/// \brief the distance of the beads
double &dist12() { return _dist12; }
double &dist13() { return _dist13; }
double &dist23() { return _dist23; }
protected:
vec _r12;
vec _r13;
vec _r23;
double _dist12;
double _dist13;
double _dist23;
};
}}
#endif /* BEADTRIPLE_H */
|