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

Defines a list of flags. More...

#include <NektarUnivTypeDefs.hpp>

Collaboration diagram for Nektar::FlagList:
Collaboration graph
[legend]

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

Member Function Documentation

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

Definition at line 98 of file NektarUnivTypeDefs.hpp.

References m_data.

Referenced by Nektar::MultiRegions::ContField3DHomogeneous1D::v_HelmSolve(), Nektar::MultiRegions::ContField3DHomogeneous2D::v_HelmSolve(), Nektar::MultiRegions::ContField3D::v_HelmSolve(), Nektar::MultiRegions::ContField1D::v_HelmSolve(), and Nektar::MultiRegions::ContField2D::v_HelmSolve().

99  {
100  std::map<FlagType, bool>::const_iterator x;
101  return ((x = m_data.find(key)) != m_data.end() && x->second);
102  }
std::map< FlagType, bool > m_data
void Nektar::FlagList::set ( const FlagType key,
bool  value 
)
inline

Definition at line 94 of file NektarUnivTypeDefs.hpp.

References m_data.

95  {
96  m_data[key] = value;
97  }
std::map< FlagType, bool > m_data

Member Data Documentation

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

Definition at line 104 of file NektarUnivTypeDefs.hpp.

Referenced by isSet(), and set().