Class to determine the 'oriented' status of surface fields. More...
#include <orientedType.H>

Public Types | |
| enum | orientedOption : unsigned char { UNKNOWN = 0 , ORIENTED = 1 , UNORIENTED = 2 } |
| Enumeration defining oriented flags. More... | |
Public Member Functions | |
| orientedType (const orientedType &) noexcept=default | |
| Copy construct. | |
| orientedType & | operator= (const orientedType &) noexcept=default |
| Copy assignment. | |
| constexpr | orientedType () noexcept |
Default construct as UNKNOWN. | |
| orientedType (orientedOption opt) noexcept | |
| Implicit construct from enumeration. | |
| constexpr | orientedType (const bool isOriented) noexcept |
| Construct from bool. | |
| orientedType (Istream &is) | |
| Construct from Istream. | |
| orientedOption | oriented () const noexcept |
| Return the oriented flag. | |
| orientedOption & | oriented () noexcept |
| Return non-const reference to the oriented flag. | |
| bool | is_oriented () const noexcept |
True if ORIENTED. | |
| void | setOriented (bool on=true) noexcept |
| Set the oriented flag: on/off. | |
| void | read (const dictionary &dict) |
| Read the "oriented" state from dictionary. | |
| bool | writeEntry (Ostream &os) const |
Write the "oriented" flag entry (if ORIENTED). | |
| void | operator+= (const orientedType &ot) |
| void | operator-= (const orientedType &ot) |
| void | operator*= (const orientedType &ot) |
| void | operator/= (const orientedType &ot) |
| void | operator*= (const scalar s) |
| void | operator/= (const scalar s) |
| bool | operator() () const noexcept |
| Convert to bool. Same as is_oriented(). | |
Static Public Member Functions | |
| static bool | checkType (const orientedType &a, const orientedType &b) noexcept |
| True if can operate on this combination of oriented types. | |
Static Public Attributes | |
| static const Enum< orientedOption > | orientedOptionNames |
| Named enumerations for oriented flags. | |
Friends | |
| Istream & | operator>> (Istream &is, orientedType &ot) |
| Ostream & | operator<< (Ostream &os, const orientedType &ot) |
Class to determine the 'oriented' status of surface fields.
Definition at line 52 of file orientedType.H.
| enum orientedOption : unsigned char |
Enumeration defining oriented flags.
| Enumerator | |
|---|---|
| UNKNOWN | Unknown/undefined orientation. |
| ORIENTED | Is oriented. |
| UNORIENTED | Is unoriented. |
Definition at line 61 of file orientedType.H.
|
defaultnoexcept |
Copy construct.
References orientedType().
Referenced by checkType(), operator*=(), operator+=(), operator-=(), operator/=(), operator<<, operator=(), operator>>, and orientedType().


|
inlineconstexprnoexcept |
Default construct as UNKNOWN.
Definition at line 107 of file orientedType.H.
References Foam::noexcept, and UNKNOWN.
|
inlinenoexcept |
Implicit construct from enumeration.
Definition at line 115 of file orientedType.H.
References Foam::noexcept.
|
inlineexplicitconstexprnoexcept |
Construct from bool.
Definition at line 123 of file orientedType.H.
References Foam::noexcept, ORIENTED, and UNORIENTED.
|
explicit |
Construct from Istream.
Definition at line 94 of file orientedType.C.
References IOstream::check(), FUNCTION_NAME, orientedOptionNames, and read().

|
defaultnoexcept |
|
staticnoexcept |
True if can operate on this combination of oriented types.
Definition at line 42 of file orientedType.C.
References b, orientedType(), and UNKNOWN.

|
inlinenoexcept |
Return the oriented flag.
Definition at line 148 of file orientedType.H.
References Foam::noexcept.
Referenced by Foam::checkTypes(), operator+=(), operator-=(), and Foam::operator<<().

|
inlinenoexcept |
Return non-const reference to the oriented flag.
Definition at line 153 of file orientedType.H.
References Foam::noexcept.
|
inlinenoexcept |
True if ORIENTED.
Definition at line 158 of file orientedType.H.
References Foam::noexcept, and ORIENTED.
Referenced by Foam::lerp(), operator()(), operator*=(), and operator/=().

|
inlinenoexcept |
Set the oriented flag: on/off.
Definition at line 163 of file orientedType.H.
References Foam::noexcept, ORIENTED, and UNORIENTED.
| void read | ( | const dictionary & | dict | ) |
Read the "oriented" state from dictionary.
Definition at line 104 of file orientedType.C.
References dict, orientedOptionNames, and UNKNOWN.
Referenced by orientedType().

| bool writeEntry | ( | Ostream & | os | ) | const |
Write the "oriented" flag entry (if ORIENTED).
Definition at line 116 of file orientedType.C.
References ORIENTED, orientedOptionNames, and os().

| void operator+= | ( | const orientedType & | ot | ) |
Definition at line 131 of file orientedType.C.
References Foam::checkTypes(), oriented(), orientedType(), and UNKNOWN.

| void operator-= | ( | const orientedType & | ot | ) |
Definition at line 143 of file orientedType.C.
References Foam::checkTypes(), oriented(), orientedType(), and UNKNOWN.

| void operator*= | ( | const orientedType & | ot | ) |
Definition at line 155 of file orientedType.C.
References is_oriented(), orientedType(), and setOriented().

| void operator/= | ( | const orientedType & | ot | ) |
Definition at line 161 of file orientedType.C.
References is_oriented(), orientedType(), and setOriented().

| void operator*= | ( | const scalar | s | ) |
Definition at line 167 of file orientedType.C.
References s().

| void operator/= | ( | const scalar | s | ) |
Definition at line 173 of file orientedType.C.
References s().

|
inlinenoexcept |
Convert to bool. Same as is_oriented().
Definition at line 193 of file orientedType.H.
References is_oriented(), and Foam::noexcept.

|
friend |
References orientedType().
|
friend |
References orientedType(), and os().
|
static |
Named enumerations for oriented flags.
Definition at line 74 of file orientedType.H.
Referenced by Foam::checkTypes(), Foam::operator<<(), Foam::operator>>(), orientedType(), read(), and writeEntry().