|
[Sponsors] |
Why polyBoundaryMesh wasn't made into a nested class? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 6, 2021, 00:26 |
Why polyBoundaryMesh wasn't made into a nested class?
|
#1 |
Senior Member
Mandeep Shetty
Join Date: Apr 2016
Posts: 188
Rep Power: 10 |
I see that polyBoundaryMesh class is used in polyMesh class (has-a relationship) to take care of boundary mesh. Why isn't the polyBoundaryMesh class made into nested class inside the polyMesh class like how the GeometricField:: Boundary is a nested class inside GeometricField and takes care of the boundary fields and related boundary conditions.
|
|
January 6, 2021, 15:13 |
|
#2 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
Stick it on an issue (https://develop.openfoam.com/Develop...nfoam/-/issues).
Can't see any particular advantage to having it nested, but off-hand no particular disadvantage either. BTW: one general issue with nested classes is that it makes them almost impossible to forward declare (this hit us with the profiling classes). Maybe not a factor here, but figured I might mention it anyhow. |
|
January 7, 2021, 13:19 |
|
#3 | |
Senior Member
Mandeep Shetty
Join Date: Apr 2016
Posts: 188
Rep Power: 10 |
Quote:
(I didn't know nested class couldn't be forward declared outside the enclosing class. That helped me learn something new .) |
||
January 8, 2021, 15:22 |
|
#4 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
In the meantime can't really see any advantages for nesting polyBoundaryMesh. Could maybe add as a typedef inside polyMesh I suppose, but still can't see what it helps.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM class declaration error with volScalarField | raunakbardia | OpenFOAM Programming & Development | 0 | June 2, 2019 16:46 |
BasicTurbulenceModel class declaration in OpenFOAM 6 | rod_petrone | OpenFOAM Programming & Development | 3 | April 15, 2019 09:27 |
Extract a member function from a class by using autoPtr | mkhm | OpenFOAM Programming & Development | 9 | November 13, 2018 13:05 |
tailor made class, wmake libso successfully, but run failed. | sharonyue | OpenFOAM Programming & Development | 1 | November 20, 2014 22:49 |
Possible bug in OpenFoam Interpolation class | MMC15 | OpenFOAM Bugs | 2 | March 23, 2014 13:55 |