Main MRPT website > C++ reference for MRPT 1.5.6
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 */
TNodeAnnotations * getCopyOfAnnots() const
Create and return a copy of the TNodeAnnotations object at hand.
Abstract class from which NodeAnnotations related classes can be implemented.
virtual bool operator==(const TNodeAnnotations &other) const
GLdouble s
Definition: glew.h:1295
MRPT_DECLARE_TTYPENAME(mrpt::graphs::detail::TMRSlamNodeAnnotations)
virtual bool operator!=(const TNodeAnnotations &other) const
bool setAnnots(const self_t &other)
Set the properties of the current TNodeAnnotations object.
GLsizei const GLcharARB ** string
Definition: glew.h:3293
bool is_node_annots_empty
Indicates if this is a dummy TNodeAnnotations struct or if it does contain meaningful data...
virtual void getAnnotsAsString(std::string *s) const
#define ASSERT_(f)
TNodeAnnotations(const TNodeAnnotations &other)
Generic copy constructor.
Struct to be used as the NODE_ANNOTATIONS template argument in CNetworkOfPoses class instances for us...



Page generated by Doxygen 1.8.6 for MRPT 1.5.6 Git: 4c65e84 Tue Apr 24 08:18:17 2018 +0200 at mar abr 24 08:26:17 CEST 2018