46 std::optional<Size> parent = std::nullopt,
47 const std::string& linkage =
"");
A rooted glycan tree, with the reducing-end monosaccharide at node zero.
Definition GlycanStructure.h:27
std::vector< Node > nodes_
Definition GlycanStructure.h:55
ProForma::GlycanComposition::Monosaccharide monosaccharide
Definition GlycanStructure.h:32
std::string linkage
Definition GlycanStructure.h:34
ProForma::GlycanComposition getComposition() const
Return the composition, retaining named and formula components.
Size addMonosaccharide(const ProForma::GlycanComposition::Monosaccharide &monosaccharide, std::optional< Size > parent=std::nullopt, const std::string &linkage="")
Add the root or a child and return its stable index.
const std::vector< Node > & getNodes() const
Return the nodes in insertion order.
std::optional< Size > parent
Definition GlycanStructure.h:33
A monosaccharide and its linkage towards the reducing end.
Definition GlycanStructure.h:31
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition Types.h:97
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19