Nektar++
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 261 of file ParseUtils.hpp.

Constructor & Destructor Documentation

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

Definition at line 263 of file ParseUtils.hpp.

263  :
264  m_vector(vec)
265  {
266  }
std::vector< NekDouble > * m_vector
Definition: ParseUtils.hpp:286
Nektar::ParseUtils::fctor4::fctor4 ( )
private

Member Function Documentation

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

Definition at line 268 of file ParseUtils.hpp.

269  {
270  if (!m_vector->empty())
271  {
272  NekDouble prevElem = m_vector->back();
273 
274  if (n > prevElem)
275  {
276  m_vector->push_back(n);
277  }
278  }
279  else
280  {
281  m_vector->push_back(n);
282  }
283  }
double NekDouble
std::vector< NekDouble > * m_vector
Definition: ParseUtils.hpp:286

Member Data Documentation

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

Definition at line 286 of file ParseUtils.hpp.