phasePairKey Class Reference
Inheritance diagram for phasePairKey:
[legend]
Collaboration diagram for phasePairKey:
[legend]

Classes

class  hash
 Ordered or unordered hashing of word pair. More...
 

Public Member Functions

 phasePairKey ()
 Construct null. More...
 
 phasePairKey (const word &name1, const word &name2, const bool ordered=false)
 Construct from names and optional ordering flag. More...
 
virtual ~phasePairKey ()=default
 Destructor. More...
 
bool ordered () const
 Return the ordered flag. More...
 
 phasePairKey ()
 Construct null. More...
 
 phasePairKey (const word &name1, const word &name2, const bool ordered=false)
 Construct from names and the ordering flag. More...
 
virtual ~phasePairKey ()
 
bool ordered () const
 Return the ordered flag. More...
 
 phasePairKey ()
 Construct null. More...
 
 phasePairKey (const word &name1, const word &name2, const bool ordered)
 Construct from names and the ordering flag. More...
 
virtual ~phasePairKey ()
 Destructor. More...
 
bool ordered () const
 Return the ordered flag. More...
 
- Public Member Functions inherited from Pair< word >
 Pair ()=default
 Default construct. More...
 
 Pair (const word &f, const word &s)
 Copy construct from components. More...
 
 Pair (word &&f, word &&s)
 Move construct from components. More...
 
 Pair (const std::pair< word, word > &vals)
 Copy construct from std::pair. More...
 
 Pair (std::pair< word, word > &&vals)
 Move construct from std::pair. More...
 
 Pair (const FixedList< word, 2 > &list)
 Copy construct FixedList of two items. More...
 
 Pair (const word &f, const word &s, const bool doSort)
 Copy construct, optionally sorted with first less-than second. More...
 
 Pair (const FixedList< word, 2 > &list, const bool doSort)
 Copy construct, optionally sorted with first less-than second. More...
 
 Pair (Istream &is)
 Construct from Istream. More...
 
const wordsecond () const noexcept
 Return second element, which is also the last element. More...
 
wordsecond () noexcept
 Return second element, which is also the last element. More...
 
const wordother (const word &a) const
 Return other element. More...
 
bool sorted () const
 True if first() is less-than second() More...
 
void flip ()
 Flip the Pair in-place. More...
 
void sort ()
 Sort so that first() is less-than second() More...
 

Friends

bool operator== (const phasePairKey &a, const phasePairKey &b)
 Test for equality. More...
 
bool operator!= (const phasePairKey &a, const phasePairKey &b)
 Test for inequality. More...
 
Istreamoperator>> (Istream &is, phasePairKey &key)
 Read from Istream. More...
 
Ostreamoperator<< (Ostream &os, const phasePairKey &key)
 Write to Ostream. More...
 
bool operator== (const phasePairKey &a, const phasePairKey &b)
 Test if keys are equal. More...
 
bool operator!= (const phasePairKey &a, const phasePairKey &b)
 Test if keys are unequal. More...
 
Istreamoperator>> (Istream &is, phasePairKey &key)
 Read from stdin. More...
 
Ostreamoperator<< (Ostream &os, const phasePairKey &key)
 Write to stdout. More...
 
bool operator== (const phasePairKey &a, const phasePairKey &b)
 Test for equality. More...
 
bool operator!= (const phasePairKey &a, const phasePairKey &b)
 Test for inequality. More...
 
Istreamoperator>> (Istream &is, phasePairKey &key)
 Read from Istream. More...
 
Ostreamoperator<< (Ostream &os, const phasePairKey &key)
 Write to Ostream. More...
 

Additional Inherited Members

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

Detailed Description

Source files

Source files

Source files

Definition at line 57 of file phasePairKey.H.

Constructor & Destructor Documentation

◆ phasePairKey() [1/6]

phasePairKey ( )
inline

Construct null.

Definition at line 80 of file phasePairKey.H.

◆ phasePairKey() [2/6]

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

Construct from names and optional ordering flag.

Definition at line 33 of file phasePairKey.C.

◆ ~phasePairKey() [1/3]

~phasePairKey ( )
virtualdefault

Destructor.

Definition at line 54 of file phasePairKey.C.

◆ phasePairKey() [3/6]

Construct null.

◆ phasePairKey() [4/6]

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

Construct from names and the ordering flag.

◆ ~phasePairKey() [2/3]

virtual ~phasePairKey ( )
virtual

◆ phasePairKey() [5/6]

Construct null.

◆ phasePairKey() [6/6]

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

Construct from names and the ordering flag.

◆ ~phasePairKey() [3/3]

virtual ~phasePairKey ( )
virtual

Destructor.

Member Function Documentation

◆ ordered() [1/3]

◆ ordered() [2/3]

bool ordered ( ) const

Return the ordered flag.

◆ ordered() [3/3]

bool ordered ( ) const

Return the ordered flag.

Friends And Related Function Documentation

◆ operator== [1/3]

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

Test for equality.

Referenced by phasePair::const_iterator::operator!=().

◆ operator!= [1/3]

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

Test for inequality.

◆ operator>> [1/3]

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

Read from Istream.

◆ operator<< [1/3]

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

Write to Ostream.

◆ operator== [2/3]

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

Test if keys are equal.

◆ operator!= [2/3]

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

Test if keys are unequal.

◆ operator>> [2/3]

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

Read from stdin.

◆ operator<< [2/3]

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

Write to stdout.

◆ operator== [3/3]

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

Test for equality.

◆ operator!= [3/3]

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

Test for inequality.

◆ operator>> [3/3]

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

Read from Istream.

◆ operator<< [3/3]

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

Write to Ostream.


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