phaseInterfaceKey Class Reference

Word-pair based class used for keying interface models in hash tables. More...

Inheritance diagram for phaseInterfaceKey:
Collaboration diagram for phaseInterfaceKey:

Classes

class  hash
 Hashing class. More...
 

Public Member Functions

 phaseInterfaceKey ()
 Construct null. More...
 
 phaseInterfaceKey (const phaseModel &phase1, const phaseModel &phase2)
 Construct from phases. More...
 
 phaseInterfaceKey (const phaseInterface &interface)
 Construct from phase interface. More...
 
virtual ~phaseInterfaceKey ()
 
- Public Member Functions inherited from Pair< word >
 Pair ()
 Null constructor. More...
 
 Pair (const word &f, const word &s)
 Construct from components. More...
 
 Pair (const FixedList< word, 2 > &fl)
 Construct from FixedList. More...
 
 Pair (Istream &is)
 Construct from Istream. More...
 
const wordfirst () const
 Return first. More...
 
wordfirst ()
 Return first. More...
 
const wordsecond () const
 Return second. More...
 
wordsecond ()
 Return second. More...
 
const wordother (const word &a) const
 Return other. More...
 
- Public Member Functions inherited from FixedList< T, Size >
 FixedList ()
 Null constructor. More...
 
 FixedList (const T &)
 Construct from value. More...
 
 FixedList (const T v[Size])
 Construct from C-array. More...
 
template<class InputIterator >
 FixedList (InputIterator first, InputIterator last)
 Construct given start and end iterators. More...
 
 FixedList (std::initializer_list< T >)
 Construct from an initialiser list. More...
 
 FixedList (const UList< T > &)
 Construct from UList. More...
 
 FixedList (const SLList< T > &)
 Construct from SLList. More...
 
 FixedList (Istream &)
 Construct from Istream. More...
 
autoPtr< FixedList< T, Size > > clone () const
 Clone. More...
 
label fcIndex (const label i) const
 Return the forward circular index, i.e. the next index. More...
 
label rcIndex (const label i) const
 Return the reverse circular index, i.e. the previous index. More...
 
const Tcdata () const
 Return a const pointer to the first data element,. More...
 
Tdata ()
 Return a pointer to the first data element,. More...
 
Tfirst ()
 Return the first element of the list. More...
 
const Tfirst () const
 Return first element of the list. More...
 
Tlast ()
 Return the last element of the list. More...
 
const Tlast () const
 Return the last element of the list. More...
 
void checkStart (const label start) const
 Check start is within valid range (0 ... size-1) More...
 
void checkSize (const label size) const
 Check size is within valid range (0 ... size) More...
 
void checkIndex (const label i) const
 Check index i is within valid range (0 ... size-1) More...
 
void resize (const label)
 Dummy resize function. More...
 
void setSize (const label)
 Dummy setSize function. More...
 
void transfer (const FixedList< T, Size > &)
 Copy (not transfer) the argument contents. More...
 
Toperator[] (const label)
 Return element of FixedList. More...
 
const Toperator[] (const label) const
 Return element of constant FixedList. More...
 
void operator= (const T v[Size])
 Assignment to array operator. Takes linear time. More...
 
void operator= (const UList< T > &)
 Assignment to UList operator. Takes linear time. More...
 
void operator= (const SLList< T > &)
 Assignment to SLList operator. Takes linear time. More...
 
void operator= (std::initializer_list< T >)
 Assignment to an initialiser list. Takes linear time. More...
 
void operator= (const T &)
 Assignment of all entries to the given value. More...
 
iterator begin ()
 Return an iterator to begin traversing the FixedList. More...
 
iterator end ()
 Return an iterator to end traversing the FixedList. More...
 
const_iterator cbegin () const
 Return const_iterator to begin traversing the constant FixedList. More...
 
const_iterator cend () const
 Return const_iterator to end traversing the constant FixedList. More...
 
const_iterator begin () const
 Return const_iterator to begin traversing the constant FixedList. More...
 
