CStrand

class odb::CStrand

A Strand to link two Things (Unidirectional)

Inherits from Identifiable< CStrand >

Public Functions

CStrand()

forbidden

CStrand(std::string const &crsName)

Normal constructor requesting a name for the strand.

CStrand(CStrand const&)

and we don’t make copies

Nothings special

CStrand(CStrand&&)

make_shared<T> moveconstructs

PAtom Append(PAtom poAtom)

Appending another atom to the strand.

operator std::string const&()

Function to receive the name of the strand.

void print()

Print the strand in an informational manner.

Public Static Attributes

constexpr auto s_csNameUnnamedStrand = {"unnamedStrand"}

The name of an unnamed strand.

Protected Attributes

std::string m_sName = { s_csNameUnnamedStrand }

The name of an unnamed strand.

CAtoms m_poAtoms

The atoms of the strand.

Friends

std::ostream &operator<<(std::ostream &ros, CStrand const &croStrand)

friend function to send the atoms of the strand to the given stream