Type of dictionaryConstructorTablePtr_
Dear all,
In many parts of OpenFOAM (e.g. src/combustionModels/psiCombustionModel/psiCombustionModel/psiCombustionModelNew.C) the variable dictionaryConstructorTablePtr_ occurs. I would like to know what the class of this variable is, and where on the code it is instantiated. Thanks! |
I found that the variable dictionaryConstructorTablePtr_ that occurs on src/combustionModels/psiCombustionModel/psiCombustionModel/psiCombustionModelNew.C
is of pointer type Foam::combustionModels:: psiCombustionModel::dictionaryConstructorTable* {aka Foam::HashTable<Foam::autoPtr<Foam::combustionMode ls:: psiCombustionModel> (*)(const Foam::word&, const Foam::fvMesh&), Foam::word, Foam::string::hash>*}. So I believe its type varies according to the scope of dictionaryConstructorTablePtr_. |
Quote:
FYI: do not expect to read that stuff in 2 minutes and understand everything immediately - it's a complicated system that uses macros together with nested class templates to register stuff to class-static hash tables. It is not a cookie recipe ;) Work over the source code examples (available on bitbucket ). If you find a bug in the examples, please submit an issue here |
Hello t.oliveira
found another place where it is explained in another way. http://openfoamwiki.net/index.php/Op...tion_mechanism Maybe it helps, Wouter |
Thanks, Tomislav and Wouter.
Tomislav, the series on RTS on sourceflux blog is one of a kind. Please consider making a new chapter out of it to add to the next edition of your book (which has been very useful, by the way). |
Need Help
what is dictionaryConstructorTablePtr_ and dictionaryConstructorTable??
|
All times are GMT -4. The time now is 14:22. |