STYLE: return orientedType, Switch directly instead of const reference

- noexcept on some Time methods

ENH: pass through is_oriented() method for clearer coding

- use logical and/or/xor instead of bitwise versions (clearer intent)
This commit is contained in:
Mark Olesen
2022-08-23 15:58:32 +02:00
parent 867b5e9060
commit ea51c2c0e4
22 changed files with 114 additions and 160 deletions

View File

@ -303,31 +303,31 @@ public:
}
//- Pure free-surface
const Switch& pureFreeSurface() const
Switch pureFreeSurface() const noexcept
{
return pureFreeSurface_;
}
//- Rigid free-surface
const Switch& rigidFreeSurface() const
Switch rigidFreeSurface() const noexcept
{
return rigidFreeSurface_;
}
//- Rigid free-surface
Switch& rigidFreeSurface()
Switch& rigidFreeSurface() noexcept
{
return rigidFreeSurface_;
}
//- Correct contact line point normals
const Switch& correctContactLineNormals() const
Switch correctContactLineNormals() const noexcept
{
return correctContactLineNormals_;
}
//- Correct contact line point normals
Switch& correctContactLineNormals()
Switch& correctContactLineNormals() noexcept
{
return correctContactLineNormals_;
}