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::fctor1 Struct Reference
Collaboration diagram for Nektar::ParseUtils::fctor1:
Collaboration graph
[legend]

Public Member Functions

 fctor1 (std::vector< unsigned int > *vec)
void operator() (unsigned int n) const

Private Member Functions

 fctor1 ()

Private Attributes

std::vector< unsigned int > * m_vector

Detailed Description

Definition at line 192 of file ParseUtils.hpp.

Constructor & Destructor Documentation

Nektar::ParseUtils::fctor1::fctor1 ( std::vector< unsigned int > *  vec)
inline

Definition at line 194 of file ParseUtils.hpp.

:
m_vector(vec)
{
}
Nektar::ParseUtils::fctor1::fctor1 ( )
private

Member Function Documentation

void Nektar::ParseUtils::fctor1::operator() ( unsigned int  n) const
inline

Definition at line 199 of file ParseUtils.hpp.

{
#ifdef NOTREQUIRED //SJS: I do not think we need this check
if (!m_vector->empty())
{
unsigned int prevElem = m_vector->back();
if (n > prevElem)
{
m_vector->push_back(n);
}
}
else
#endif
{
m_vector->push_back(n);
}
}

Member Data Documentation

std::vector<unsigned int>* Nektar::ParseUtils::fctor1::m_vector
private

Definition at line 219 of file ParseUtils.hpp.