const_iterator end () const
 Return const_iterator to end traversing the constant FixedList. More...
 
reverse_iterator rbegin ()
 Return reverse_iterator to begin reverse traversing the FixedList. More...
 
reverse_iterator rend ()
 Return reverse_iterator to end reverse traversing the FixedList. More...
 
const_reverse_iterator crbegin () const
 Return const_reverse_iterator to begin reverse traversing FixedList. More...
 
const_reverse_iterator crend () const
 Return const_reverse_iterator to end reverse traversing FixedList. More...
 
const_reverse_iterator rbegin () const
 Return const_reverse_iterator to begin reverse traversing FixedList. More...
 
const_reverse_iterator rend () const
 Return const_reverse_iterator to end reverse traversing FixedList. More...
 
label size () const
 Return the number of elements in the FixedList. More...
 
label max_size () const
 Return size of the largest possible FixedList. More...
 
bool empty () const
 Return true if the FixedList is empty (ie, size() is zero) More...
 
void swap (FixedList< T, Size > &)
 Swap two FixedLists of the same type in constant time. More...
 
bool operator== (const FixedList< T, Size > &) const
 Equality operation on FixedLists of the same type. More...
 
bool operator!= (const FixedList< T, Size > &) const
 The opposite of the equality operation. Takes linear time. More...
 
bool operator< (const FixedList< T, Size > &) const
 Compare two FixedLists lexicographically. Takes linear time. More...
 
bool operator> (const FixedList< T, Size > &) const
 Compare two FixedLists lexicographically. Takes linear time. More...
 
bool operator<= (const FixedList< T, Size > &) const
 Return true if !(a > b). Takes linear time. More...
 
bool operator>= (const FixedList< T, Size > &) const
 Return true if !(a < b). Takes linear time. More...
 

Friends

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

Additional Inherited Members

- Public Types inherited from FixedList< T, Size >
typedef T value_type
 Type of values the FixedList contains. More...
 
typedef Treference
 Type that can be used for storing into. More...
 
typedef const Tconst_reference
 Type that can be used for storing into. More...
 
typedef label difference_type
 The type that can represent the difference between any two. More...
 
typedef label size_type
 The type that can represent the size of a FixedList. More...
 
typedef Titerator
 Random access iterator for traversing FixedList. More...
 
typedef const Tconst_iterator
 Random access iterator for traversing FixedList. More...
 
typedef std::reverse_iterator< iteratorreverse_iterator
 Reverse iterator for reverse traversal of FixedList. More...
 
typedef std::reverse_iterator< const_iteratorconst_reverse_iterator
 Reverse iterator for reverse traversal of constant FixedList. More...
 
- Static Public Member Functions inherited from Pair< word >
static int compare (const Pair< word > &a, const Pair< word > &b)
 Compare Pairs. More...
 
- Static Public Member Functions inherited from FixedList< T, Size >
static const FixedList< T, Size > & null ()
 Return a null FixedList. More...
 

Detailed Description

Word-pair based class used for keying interface models in hash tables.

Source files

Definition at line 61 of file phaseInterfaceKey.H.

Constructor & Destructor Documentation

◆ phaseInterfaceKey() [1/3]

Construct null.

Definition at line 36 of file phaseInterfaceKey.C.

◆ phaseInterfaceKey() [2/3]

phaseInterfaceKey ( const phaseModel phase1,
const phaseModel phase2 
)

Construct from phases.

Definition at line 40 of file phaseInterfaceKey.C.

◆ phaseInterfaceKey() [3/3]

phaseInterfaceKey ( const phaseInterface interface)

Construct from phase interface.

Definition at line 54 of file phaseInterfaceKey.C.

◆ ~phaseInterfaceKey()

~phaseInterfaceKey ( )
virtual

Definition at line 62 of file phaseInterfaceKey.C.

Friends And Related Function Documentation

◆ operator==

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

Test if keys are equal.

◆ operator!=

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

Test if keys are unequal.

◆ operator>>

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

Read from stream.

◆ operator<<

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

Write to stream.


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