Used to manipulate a group of Result objects., especially inside NAGASH::Job.
More...
#include "NAGASH/ResultGroup.h"
Used to manipulate a group of Result objects., especially inside NAGASH::Job.
Definition at line 19 of file ResultGroup.h.
◆ ResultGroup() [1/2]
NAGASH::ResultGroup::ResultGroup |
( |
std::shared_ptr< MSGTool > |
MSG, |
|
|
std::shared_ptr< ConfigTool > |
c |
|
) |
| |
|
inline |
◆ ResultGroup() [2/2]
NAGASH::ResultGroup::ResultGroup |
( |
| ) |
|
|
delete |
◆ ~ResultGroup()
NAGASH::ResultGroup::~ResultGroup |
( |
| ) |
|
|
default |
◆ AddResult()
void ResultGroup::AddResult |
( |
std::shared_ptr< Result > |
result | ) |
|
Add a result to the group.
- Parameters
-
result | the pointer of the result. |
Definition at line 11 of file ResultGroup.cxx.
◆ BookResult()
template<typename R , typename... Args>
std::shared_ptr< R > NAGASH::ResultGroup::BookResult |
( |
const TString & |
rname, |
|
|
const TString & |
fname = "" , |
|
|
Args &&... |
args |
|
) |
| |
|
inline |
Book a result in this ResultGroup.
- Template Parameters
-
R | the type of the result. |
...Args | types of other arguments to construct the result. Can be automatically deduced. |
- Parameters
-
rname | the name of the result. |
fname | the output file name of the result. |
...args | other arguments to construct the result. |
- Returns
Definition at line 58 of file ResultGroup.h.
◆ Get()
template<typename R >
std::shared_ptr< R > NAGASH::ResultGroup::Get |
( |
const TString & |
name | ) |
|
|
inline |
Get the result with the given name. If the given name is not find, the search will turn to fuzzy search mode, see MapTool::FindMostSimilar().
- Template Parameters
-
- Parameters
-
- Returns
- the pointer of the result. Will return nullptr if the result does not exist.
Definition at line 85 of file ResultGroup.h.
◆ Merge()
void ResultGroup::Merge |
( |
std::shared_ptr< ResultGroup > |
subGroup | ) |
|
◆ Write()
void ResultGroup::Write |
( |
| ) |
|
◆ config
std::shared_ptr<ConfigTool> NAGASH::ResultGroup::config |
|
private |
◆ maptool
MapTool NAGASH::ResultGroup::maptool |
|
private |
◆ msg
std::shared_ptr<MSGTool> NAGASH::ResultGroup::msg |
|
private |
◆ ResultMap
std::map<TString, std::shared_ptr<Result> > NAGASH::ResultGroup::ResultMap |
|
private |
The documentation for this class was generated from the following files: