Classes | Public Member Functions | Static Public Member Functions | List of all members
natural_sort Struct Reference

Classes

struct  greater
 
struct  less
 
struct  reverse
 

Public Member Functions

bool operator() (const std::string &s1, const std::string &s2) const
 

Static Public Member Functions

static int compare (const std::string &s1, const std::string &s2)
 

Detailed Description

Definition at line 58 of file stringOpsSort.H.

Member Function Documentation

◆ compare()

static int compare ( const std::string &  s1,
const std::string &  s2 
)
inlinestatic

Definition at line 63 of file stringOpsSort.H.

References Foam::stringOps::natstrcmp().

Referenced by seriesLess::operator()(), natural_sort::operator()(), natural_sort::reverse::operator()(), natural_sort::less< T >::operator()(), and natural_sort::greater< T >::operator()().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator()()

bool operator() ( const std::string &  s1,
const std::string &  s2 
) const
inline

Definition at line 72 of file stringOpsSort.H.

References natural_sort::compare().

Here is the call graph for this function:

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