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 270 of file ParseUtils.hpp.

Constructor & Destructor Documentation

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

Definition at line 272 of file ParseUtils.hpp.

272  :
273  m_vector(vec)
274  {
275  }
std::vector< unsigned int > * m_vector
Definition: ParseUtils.hpp:288

Member Function Documentation

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

Definition at line 277 of file ParseUtils.hpp.

278  {
279  unsigned int prevElem = m_vector->back();
280 
281  for (unsigned int i=prevElem+1; i<=n; ++i)
282  {
283  m_vector->push_back(i);
284  }
285  }
std::vector< unsigned int > * m_vector
Definition: ParseUtils.hpp:288

Member Data Documentation

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

Definition at line 288 of file ParseUtils.hpp.