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 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.

:
m_vector(vec)
{
}
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.

{
if (!m_vector->empty())
{
NekDouble prevElem = m_vector->back();
if (n > prevElem)
{
m_vector->push_back(n);
}
}
else
{
m_vector->push_back(n);
}
}

Member Data Documentation

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

Definition at line 286 of file ParseUtils.hpp.