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

194  :
195  m_vector(vec)
196  {
197  }
std::vector< unsigned int > * m_vector
Definition: ParseUtils.hpp:219
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.

200  {
201 #ifdef NOTREQUIRED //SJS: I do not think we need this check
202  if (!m_vector->empty())
203  {
204  unsigned int prevElem = m_vector->back();
205 
206  if (n > prevElem)
207  {
208  m_vector->push_back(n);
209  }
210  }
211  else
212 #endif
213  {
214  m_vector->push_back(n);
215  }
216  }
std::vector< unsigned int > * m_vector
Definition: ParseUtils.hpp:219

Member Data Documentation

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

Definition at line 219 of file ParseUtils.hpp.