BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
INode.cpp File Reference
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 class 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 24 of file INode.cpp.

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

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

Here is the call graph for this function: