A smart pointer to a GNSS message.
Definition at line 82 of file gnss_messages_common.h.
#include <mrpt/obs/gnss_messages_common.h>
Public Member Functions | |
gnss_message_ptr () | |
Ctor (default: nullptr pointer) More... | |
gnss_message_ptr (const gnss_message_ptr &o) | |
Makes a copy of the pointee. More... | |
gnss_message_ptr (const gnss_message *p) | |
Assigns a pointer. More... | |
gnss_message_ptr & | operator= (const gnss_message_ptr &o) |
virtual | ~gnss_message_ptr () |
Dtor: it frees the pointee memory. More... | |
bool | operator== (const gnss_message *o) const |
bool | operator== (const gnss_message_ptr &o) const |
bool | operator!= (const gnss_message *o) const |
bool | operator!= (const gnss_message_ptr &o) const |
gnss_message *& | get () |
const gnss_message * | get () const |
gnss_message *& | operator-> () |
const gnss_message * | operator-> () const |
void | set (gnss_message *p) |
Replaces the pointee with a new pointer. More... | |
Protected Attributes | |
gnss_message * | ptr |
gnss_message_ptr::gnss_message_ptr | ( | ) |
Ctor (default: nullptr pointer)
Definition at line 122 of file gnss_messages_common.cpp.
gnss_message_ptr::gnss_message_ptr | ( | const gnss_message_ptr & | o | ) |
Makes a copy of the pointee.
Definition at line 124 of file gnss_messages_common.cpp.
References ptr, mrpt::obs::gnss::gnss_message::readAndBuildFromStream(), mrpt::utils::CMemoryStream::Seek(), and mrpt::obs::gnss::gnss_message::writeToStream().
|
explicit |
Assigns a pointer.
Memory now belongs to this class.
Definition at line 139 of file gnss_messages_common.cpp.
|
virtual |
Dtor: it frees the pointee memory.
Definition at line 161 of file gnss_messages_common.cpp.
References ptr.
|
inline |
Definition at line 102 of file gnss_messages_common.h.
References ptr.
Referenced by mrpt::hwdrivers::CGPSInterface::implement_parser_NOVATEL_OEM6().
|
inline |
Definition at line 103 of file gnss_messages_common.h.
References ptr.
|
inline |
Definition at line 100 of file gnss_messages_common.h.
References ptr.
|
inline |
Definition at line 101 of file gnss_messages_common.h.
References ptr.
|
inline |
Definition at line 104 of file gnss_messages_common.h.
|
inline |
Definition at line 109 of file gnss_messages_common.h.
gnss_message_ptr & gnss_message_ptr::operator= | ( | const gnss_message_ptr & | o | ) |
Definition at line 153 of file gnss_messages_common.cpp.
References ptr, mrpt::obs::gnss::gnss_message::readAndBuildFromStream(), mrpt::utils::CMemoryStream::Seek(), and mrpt::obs::gnss::gnss_message::writeToStream().
|
inline |
Definition at line 98 of file gnss_messages_common.h.
References ptr.
|
inline |
Definition at line 99 of file gnss_messages_common.h.
References ptr.
void gnss_message_ptr::set | ( | gnss_message * | p | ) |
Replaces the pointee with a new pointer.
Its memory now belongs to this object, do not free manually.
Definition at line 143 of file gnss_messages_common.cpp.
References ptr.
|
protected |
Definition at line 85 of file gnss_messages_common.h.
Referenced by get(), gnss_message_ptr(), operator!=(), operator->(), operator=(), operator==(), set(), and ~gnss_message_ptr().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019 |