GQCP
Loading...
Searching...
No Matches
JacobiRotatable.hpp
Go to the documentation of this file.
1// This file is part of GQCG-GQCP.
2//
3// Copyright (C) 2017-2020 the GQCG developers
4//
5// GQCG-GQCP is free software: you can redistribute it and/or modify
6// it under the terms of the GNU Lesser General Public License as published by
7// the Free Software Foundation, either version 3 of the License, or
8// (at your option) any later version.
9//
10// GQCG-GQCP is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU Lesser General Public License for more details.
14//
15// You should have received a copy of the GNU Lesser General Public License
16// along with GQCG-GQCP. If not, see <http://www.gnu.org/licenses/>.
17
18#pragma once
19
20
22
23
24namespace GQCP {
25
26
27/*
28 * MARK: JacobiRotatableTraits
29 */
30
36template <typename T>
38
39
40/*
41 * MARK: JacobiRotatable
42 */
43
49template <typename T>
51public:
52 // The type of Jacobi rotation for which the basis rotation should be defined.
54
55
56public:
57 /*
58 * MARK: Pure virtual methods
59 */
60
68 virtual T rotated(const JacobiRotationType& jacobi_rotation) const = 0;
69
70
71 /*
72 * MARK: Implementations enabled by pure virtual methods
73 */
74
80 void rotate(const JacobiRotationType& jacobi_rotation) {
81 static_cast<T&>(*this) = this->rotated(jacobi_rotation);
82 }
83};
84
85
86} // namespace GQCP
Definition: JacobiRotatable.hpp:50
typename JacobiRotatableTraits< T >::JacobiRotationType JacobiRotationType
Definition: JacobiRotatable.hpp:53
void rotate(const JacobiRotationType &jacobi_rotation)
Definition: JacobiRotatable.hpp:80
virtual T rotated(const JacobiRotationType &jacobi_rotation) const =0
Definition: BaseOneElectronIntegralBuffer.hpp:25
Definition: JacobiRotatable.hpp:37