Main MRPT website > C++ reference for MRPT 1.5.7
TNodeAnnotations.h
Go to the documentation of this file.
1 #ifndef TNODEANNOTATIONS_H
2 #define TNODEANNOTATIONS_H
3 
8 #include <iostream>
9 #include <string>
10 
11 namespace mrpt { namespace graphs { namespace detail {
12 
13 /**\brief Abstract class from which NodeAnnotations related classes can be
14  * implemented
15  *
16  * \ingroup mrpt_graphs_grp
17  */
20 
21  /**\brief Constructor */
24  { }
25  /**\brief Destructor */
26  virtual ~TNodeAnnotations() { }
27  /**\brief Generic copy constructor */
29 
30  virtual void getAnnotsAsString(std::string* s) const {
31  ASSERT_(s);
32  }
34  std::string s;
35  this->getAnnotsAsString(&s);
36  return s;
37  }
38 
39  virtual bool operator==(const TNodeAnnotations& other) const {
40  return true;
41  }
42  virtual bool operator!=(const TNodeAnnotations& other) const {
43  return (!(*this == other));
44  }
45 
46  /**\brief Create and return a copy of the TNodeAnnotations object at hand.
47  *
48  * \warning Caller is responsible of afterwards deleting the object which is
49  * allocaed in heap
50  */
52  /**\brief Set the properties of the current TNodeAnnotations object
53  *
54  * \return True if setting the annotations part is successful.
55  */
56  bool setAnnots(const self_t& other) {
57  return true; }
58  /**\brief Indicates if this is a dummy TNodeAnnotations struct or if it does
59  * contain meaningful data
60  */
62 };
63 
64 /////////////////////////////////////////////////////////////////////////////
65 
66 /**\brief Struct to be used as the NODE_ANNOTATIONS template argument in
67  * CNetworkOfPoses class instances for use in multiple-robot SLAM applications
68  *
69  * \ingroup mrpt_graphs_grp
70  */
73  this->is_node_annots_empty = true;
74  }
75 
76 };
77 
78 } } } // end of namespaces
79 
80 // declare as ttypename - in mrpt::utils namespace
81 namespace mrpt { namespace utils {
83 } } // end of namespaces
84 
85 #endif /* end of include guard: TNODEANNOTATIONS_H */
Abstract class from which NodeAnnotations related classes can be implemented.
GLdouble s
Definition: glext.h:3602
GLsizei const GLchar ** string
Definition: glext.h:3919
bool setAnnots(const self_t &other)
Set the properties of the current TNodeAnnotations object.
virtual bool operator==(const TNodeAnnotations &other) const
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
bool is_node_annots_empty
Indicates if this is a dummy TNodeAnnotations struct or if it does contain meaningful data...
TNodeAnnotations * getCopyOfAnnots() const
Create and return a copy of the TNodeAnnotations object at hand.
virtual bool operator!=(const TNodeAnnotations &other) const
#define ASSERT_(f)
virtual void getAnnotsAsString(std::string *s) const
TNodeAnnotations(const TNodeAnnotations &other)
Generic copy constructor.
Struct to be used as the NODE_ANNOTATIONS template argument in CNetworkOfPoses class instances for us...
#define MRPT_DECLARE_TTYPENAME(_TYPE)
Definition: TTypeName.h:60



Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019