Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Nektar::ParseUtils::fctor4 Struct Reference
Collaboration diagram for Nektar::ParseUtils::fctor4:
Collaboration graph
[legend]

Public Member Functions

 fctor4 (std::vector< NekDouble > *vec)
 
void operator() (NekDouble n) const
 

Private Member Functions

 fctor4 ()
 

Private Attributes

std::vector< NekDouble > * m_vector
 

Detailed Description

Definition at line 308 of file ParseUtils.hpp.

Constructor & Destructor Documentation

Nektar::ParseUtils::fctor4::fctor4 ( std::vector< NekDouble > *  vec)
inline

Definition at line 310 of file ParseUtils.hpp.

310  :
311  m_vector(vec)
312  {
313  }
std::vector< NekDouble > * m_vector
Definition: ParseUtils.hpp:333
Nektar::ParseUtils::fctor4::fctor4 ( )
private

Member Function Documentation

void Nektar::ParseUtils::fctor4::operator() ( NekDouble  n) const
inline

Definition at line 315 of file ParseUtils.hpp.

316  {
317  if (!m_vector->empty())
318  {
319  NekDouble prevElem = m_vector->back();
320 
321  if (n > prevElem)
322  {
323  m_vector->push_back(n);
324  }
325  }
326  else
327  {
328  m_vector->push_back(n);
329  }
330  }
double NekDouble
std::vector< NekDouble > * m_vector
Definition: ParseUtils.hpp:333

Member Data Documentation

std::vector<NekDouble>* Nektar::ParseUtils::fctor4::m_vector
private

Definition at line 333 of file ParseUtils.hpp.