A smart pointer to a GNSS message.
Definition at line 51 of file gnss_messages_common.h.
#include <mrpt/obs/gnss_messages_common.h>
Public Member Functions | |
gnss_message_ptr () | |
Ctor (default: NULL 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. Its memory now belongs to this object, do not free manually. More... | |
Protected Attributes | |
gnss_message * | ptr |
gnss_message_ptr::gnss_message_ptr | ( | ) |
Ctor (default: NULL pointer)
Definition at line 117 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 120 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 133 of file gnss_messages_common.cpp.
|
virtual |
Dtor: it frees the pointee memory.
Definition at line 151 of file gnss_messages_common.cpp.
References ptr.
|
inline |
Definition at line 66 of file gnss_messages_common.h.
Referenced by mrpt::hwdrivers::CGPSInterface::implement_parser_NOVATEL_OEM6().
|
inline |
Definition at line 67 of file gnss_messages_common.h.
|
inline |
Definition at line 64 of file gnss_messages_common.h.
|
inline |
Definition at line 65 of file gnss_messages_common.h.
References ptr.
|
inline |
Definition at line 68 of file gnss_messages_common.h.
References ASSERT_.
|
inline |
Definition at line 69 of file gnss_messages_common.h.
References ASSERT_.
gnss_message_ptr & gnss_message_ptr::operator= | ( | const gnss_message_ptr & | o | ) |
Definition at line 143 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 62 of file gnss_messages_common.h.
|
inline |
Definition at line 63 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 137 of file gnss_messages_common.cpp.
References ptr.
|
protected |
Definition at line 54 of file gnss_messages_common.h.
Referenced by gnss_message_ptr(), operator!=(), operator=(), operator==(), set(), and ~gnss_message_ptr().
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 |