PCL
|
A type-safe collection of enumerated flags. More...
#include <Flags.h>
Public Types | |
using | enum_type = E |
using | flag_type = typename FlagType< std::is_unsigned< enum_type >::value >::type |
Public Member Functions | |
Flags ()=default | |
Flags (const Flags &)=default | |
constexpr | Flags (enum_type e) |
constexpr | Flags (flag_type m) |
constexpr flag_type | AsInteger () const |
void | Clear () |
void | ClearFlag (enum_type e) |
constexpr bool | IsFlagSet (enum_type e) const |
constexpr | operator flag_type () const |
constexpr bool | operator! () const |
constexpr Flags | operator& (enum_type e) const |
constexpr Flags | operator& (Flags f) const |
constexpr Flags | operator& (unsigned m) const |
Flags & | operator&= (enum_type e) |
Flags & | operator&= (Flags f) |
Flags & | operator&= (unsigned m) |
Flags & | operator<< (enum_type e) |
Flags & | operator= (const Flags &)=default |
Flags & | operator= (enum_type e) |
constexpr Flags | operator^ (enum_type e) const |
constexpr Flags | operator^ (Flags f) const |
constexpr Flags | operator^ (unsigned m) const |
Flags & | operator^= (enum_type e) |
Flags & | operator^= (Flags f) |
Flags & | operator^= (unsigned m) |
constexpr Flags | operator| (enum_type e) const |
constexpr Flags | operator| (Flags f) const |
constexpr Flags | operator| (unsigned m) const |
Flags & | operator|= (enum_type e) |
Flags & | operator|= (Flags f) |
Flags & | operator|= (unsigned m) |
constexpr Flags | operator~ () const |
void | SetFlag (enum_type e, bool on=true) |
using pcl::Flags< E >::enum_type = E |
using pcl::Flags< E >::flag_type = typename FlagType<std::is_unsigned<enum_type>::value>::type |
|
default |
Constructs an empty (zero) Flags instance.
|
inlineconstexpr |
|
inlineconstexpr |
|
default |
Copy constructor.
|
inlineconstexpr |
Returns the internal representation of flags as an integer value. Equivalent to operator flag_type().
|
inline |
|
inline |
|
inlineconstexpr |
Returns true iff the specified flag e is set in this Flags object.
Definition at line 244 of file Flags.h.
Referenced by pcl::IsAltPressed(), pcl::FindFileInfo::IsArchive(), pcl::FindFileInfo::IsCompressed(), pcl::IsControlPressed(), pcl::FindFileInfo::IsDirectory(), pcl::FindFileInfo::IsEncrypted(), pcl::FindFileInfo::IsHidden(), pcl::IsMetaPressed(), pcl::FindFileInfo::IsReadOnly(), pcl::IsShiftPressed(), pcl::IsSpaceBarPressed(), pcl::FindFileInfo::IsSystem(), and pcl::FindFileInfo::IsTemporary().
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
|
inline |
|
inline |
|
inline |
|
default |
Copy assignment operator. Returns a reference to this object.
|
inline |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
|
inline |
|
inline |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
|
inline |
|
inline |
|
inlineconstexpr |
|
inline |
Sets or clears the specified flag e in this Flags object.
Definition at line 252 of file Flags.h.
Referenced by pcl::XMLElement::AddChildNode().