MRPT
2.0.4
|
A smart pointer to a GNSS message.
Definition at line 95 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 {nullptr} |
|
default |
Ctor (default: nullptr pointer)
gnss_message_ptr::gnss_message_ptr | ( | const gnss_message_ptr & | o | ) |
Makes a copy of the pointee.
Definition at line 136 of file gnss_messages_common.cpp.
References mrpt::serialization::archiveFrom(), ptr, mrpt::io::CMemoryStream::Seek(), and mrpt::obs::gnss::gnss_message::writeToStream().
|
explicit |
Assigns a pointer.
Memory now belongs to this class.
Definition at line 152 of file gnss_messages_common.cpp.
|
virtual |
Dtor: it frees the pointee memory.
Definition at line 175 of file gnss_messages_common.cpp.
References ptr.
|
inline |
Definition at line 115 of file gnss_messages_common.h.
References ptr.
Referenced by mrpt::hwdrivers::CGPSInterface::implement_parser_NOVATEL_OEM6().
|
inline |
Definition at line 116 of file gnss_messages_common.h.
References ptr.
|
inline |
Definition at line 113 of file gnss_messages_common.h.
References ptr.
|
inline |
Definition at line 114 of file gnss_messages_common.h.
References ptr.
|
inline |
Definition at line 117 of file gnss_messages_common.h.
|
inline |
Definition at line 122 of file gnss_messages_common.h.
gnss_message_ptr & gnss_message_ptr::operator= | ( | const gnss_message_ptr & | o | ) |
Definition at line 166 of file gnss_messages_common.cpp.
References mrpt::serialization::archiveFrom(), ptr, mrpt::obs::gnss::gnss_message::readAndBuildFromStream(), mrpt::io::CMemoryStream::Seek(), and mrpt::obs::gnss::gnss_message::writeToStream().
|
inline |
Definition at line 111 of file gnss_messages_common.h.
References ptr.
|
inline |
Definition at line 112 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 156 of file gnss_messages_common.cpp.
References ptr.
|
protected |
Definition at line 98 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 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020 |