mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
STYLE: add edge(labelPair) constructor, debug info etc.
This commit is contained in:
@ -67,6 +67,17 @@ int main(int argc, char *argv[])
|
||||
|
||||
Info<< e3 << " connects " << e2 << " => " << e2.connects(e3) << endl;
|
||||
|
||||
labelPair labels(e3);
|
||||
|
||||
Info<< "as labelPair: " << labels << endl;
|
||||
|
||||
edge e5;
|
||||
// Good: this fails (explicit constructor): printInfo(labels);
|
||||
// Good: this also fails (no assignment operator): e5 = labels;
|
||||
|
||||
// OK: explicit
|
||||
edge e6(labels);
|
||||
|
||||
Info<< nl << "hash-like functionality" << nl;
|
||||
|
||||
// doesn't work e4 = -1;
|
||||
|
||||
Reference in New Issue
Block a user