ENH: boolVector for specialized bundling of boolean values
- bundled of boolean values as a vector of 3 components with element access using x(), y() and z() member functions. It also has some methods similar to bitSet. - Not derived from Vector or VectorSpace since it does not share very many vector-like characteristics.
- applications/test/boolVector/Make/files 3 additions, 0 deletionsapplications/test/boolVector/Make/files
- applications/test/boolVector/Make/options 2 additions, 0 deletionsapplications/test/boolVector/Make/options
- applications/test/boolVector/Test-boolVector.C 89 additions, 0 deletionsapplications/test/boolVector/Test-boolVector.C
- src/OpenFOAM/primitives/Vector/boolVector/boolVector.H 182 additions, 0 deletionssrc/OpenFOAM/primitives/Vector/boolVector/boolVector.H
- src/OpenFOAM/primitives/Vector/boolVector/boolVectorI.H 136 additions, 0 deletionssrc/OpenFOAM/primitives/Vector/boolVector/boolVectorI.H
-
@vaggelisp - FYI: I also put this in for you (eg, NURBS3DVolume).
Figured that it makes sense to have a
List<boolVector>
instead. It will also make it a bit more natural if you can usex(), y(), z()
accessors. There are some additional methods such asall(), any(), none()
for convenience.Let me know if there are any others that would be useful.
/mark
-
Hi @mark
This look very handy, thanks! I'll update NURBS3DVolume soon, but possibly after v2006 since things are a bit tight at the moment. If I think of something like this that would be useful, I'll let you know.
-
yes definitely not for v2006 release (not a bug in the existing code), but figured I would jot it down here before forgetting.
Edited by Mark OLESEN