Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 96 of file NektarUnivTypeDefs.hpp.

Member Function Documentation

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

Definition at line 103 of file NektarUnivTypeDefs.hpp.

References m_data.

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

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

Definition at line 99 of file NektarUnivTypeDefs.hpp.

References m_data.

100  {
101  m_data[key] = value;
102  }
std::map< FlagType, bool > m_data

Member Data Documentation

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

Definition at line 109 of file NektarUnivTypeDefs.hpp.

Referenced by isSet(), and set().