casacore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
casacore::BitFlagsEngine< StoredType >::BoolToFlags Struct Reference

Functor to convert Bools to flags using a mask. More...

Inheritance diagram for casacore::BitFlagsEngine< StoredType >::BoolToFlags:

Public Member Functions

 BoolToFlags (StoredType writeMask)
 
StoredType operator() (Bool flag, StoredType value) const
 

Private Attributes

StoredType itsMask
 

Detailed Description

template<typename StoredType>
struct casacore::BitFlagsEngine< StoredType >::BoolToFlags

Functor to convert Bools to flags using a mask.

By default only bit 0 is set. Flag bits not affected are kept.

Definition at line 347 of file BitFlagsEngine.h.

Constructor & Destructor Documentation

template<typename StoredType>
casacore::BitFlagsEngine< StoredType >::BoolToFlags::BoolToFlags ( StoredType  writeMask)
inlineexplicit

Definition at line 349 of file BitFlagsEngine.h.

Member Function Documentation

template<typename StoredType>
StoredType casacore::BitFlagsEngine< StoredType >::BoolToFlags::operator() ( Bool  flag,
StoredType  value 
) const
inline

Member Data Documentation

template<typename StoredType>
StoredType casacore::BitFlagsEngine< StoredType >::BoolToFlags::itsMask
private

The documentation for this struct was generated from the following file: