GQCP
Loading...
Searching...
No Matches
SpinResolved.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
32template <typename _Of>
34 public SpinResolvedBase<_Of, SpinResolved<_Of>> {
35public:
36 // The type of the alpha- and beta-objects. The name 'Of' is chosen for a natural reading `SpinResolved<_Of, _Derived>`.
37 using Of = _Of;
39
40
41public:
42 /*
43 * MARK: Constructors
44 */
45
46 // Inherit `SpinResolvedBase`'s constructors.
47 using SpinResolvedBase<Of, SpinResolved<Of>>::SpinResolvedBase;
48
49 /*
50 * MARK: General info
51 */
52
58 bool operator==(const SpinResolved<Of>& other) { return this->alpha() == other.alpha() && this->beta() == other.beta(); }
59
65 bool operator!=(const SpinResolved<Of>& other) { return !this->operator==(other); }
66};
67
68
69} // namespace GQCP
Definition: SpinResolvedBase.hpp:39
const Of & beta() const
Definition: SpinResolvedBase.hpp:140
const Of & alpha() const
Definition: SpinResolvedBase.hpp:130
Definition: SpinResolved.hpp:34
Of ComponentType
Definition: SpinResolved.hpp:38
bool operator!=(const SpinResolved< Of > &other)
Definition: SpinResolved.hpp:65
_Of Of
Definition: SpinResolved.hpp:37
bool operator==(const SpinResolved< Of > &other)
Definition: SpinResolved.hpp:58
Definition: BaseOneElectronIntegralBuffer.hpp:25