COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Public Member Functions | List of all members
Map< KEY, DATA >::LessThan Class Reference

Public Member Functions

bool operator() (const std::pair< KEY, DATA > &p1, const std::pair< KEY, DATA > &p2) const
 

Detailed Description

template<typename KEY, typename DATA>
class cf3::common::Map< KEY, DATA >::LessThan

This class represents a functor object that is passed as an argument in the std::sort algo to compare two given pairs.

Postcondition
the pairs are sorted in such a way that their KEYs are listed in increasing order.
Author
Andrea Lani

Definition at line 210 of file Map.hpp.

Member Function Documentation

bool operator() ( const std::pair< KEY, DATA > &  p1,
const std::pair< KEY, DATA > &  p2 
) const
inline

Overloading of the operator() that makes this class acting as a functor

Parameters
p1pair to be used as first term of comparison
p2pair to be used as second term of comparison
Returns
true if(p1.first < p2.first)
false if(p1.first >= p2.first)
Postcondition
the pairs will be ordered according to the increasing order of their keys
sortKeys() uses these function to order the inserted pairs

Definition at line 221 of file Map.hpp.


The documentation for this class was generated from the following file:
Send comments to:
COOLFluiD Web Admin