Skip to content
Snippets Groups Projects
Commit ee6778cc authored by Jérémie Dudouet's avatar Jérémie Dudouet
Browse files

Merge branch 'preprod' into 'master'

correct latex bugs in the documentation

See merge request tkn/tkn-lib!239
parents eed0cbce a51342f7
No related branches found
Tags v2.0
No related merge requests found
......@@ -53,3 +53,6 @@
* add addition, soustraction, and multiplier operators between tkmeasure objects
### tkn-root
* correction of a bug. No more need to include tkmanager.h to access tkn classes
......@@ -3,7 +3,6 @@ The [TkN data manager](@ref tkn::tkmanager) is key part of the TkN library. It r
Is also allows the user to easily browse the full database via the use of the `gmanager` singleton. For example, we can loop on all the existing nuclei using:
```cpp
#include "tkmanager.h"
for(const auto &nuc : gmanager->get_nuclei()) {
...
}
......@@ -11,7 +10,6 @@ for(const auto &nuc : gmanager->get_nuclei()) {
As seen previously with the levels and decays, we can also use a lambda expression to filter the list of nuclei, e.g. the carbon isotopes:
```cpp
#include "tkmanager.h"
for(const auto &nuc : gmanager->get_nuclei( [](auto nuc) {
return (nuc->get_z()==6 && !nuc->get_level_scheme()->get_levels().empty());
})) {
......@@ -25,7 +23,6 @@ cout << nuc->get_symbol() << " ";
Some tools are also provided to easily loop on the Z or N known ranges:
```cpp
#include "tkmanager.h"
for(const auto &znucs : gmanager->get_map_of_nuclei_per_z()) {
cout<<znucs.first<<" ";
}
......@@ -36,7 +33,6 @@ for(const auto &znucs : gmanager->get_map_of_nuclei_per_z()) {
```
```cpp
#include "tkmanager.h"
auto CarbonIsotopes = gmanager->get_map_of_nuclei_per_z().at(6);
for(auto &nuc : CarbonIsotopes) {
cout<<nuc->get_symbol()<<" ";
......
......@@ -26,6 +26,7 @@ int main(int argc, char** argv)
if(!print_splash_screen()) return EXIT_FAILURE;
myapp->SetPrompt("\u001b[1;34mtkn [%d]\u001b[1;0m ");
myapp->ProcessLine("using namespace tkn;");
myapp->ProcessLine("#include \"tkmanager.h\"");
define_styles();
myapp->Run();
return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment