OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::SuperCommunicationTagCoordinator< T >::ChannelId Class Reference

#include <superCommunicationTagCoordinator.hh>

+ Collaboration diagram for olb::SuperCommunicationTagCoordinator< T >::ChannelId:

Public Member Functions

 ChannelId (int iC, int jC)
 
bool operator== (const ChannelId &rhs) const
 
bool operator< (const ChannelId &rhs) const
 

Detailed Description

template<typename T>
class olb::SuperCommunicationTagCoordinator< T >::ChannelId

Definition at line 37 of file superCommunicationTagCoordinator.hh.

Constructor & Destructor Documentation

◆ ChannelId()

template<typename T >
olb::SuperCommunicationTagCoordinator< T >::ChannelId::ChannelId ( int iC,
int jC )
inline

Definition at line 43 of file superCommunicationTagCoordinator.hh.

43 :
44 _iC(util::min(iC,jC)),
45 _jC(util::max(iC,jC)) { }
Expr min(Expr a, Expr b)
Definition expr.cpp:249
Expr max(Expr a, Expr b)
Definition expr.cpp:245

Member Function Documentation

◆ operator<()

template<typename T >
bool olb::SuperCommunicationTagCoordinator< T >::ChannelId::operator< ( const ChannelId & rhs) const
inline

Definition at line 53 of file superCommunicationTagCoordinator.hh.

54 {
55 return _iC < rhs._iC
56 || (_iC == rhs._iC && _jC < rhs._jC);
57 }

◆ operator==()

template<typename T >
bool olb::SuperCommunicationTagCoordinator< T >::ChannelId::operator== ( const ChannelId & rhs) const
inline

Definition at line 47 of file superCommunicationTagCoordinator.hh.

48 {
49 return _iC == rhs._iC
50 && _jC == rhs._jC;
51 }

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