Xped
Loading...
Searching...
No Matches
Bonds.hpp
Go to the documentation of this file.
1
#ifndef XPED_BONDS_HPP_
2
#define XPED_BONDS_HPP_
3
4
#include <boost/describe.hpp>
5
6
#include "
Xped/Util/EnumStream.hpp
"
7
8
namespace
Xped::Opts
{
9
enum class
Bond
: uint32_t
10
{
11
H
= (1 << 0),
12
V
= (1 << 1),
13
D1
= (1 << 2),
14
D2
= (1 << 3)
15
};
16
BOOST_DESCRIBE_ENUM(
Bond
,
H
,
V
,
D1
,
D2
)
17
18
constexpr enum
Bond
operator|(const enum
Bond
selfValue, const enum
Bond
inValue) {
return
(
enum
Bond
)(uint32_t(selfValue) | uint32_t(inValue)); }
19
20
constexpr
enum
Bond
operator&
(
const
enum
Bond
selfValue,
const
enum
Bond
inValue) {
return
(
enum
Bond
)(uint32_t(selfValue) & uint32_t(inValue)); }
21
22
}
// namespace Xped::Opts
23
24
#endif
EnumStream.hpp
Xped::Opts
Definition:
bench.cpp:62
Xped::Opts::operator&
constexpr enum Bond operator&(const enum Bond selfValue, const enum Bond inValue)
Definition:
Bonds.hpp:20
Xped::Opts::Bond
Bond
Definition:
Bonds.hpp:10
Xped::Opts::Bond::D1
@ D1
Xped::Opts::Bond::V
@ V
Xped::Opts::Bond::H
@ H
Xped::Opts::Bond::D2
@ D2
include
Xped
PEPS
Bonds.hpp
Generated by
1.9.6