Struct IndexSpace::Attr¶
Defined in File space.hpp
Nested Relationships¶
This struct is a nested type of Class IndexSpace.
Inheritance Relationships¶
Base Types¶
public sequant::TypeAttr
(Class TypeAttr)public sequant::QuantumNumbersAttr
(Class QuantumNumbersAttr)
Struct Documentation¶
-
struct Attr : public sequant::TypeAttr, public sequant::QuantumNumbersAttr
Attr describes all attributes of a space (occupancy + quantum numbers)
Public Functions
-
inline Attr(TypeAttr type, QuantumNumbersAttr qns) noexcept
-
inline Attr(int32_t type, int32_t qns) noexcept
-
Attr() = default
default ctor creates a null Attr
- Post:
static_cast<bool>(*this) == false
-
Attr(const Attr&) = default
-
Attr(Attr&&) = default
-
inline constexpr const TypeAttr &type() const
-
inline constexpr TypeAttr &type()
-
inline constexpr const QuantumNumbersAttr &qns() const
-
inline constexpr QuantumNumbersAttr &qns()
-
inline explicit constexpr operator int64_t() const
-
inline Attr unIon(Attr other) const
union of Attr = union of TypeAttr and union of QuantumNumbersAttr
- Returns:
union of
*this
andother
, i.e.*this
ANDother
-
inline Attr intersection(Attr other) const
intersection of Attr = intersection of TypeAttr and intersection of QuantumNumbersAttr
- Returns:
intersection of
*this
ANDother
-
inline bool includes(Attr other) const
- Returns:
true if
other
is included in this object
-
inline constexpr bool operator==(Attr other) const
-
inline constexpr bool operator!=(Attr other) const
Public Static Attributes
-
static const Attr null
-
inline Attr(TypeAttr type, QuantumNumbersAttr qns) noexcept