Nektar++
Classes | Public Member Functions | Protected Attributes | Private Member Functions | Friends | List of all members
Nektar::LibUtilities::TimeIntegrationSchemeKey Class Reference

#include <TimeIntegrationScheme.h>

Classes

struct  opLess
 

Public Member Functions

 TimeIntegrationSchemeKey (const TimeIntegrationMethod &method)
 
virtual ~TimeIntegrationSchemeKey ()
 
 TimeIntegrationSchemeKey (const TimeIntegrationSchemeKey &key)
 
TimeIntegrationSchemeKeyoperator= (const TimeIntegrationSchemeKey &key)
 
TimeIntegrationMethod GetIntegrationMethod () const
 
bool operator== (const TimeIntegrationSchemeKey &key)
 
bool operator== (const TimeIntegrationSchemeKey *y)
 
bool operator!= (const TimeIntegrationSchemeKey &y)
 
bool operator!= (const TimeIntegrationSchemeKey *y)
 

Protected Attributes

TimeIntegrationMethod m_method
 integration method More...
 

Private Member Functions

 TimeIntegrationSchemeKey ()
 

Friends

bool operator== (const TimeIntegrationSchemeKey &lhs, const TimeIntegrationSchemeKey &rhs)
 
bool operator< (const TimeIntegrationSchemeKey &lhs, const TimeIntegrationSchemeKey &rhs)
 
bool opLess::operator() (const TimeIntegrationSchemeKey &lhs, const TimeIntegrationSchemeKey &rhs) const
 

Detailed Description

Definition at line 284 of file TimeIntegrationScheme.h.

Constructor & Destructor Documentation

◆ TimeIntegrationSchemeKey() [1/3]

Nektar::LibUtilities::TimeIntegrationSchemeKey::TimeIntegrationSchemeKey ( const TimeIntegrationMethod method)
inline

Definition at line 293 of file TimeIntegrationScheme.h.

293  :
294  m_method(method)
295  {
296  }
TimeIntegrationMethod m_method
integration method

◆ ~TimeIntegrationSchemeKey()

virtual Nektar::LibUtilities::TimeIntegrationSchemeKey::~TimeIntegrationSchemeKey ( )
inlinevirtual

Definition at line 298 of file TimeIntegrationScheme.h.

299  {
300  }

◆ TimeIntegrationSchemeKey() [2/3]

Nektar::LibUtilities::TimeIntegrationSchemeKey::TimeIntegrationSchemeKey ( const TimeIntegrationSchemeKey key)
inline

Definition at line 302 of file TimeIntegrationScheme.h.

303  {
304  *this = key; // defer to assignment operator
305  }

◆ TimeIntegrationSchemeKey() [3/3]

Nektar::LibUtilities::TimeIntegrationSchemeKey::TimeIntegrationSchemeKey ( )
inlineprivate

Definition at line 348 of file TimeIntegrationScheme.h.

References Nektar::ErrorUtil::efatal, Nektar::LibUtilities::eNoTimeIntegrationMethod, Nektar::lhs, LIB_UTILITIES_EXPORT, NEKERROR, Nektar::LibUtilities::NullTimeIntegrationSchemeKey(), Nektar::LibUtilities::operator<(), Nektar::LibUtilities::operator<<(), Nektar::LibUtilities::operator==(), and Nektar::rhs.

349  {
350  NEKERROR(ErrorUtil::efatal,"Default Constructor for the TimeIntegrationSchemeKey class should not be called");
351  }
#define NEKERROR(type, msg)
Assert Level 0 – Fundamental assert which is used whether in FULLDEBUG, DEBUG or OPT compilation mod...
Definition: ErrorUtil.hpp:209

Member Function Documentation

◆ GetIntegrationMethod()

TimeIntegrationMethod Nektar::LibUtilities::TimeIntegrationSchemeKey::GetIntegrationMethod ( ) const
inline

◆ operator!=() [1/2]

bool Nektar::LibUtilities::TimeIntegrationSchemeKey::operator!= ( const TimeIntegrationSchemeKey y)
inline

Definition at line 329 of file TimeIntegrationScheme.h.

330  {
331  return (!(*this == y));
332  }

◆ operator!=() [2/2]

bool Nektar::LibUtilities::TimeIntegrationSchemeKey::operator!= ( const TimeIntegrationSchemeKey y)
inline

Definition at line 334 of file TimeIntegrationScheme.h.

References Nektar::lhs, LIB_UTILITIES_EXPORT, Nektar::LibUtilities::operator<(), Nektar::LibUtilities::operator==(), and Nektar::rhs.

335  {
336  return (!(*this == *y));
337  }

◆ operator=()

TimeIntegrationSchemeKey& Nektar::LibUtilities::TimeIntegrationSchemeKey::operator= ( const TimeIntegrationSchemeKey key)
inline

Definition at line 307 of file TimeIntegrationScheme.h.

References m_method.

308  {
309  m_method = key.m_method;
310 
311  return *this;
312  }
TimeIntegrationMethod m_method
integration method

◆ operator==() [1/2]

bool Nektar::LibUtilities::TimeIntegrationSchemeKey::operator== ( const TimeIntegrationSchemeKey key)
inline

Definition at line 319 of file TimeIntegrationScheme.h.

References m_method.

320  {
321  return (m_method == key.m_method);
322  }
TimeIntegrationMethod m_method
integration method

◆ operator==() [2/2]

bool Nektar::LibUtilities::TimeIntegrationSchemeKey::operator== ( const TimeIntegrationSchemeKey y)
inline

Definition at line 324 of file TimeIntegrationScheme.h.

325  {
326  return (*this == *y);
327  }

Friends And Related Function Documentation

◆ operator<

bool operator< ( const TimeIntegrationSchemeKey lhs,
const TimeIntegrationSchemeKey rhs 
)
friend

Definition at line 57 of file TimeIntegrationScheme.cpp.

58  {
59  return (lhs.m_method < rhs.m_method);
60  }
StandardMatrixTag & lhs
StandardMatrixTag boost::call_traits< LhsDataType >::const_reference rhs

◆ operator==

bool operator== ( const TimeIntegrationSchemeKey lhs,
const TimeIntegrationSchemeKey rhs 
)
friend

Definition at line 52 of file TimeIntegrationScheme.cpp.

53  {
54  return (lhs.m_method == rhs.m_method);
55  }
StandardMatrixTag & lhs
StandardMatrixTag boost::call_traits< LhsDataType >::const_reference rhs

◆ opLess::operator()

bool opLess::operator() ( const TimeIntegrationSchemeKey lhs,
const TimeIntegrationSchemeKey rhs 
) const
friend

Member Data Documentation

◆ m_method

TimeIntegrationMethod Nektar::LibUtilities::TimeIntegrationSchemeKey::m_method
protected