BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
INode.cpp File Reference

Implements interface INode. More...

Include dependency graph for INode.cpp:

Go to the source code of this file.

Functions

NodeMeta nodeMetaUnion (const std::vector< ParaMeta > &base, const NodeMeta &other)
 

Detailed Description

Implements interface INode.

Homepage:\n http://www.bornagainproject.org
License:\n GNU General Public License v3 or higher (see COPYING)
Authors
Scientific Computing Group at MLZ (see CITATION, AUTHORS)

Definition in file INode.cpp.

Function Documentation

◆ nodeMetaUnion()

NodeMeta nodeMetaUnion ( const std::vector< ParaMeta > &  base,
const NodeMeta other 
)

Definition at line 23 of file INode.cpp.

24 {
25  return {other.className, other.tooltip, algo::concat(base, other.paraMeta)};
26 }
std::vector< T > concat(const std::vector< T > &v1, const std::vector< T > &v2)
Returns the concatenation of two std::vectors.
Definition: Algorithms.h:79
std::string className
Definition: INode.h:39
std::string tooltip
Definition: INode.h:40
std::vector< ParaMeta > paraMeta
Definition: INode.h:41

References NodeMeta::className, algo::concat(), NodeMeta::paraMeta, and NodeMeta::tooltip.

Here is the call graph for this function: