OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
enum_bitmask.hpp File Reference
#include <type_traits>
Include dependency graph for enum_bitmask.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Slic3r::enum_bitmask< option_type, typename >
struct  Slic3r::is_enum_bitmask_type< Enum >

Namespaces

namespace  Slic3r
 |/ Copyright (c) Prusa Research 2020 - 2023 Enrico Turri @enricoturri1966 |/ |/ PrusaSlicer is released under the terms of the AGPLv3 or higher |/

Macros

#define ENABLE_ENUM_BITMASK_OPERATORS(x)

Functions

template<class option_type>
constexpr std::enable_if_t< is_enum_bitmask_type_v< option_type >, enum_bitmask< option_type > > Slic3r::operator| (option_type lhs, option_type rhs)
template<class option_type>
constexpr std::enable_if_t< is_enum_bitmask_type_v< option_type >, enum_bitmask< option_type > > Slic3r::operator| (option_type lhs, enum_bitmask< option_type > rhs)
template<class option_type>
constexpr std::enable_if_t< is_enum_bitmask_type_v< option_type >, enum_bitmask< option_type > > Slic3r::only_if (bool condition, option_type opt)
template<class option_type>
constexpr std::enable_if_t< is_enum_bitmask_type_v< option_type >, enum_bitmask< option_type > > Slic3r::only_if (bool condition, enum_bitmask< option_type > opt)

Variables

template<class Enum>
constexpr bool Slic3r::is_enum_bitmask_type_v = is_enum_bitmask_type<Enum>::enable

Macro Definition Documentation

◆ ENABLE_ENUM_BITMASK_OPERATORS

#define ENABLE_ENUM_BITMASK_OPERATORS ( x)
Value:
template<> struct is_enum_bitmask_type<x> { static const bool enable = true; };