Classes | Public Types | Public Member Functions | Friends | List of all members
phasePairKey Class Reference

An ordered or unorder pair of phase names. Typically specified as follows. More...

Inheritance diagram for phasePairKey:
Inheritance graph
[legend]
Collaboration diagram for phasePairKey:
Collaboration graph
[legend]

Classes

struct  hasher
 

Public Types

using hash = phasePairKey::hasher
 
using hash = phasePairKey::hasher
 
using hash = phasePairKey::hasher
 

Public Member Functions

 phasePairKey ()=default
 
 phasePairKey (const word &name1, const word &name2, const bool ordered=false)
 
virtual ~phasePairKey ()=default
 
bool ordered () const noexcept
 
 phasePairKey ()=default
 
 phasePairKey (const word &name1, const word &name2, const bool ordered=false)
 
virtual ~phasePairKey ()=default
 
bool ordered () const noexcept
 
 phasePairKey ()=default
 
 phasePairKey (const word &name1, const word &name2, const bool ordered=false)
 
virtual ~phasePairKey ()=default
 
bool ordered () const noexcept
 
- Public Member Functions inherited from Pair< word >
 Pair ()=default
 
 Pair (const T &f, const T &s)
 
 Pair (T &&f, T &&s)
 
 Pair (const std::pair< T, T > &vals)
 
 Pair (std::pair< T, T > &&vals)
 
 Pair (const FixedList< T, 2 > &list)
 
 Pair (const T &f, const T &s, const bool doSort)
 
 Pair (const FixedList< T, 2 > &list, const bool doSort)
 
 Pair (Istream &is)
 
const Tsecond () const noexcept
 
Tsecond () noexcept
 
const Tother (const T &a) const
 
bool sorted () const
 
void flip ()
 
void sort ()
 

Friends

bool operator== (const phasePairKey &a, const phasePairKey &b)
 
bool operator!= (const phasePairKey &a, const phasePairKey &b)
 
Istreamoperator>> (Istream &is, phasePairKey &key)
 
Ostreamoperator<< (Ostream &os, const phasePairKey &key)
 
bool operator== (const phasePairKey &a, const phasePairKey &b)
 
bool operator!= (const phasePairKey &a, const phasePairKey &b)
 
Istreamoperator>> (Istream &is, phasePairKey &key)
 
Ostreamoperator<< (Ostream &os, const phasePairKey &key)
 
bool operator== (const phasePairKey &a, const phasePairKey &b)
 
bool operator!= (const phasePairKey &a, const phasePairKey &b)
 
Istreamoperator>> (Istream &is, phasePairKey &key)
 
Ostreamoperator<< (Ostream &os, const phasePairKey &key)
 

Additional Inherited Members

- Static Public Member Functions inherited from Pair< word >
static int compare (const Pair< T > &a, const Pair< T > &b)
 

Detailed Description

An ordered or unorder pair of phase names. Typically specified as follows.

   (phase1 and phase2)  // unordered
   (phase1 to  phase2)  // ordered
Source files

   (phase1 and phase2)  // unordered
   (phase1 in  phase2)  // ordered
Source files

   (phase1 and phase2)  // unordered
   (phase1 in  phase2)  // ordered
Source files

Definition at line 61 of file phasePairKey.H.

Member Typedef Documentation

◆ hash [1/3]

Definition at line 134 of file phasePairKey.H.

◆ hash [2/3]

Definition at line 134 of file phasePairKey.H.

◆ hash [3/3]

Definition at line 134 of file phasePairKey.H.

Constructor & Destructor Documentation

◆ phasePairKey() [1/6]

phasePairKey ( )
default

◆ phasePairKey() [2/6]

phasePairKey ( const word name1,
const word name2,
const bool  ordered = false 
)

Definition at line 27 of file phasePairKey.C.

◆ ~phasePairKey() [1/3]

virtual ~phasePairKey ( )
virtualdefault

◆ phasePairKey() [3/6]

phasePairKey ( )
default

◆ phasePairKey() [4/6]

phasePairKey ( const word name1,
const word name2,
const bool  ordered = false 
)

◆ ~phasePairKey() [2/3]

virtual ~phasePairKey ( )
virtualdefault

◆ phasePairKey() [5/6]

phasePairKey ( )
default

◆ phasePairKey() [6/6]

phasePairKey ( const word name1,
const word name2,
const bool  ordered = false 
)

◆ ~phasePairKey() [3/3]

virtual ~phasePairKey ( )
virtualdefault

Member Function Documentation

◆ ordered() [1/3]

bool ordered ( ) const
inlinenoexcept

◆ ordered() [2/3]

bool ordered ( ) const
inlinenoexcept

Definition at line 94 of file phasePairKey.H.

◆ ordered() [3/3]

bool ordered ( ) const
inlinenoexcept

Definition at line 94 of file phasePairKey.H.

Friends And Related Function Documentation

◆ operator== [1/3]

bool operator== ( const phasePairKey a,
const phasePairKey b 
)
friend

◆ operator!= [1/3]

bool operator!= ( const phasePairKey a,
const phasePairKey b 
)
friend

◆ operator>> [1/3]

Istream& operator>> ( Istream is,
phasePairKey key 
)
friend

◆ operator<< [1/3]

Ostream& operator<< ( Ostream os,
const phasePairKey key 
)
friend

◆ operator== [2/3]

bool operator== ( const phasePairKey a,
const phasePairKey b 
)
friend

◆ operator!= [2/3]

bool operator!= ( const phasePairKey a,
const phasePairKey b 
)
friend

◆ operator>> [2/3]

Istream& operator>> ( Istream is,
phasePairKey key 
)
friend

◆ operator<< [2/3]

Ostream& operator<< ( Ostream os,
const phasePairKey key 
)
friend

◆ operator== [3/3]

bool operator== ( const phasePairKey a,
const phasePairKey b 
)
friend

◆ operator!= [3/3]

bool operator!= ( const phasePairKey a,
const phasePairKey b 
)
friend

◆ operator>> [3/3]

Istream& operator>> ( Istream is,
phasePairKey key 
)
friend

◆ operator<< [3/3]

Ostream& operator<< ( Ostream os,
const phasePairKey key 
)
friend

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