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 97 of file NektarUnivTypeDefs.hpp.

Member Function Documentation

◆ isSet()

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

Definition at line 104 of file NektarUnivTypeDefs.hpp.

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

References m_data.

◆ set()

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

Definition at line 100 of file NektarUnivTypeDefs.hpp.

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

References m_data.

Member Data Documentation

◆ m_data

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

Definition at line 111 of file NektarUnivTypeDefs.hpp.

Referenced by isSet(), and set().