ENH: Foam::name() of memory address

- returns the memory address formatted in hexadecimal, which can be
  useful for detailed information
This commit is contained in:
Mark Olesen
2019-08-12 10:46:29 +02:00
committed by Andrew Heather
parent 3870b1d43c
commit 3c07a1bb6f
25 changed files with 109 additions and 104 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2017 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2017-2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2016 OpenFOAM Foundation
@ -50,7 +50,7 @@ void printInfo
Info<< " size=\"" << lst.size() << "\"";
if (lst.cdata())
{
Info<< " ptr=\"" << uintptr_t(lst.cdata()) << "\"";
Info<< " ptr=\"" << name(lst.cdata()) << "\"";
}
else
{
@ -76,7 +76,7 @@ void printInfo
<< "\" capacity=\"" << lst.capacity() << "\"";
if (lst.cdata())
{
Info<< " ptr=\"" << uintptr_t(lst.cdata()) << "\"";
Info<< " ptr=\"" << name(lst.cdata()) << "\"";
}
else
{