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

225  :
226  m_vector(vec)
227  {
228  }
std::vector< unsigned int > * m_vector
Definition: ParseUtils.hpp:241

Member Function Documentation

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

Definition at line 230 of file ParseUtils.hpp.

231  {
232  unsigned int prevElem = m_vector->back();
233 
234  for (unsigned int i=prevElem+1; i<=n; ++i)
235  {
236  m_vector->push_back(i);
237  }
238  }
std::vector< unsigned int > * m_vector
Definition: ParseUtils.hpp:241

Member Data Documentation

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

Definition at line 241 of file ParseUtils.hpp.