Field3D
Curve< T >::CheckTEqual Struct Reference

Used when finding values in the m_samples vector. More...

Inheritance diagram for Curve< T >::CheckTEqual:

Public Member Functions

 CheckTEqual (float match)
 
bool operator() (std::pair< float, T > test)
 

Private Attributes

float m_match
 

Detailed Description

template<typename T>
struct Curve< T >::CheckTEqual

Used when finding values in the m_samples vector.

Definition at line 147 of file Curve.h.

Constructor & Destructor Documentation

◆ CheckTEqual()

template<typename T >
Curve< T >::CheckTEqual::CheckTEqual ( float match)
inline

Definition at line 150 of file Curve.h.

151 : m_match(match)
152 { }
bool match(const std::string &name, const std::string &attribute, const std::vector< std::string > &patterns, const MatchFlags flags=MatchEmptyPattern)
Matches a <name>:<attribute> string against a set of patterns.

Member Function Documentation

◆ operator()()

template<typename T >
bool Curve< T >::CheckTEqual::operator() ( std::pair< float, T > test)
inline

Definition at line 153 of file Curve.h.

154 {
155 return test.first == m_match;
156 }

References Curve< T >::CheckTEqual::m_match.

Member Data Documentation

◆ m_match

template<typename T >
float Curve< T >::CheckTEqual::m_match
private

Definition at line 158 of file Curve.h.

Referenced by Curve< T >::CheckTEqual::operator()().


The documentation for this struct was generated from the following file: