Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Mantid::API::ReferenceEqual Class Reference

Used to find ParameterTie for a parameter i. More...

Public Member Functions

template<class T >
bool operator() (const std::unique_ptr< T > &p)
 Bracket operator. More...
 
 ReferenceEqual (const IFunction &fun, size_t i)
 Constructor. More...
 

Private Attributes

const IFunctionm_fun
 The function that has the tie. More...
 
const size_t m_i
 index to find More...
 

Detailed Description

Used to find ParameterTie for a parameter i.

Definition at line 319 of file IFunction.cpp.

Constructor & Destructor Documentation

◆ ReferenceEqual()

Mantid::API::ReferenceEqual::ReferenceEqual ( const IFunction fun,
size_t  i 
)
inlineexplicit

Constructor.

Definition at line 327 of file IFunction.cpp.

Member Function Documentation

◆ operator()()

template<class T >
bool Mantid::API::ReferenceEqual::operator() ( const std::unique_ptr< T > &  p)
inline

Bracket operator.

Parameters
p:: the element you are looking for
Returns
True if found

Definition at line 331 of file IFunction.cpp.

References Mantid::API::IFunction::getParameterIndex(), m_fun, and m_i.

Member Data Documentation

◆ m_fun

const IFunction& Mantid::API::ReferenceEqual::m_fun
private

The function that has the tie.

Definition at line 321 of file IFunction.cpp.

Referenced by operator()().

◆ m_i

const size_t Mantid::API::ReferenceEqual::m_i
private

index to find

Definition at line 323 of file IFunction.cpp.

Referenced by operator()().


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