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

Member Function Documentation

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

Definition at line 106 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().

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

Definition at line 102 of file NektarUnivTypeDefs.hpp.

References m_data.

103  {
104  m_data[key] = value;
105  }
std::map< FlagType, bool > m_data

Member Data Documentation

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

Definition at line 112 of file NektarUnivTypeDefs.hpp.

Referenced by isSet(), and set().