nameOp< T > Struct Template Reference

Extract name (as a word) from an object, typically using its name() method. More...

Inheritance diagram for nameOp< T >:
[legend]

Public Member Functions

word operator() (const T &obj) const
 
bool operator() (const T &a, const T &b) const
 Less-compare two objects by their name() method - for sorting. More...
 

Detailed Description

template<class T>
struct Foam::nameOp< T >

Extract name (as a word) from an object, typically using its name() method.

Definition at line 237 of file word.H.

Member Function Documentation

◆ operator()() [1/2]

word operator() ( const T obj) const
inline

Definition at line 239 of file word.H.

◆ operator()() [2/2]

bool operator() ( const T a,
const T b 
) const
inline

Less-compare two objects by their name() method - for sorting.

Definition at line 245 of file word.H.

References b, and IOobject::name().

Here is the call graph for this function:

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