FMT 1.2.0
Forest management tools for forest planning
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Models::FMTModelComparator Class Reference

Comparator used to compare FMTModel with std::find_if when models are in a stl container. More...

#include <FMTModel.h>

Public Member Functions

 FMTModelComparator (std::string p_name)
 Constructor of the comparator.
 
bool operator() (const FMTModel &model) const
 Return true if the given model matches the name held by the comparator.
 

Detailed Description

Comparator used to compare FMTModel with std::find_if when models are in a stl container.

Constructor & Destructor Documentation

◆ FMTModelComparator()

Models::FMTModelComparator::FMTModelComparator ( std::string  p_name)

Constructor of the comparator.

Parameters
[in]p_namethe name of the model to check for in the stl container.

Member Function Documentation

◆ operator()()

bool Models::FMTModelComparator::operator() ( const FMTModel model) const

Return true if the given model matches the name held by the comparator.

Parameters
[in]modelthe model to compare.
Returns
true if the model name matches else false.

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