Nektar++
Public Member Functions | Private Attributes | List of all members
Nektar::FlagList Class Reference

Defines a list of flags. More...

#include <NektarUnivTypeDefs.hpp>

Public Member Functions

void set (const FlagType &key, bool value)
 
bool isSet (const FlagType &key) const
 

Private Attributes

std::map< FlagType, bool > m_data
 

Detailed Description

Defines a list of flags.

Definition at line 98 of file NektarUnivTypeDefs.hpp.

Member Function Documentation

◆ isSet()

bool Nektar::FlagList::isSet ( const FlagType key) const
inline

Definition at line 105 of file NektarUnivTypeDefs.hpp.

106 {
107 auto x = m_data.find(key);
108 return x != m_data.end() && x->second;
109 }
std::map< FlagType, bool > m_data

References m_data.

◆ set()

void Nektar::FlagList::set ( const FlagType key,
bool  value 
)
inline

Definition at line 101 of file NektarUnivTypeDefs.hpp.

102 {
103 m_data[key] = value;
104 }

References m_data.

Member Data Documentation

◆ m_data

std::map<FlagType, bool> Nektar::FlagList::m_data
private

Definition at line 112 of file NektarUnivTypeDefs.hpp.

Referenced by isSet(), and set().