Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 239 of file ParseUtils.hpp.

Constructor & Destructor Documentation

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

Definition at line 241 of file ParseUtils.hpp.

241  :
242  m_vector(vec)
243  {
244  }
std::vector< unsigned int > * m_vector
Definition: ParseUtils.hpp:266
Nektar::ParseUtils::fctor1::fctor1 ( )
private

Member Function Documentation

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

Definition at line 246 of file ParseUtils.hpp.

247  {
248 #ifdef NOTREQUIRED //SJS: I do not think we need this check
249  if (!m_vector->empty())
250  {
251  unsigned int prevElem = m_vector->back();
252 
253  if (n > prevElem)
254  {
255  m_vector->push_back(n);
256  }
257  }
258  else
259 #endif
260  {
261  m_vector->push_back(n);
262  }
263  }
std::vector< unsigned int > * m_vector
Definition: ParseUtils.hpp:266

Member Data Documentation

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

Definition at line 266 of file ParseUtils.hpp.