struct mrpt::graphs::detail::TNodeAnnotations

Overview

Abstract class from which NodeAnnotations related classes can be implemented.

#include <mrpt/graphs/TNodeAnnotations.h>

struct TNodeAnnotations
{
    // construction

    TNodeAnnotations();

    // methods

    virtual bool equal(const TNodeAnnotations& other) const;
    TNodeAnnotations* getCopyOfAnnots() const;
    bool setAnnots(const self_t& other);
};

// direct descendants

struct TMRSlamNodeAnnotations;
struct TNodeAnnotationsEmpty;

Construction

TNodeAnnotations()

Constructor.

Methods

virtual bool equal(const TNodeAnnotations& other) const

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

TNodeAnnotations* getCopyOfAnnots() const

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

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

bool setAnnots(const self_t& other)

Set the properties of the current TNodeAnnotations object.

Returns:

True if setting the annotations part is successful.