37 return static_cast<OwnershipState>(
static_cast<int64_t
>(a) &
static_cast<int64_t
>(b));
47 return static_cast<OwnershipState>(
static_cast<int64_t
>(a) |
static_cast<int64_t
>(b));
66 switch (ownershipState) {
77 os <<
"unknown state: 0b" << std::bitset<4>(
static_cast<int64_t
>(ownershipState));
This is the main namespace of AutoPas.
Definition: AutoPasDecl.h:32
static std::ostream & operator<<(std::ostream &os, const OwnershipState &ownershipState)
Insertion operator for OwnershipState.
Definition: OwnershipState.h:65
constexpr int64_t toInt64(const OwnershipState a)
Returns the int64_t value of a given OwnershipState.
Definition: OwnershipState.h:56
constexpr OwnershipState operator|(const OwnershipState a, const OwnershipState b)
Bitwise OR operator for OwnershipState.
Definition: OwnershipState.h:46
OwnershipState
Enum that specifies the state of ownership.
Definition: OwnershipState.h:19
@ dummy
Dummy or deleted state, a particle with this state is not an actual particle!
@ halo
Halo state, a particle with this state is an actual particle, but not owned by the current AutoPas ob...
@ owned
Owned state, a particle with this state is an actual particle and owned by the current AutoPas object...
constexpr OwnershipState operator&(const OwnershipState a, const OwnershipState b)
Bitwise AND operator for OwnershipState.
Definition: OwnershipState.h:36