Record of a collision between the particle holding the record and the particle with the stored id. More...
#include <PairCollisionRecord.H>

Public Member Functions | |
| PairCollisionRecord () | |
| Construct null. | |
| PairCollisionRecord (bool accessed, label origProcOfOther, label origIdOfOther, const Type &data=Type(Zero)) | |
| Construct from components. | |
| PairCollisionRecord (Istream &) | |
| Construct from Istream. | |
| PairCollisionRecord (const PairCollisionRecord &) | |
| Construct as copy. | |
| ~PairCollisionRecord () | |
| Destructor. | |
| label | origProcOfOther () const |
| Return the origProcOfOther data. | |
| label | origIdOfOther () const |
| Return the origIdOfOther data. | |
| const Type & | collisionData () const |
| Return access to the collision data. | |
| Type & | collisionData () |
| Return access to the collision data. | |
| bool | match (label queryOrigProcOfOther, label queryOrigIdOfOther) const |
| bool | accessed () const |
| Return the accessed status of the record. | |
| void | setAccessed () |
| Set the accessed property of the record to accessed. | |
| void | setUnaccessed () |
| Set the accessed property of the record to unaccessed. | |
| void | operator= (const PairCollisionRecord &) |
Friends | |
| bool | operator== (const PairCollisionRecord< Type > &, const PairCollisionRecord< Type > &) |
| bool | operator!= (const PairCollisionRecord< Type > &, const PairCollisionRecord< Type > &) |
| Istream & | operator>> (Istream &, PairCollisionRecord< Type > &) |
| Ostream & | operator<< (Ostream &, const PairCollisionRecord< Type > &) |
Record of a collision between the particle holding the record and the particle with the stored id.
The access status of the record is to be coded in the origProcOfOther data member. The actual processor is offset by +1. A negative value means that the record has not been accessed, positive means that it has.
Definition at line 82 of file PairCollisionRecord.H.
| PairCollisionRecord | ( | ) |
Construct null.
Definition at line 27 of file PairCollisionRecord.C.
References Foam::Zero.
Referenced by operator!=, operator<<, operator=(), operator==, operator>>, and PairCollisionRecord().

| PairCollisionRecord | ( | bool | accessed, |
| label | origProcOfOther, | ||
| label | origIdOfOther, | ||
| const Type & | data = Type(Zero) ) |
Construct from components.
Definition at line 36 of file PairCollisionRecord.C.
References accessed(), origIdOfOther(), origProcOfOther(), and setUnaccessed().

| PairCollisionRecord | ( | Istream & | is | ) |
Construct from Istream.
Definition at line 27 of file PairCollisionRecordIO.C.
References IOstream::check(), FUNCTION_NAME, and Foam::readLabel().

| PairCollisionRecord | ( | const PairCollisionRecord< Type > & | ) |
| ~PairCollisionRecord | ( | ) |
Destructor.
Definition at line 72 of file PairCollisionRecord.C.
|
inline |
Return the origProcOfOther data.
Definition at line 39 of file PairCollisionRecordI.H.
References Foam::mag().
Referenced by match(), PairCollisionRecord(), setAccessed(), and setUnaccessed().


|
inline |
Return the origIdOfOther data.
Definition at line 46 of file PairCollisionRecordI.H.
Referenced by match(), and PairCollisionRecord().

|
inline |
Return access to the collision data.
Definition at line 54 of file PairCollisionRecordI.H.
|
inline |
Return access to the collision data.
Definition at line 61 of file PairCollisionRecordI.H.
|
inline |
Definition at line 24 of file PairCollisionRecordI.H.
References origIdOfOther(), and origProcOfOther().
Referenced by CollisionRecordList< PairType, WallType >::checkPairRecord(), and CollisionRecordList< PairType, WallType >::matchPairRecord().


|
inline |
Return the accessed status of the record.
Definition at line 68 of file PairCollisionRecordI.H.
References Foam::pos0().
Referenced by PairCollisionRecord().


|
inline |
Set the accessed property of the record to accessed.
Definition at line 75 of file PairCollisionRecordI.H.
References origProcOfOther().
Referenced by CollisionRecordList< PairType, WallType >::matchPairRecord().


|
inline |
Set the accessed property of the record to unaccessed.
Definition at line 82 of file PairCollisionRecordI.H.
References origProcOfOther().
Referenced by PairCollisionRecord().


| void operator= | ( | const PairCollisionRecord< Type > & | ) |
Definition at line 79 of file PairCollisionRecord.C.
References PairCollisionRecord(), and Foam::rhs().

|
friend |
References PairCollisionRecord().
|
friend |
References PairCollisionRecord().
|
friend |
References PairCollisionRecord().
|
friend |
References PairCollisionRecord().