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

Public Member Functions

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

Private Attributes

std::vector< unsigned int > * m_vector

Detailed Description

Definition at line 223 of file ParseUtils.hpp.

Constructor & Destructor Documentation

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

Definition at line 225 of file ParseUtils.hpp.

:
m_vector(vec)
{
}

Member Function Documentation

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

Definition at line 230 of file ParseUtils.hpp.

{
unsigned int prevElem = m_vector->back();
for (unsigned int i=prevElem+1; i<=n; ++i)
{
m_vector->push_back(i);
}
}

Member Data Documentation

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

Definition at line 241 of file ParseUtils.hpp.