Class AnyIrrep

Nested Relationships

Nested Types

Class Documentation

class AnyIrrep

Type-erased IRREP (of arbitrary IRREP type). A moved-from object may only be assigned to or destroyed.

Public Functions

template<typename Irrep>
inline explicit AnyIrrep(Irrep irrep)
AnyIrrep(const AnyIrrep &other)
AnyIrrep(AnyIrrep &&other) noexcept
AnyIrrep &operator=(const AnyIrrep &other)
AnyIrrep &operator=(AnyIrrep &&other) noexcept
~AnyIrrep()
std::string to_string() const
Returns:

The string representation of this IRREP as produced by irrep_to_string

template<typename Irrep>
inline const Irrep *as() const
Returns:

A pointer to the wrapped IRREP, if it is of type Irrep. Otherwise, nullptr.

Friends

friend bool operator==(const AnyIrrep &lhs, const AnyIrrep &rhs)