Struct TNodeAnnotations

Inheritance Relationships

Derived Type

Struct Documentation

struct TNodeAnnotations

Abstract class from which NodeAnnotations related classes can be implemented.

Subclassed by mrpt::graphs::detail::TNodeAnnotationsEmpty

Public Types

using self_t = TNodeAnnotations

Public Functions

TNodeAnnotations() = default

Constructor.

virtual ~TNodeAnnotations() = default

Destructor.

inline virtual void getAnnotsAsString(std::string *s) const
inline std::string retAnnotsAsString() const
inline virtual bool equal(const TNodeAnnotations &other) const

Used inside the operator==() of derived types:

inline TNodeAnnotations *getCopyOfAnnots() const

Create and return a copy of the TNodeAnnotations object at hand.

Warning

Caller is responsible of afterwards deleting the object which is allocaed in heap

inline bool setAnnots(const self_t &other)

Set the properties of the current TNodeAnnotations object.

Returns:

True if setting the annotations part is successful.

Public Members

bool is_node_annots_empty = {false}

Indicates if this is a dummy TNodeAnnotations struct or if it does contain meaningful data.