MRPT  2.0.1
List of all members | Public Member Functions | Protected Attributes
mrpt::obs::gnss::gnss_message_ptr Struct Reference

Detailed Description

A smart pointer to a GNSS message.

See also
gnss_message, mrpt::obs::CObservationGPS

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_ptroperator= (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_messageget () const
 
gnss_message *& operator-> ()
 
const gnss_messageoperator-> () const
 
void set (gnss_message *p)
 Replaces the pointee with a new pointer. More...
 

Protected Attributes

gnss_messageptr {nullptr}
 

Constructor & Destructor Documentation

◆ gnss_message_ptr() [1/3]

gnss_message_ptr::gnss_message_ptr ( )
default

Ctor (default: nullptr pointer)

◆ gnss_message_ptr() [2/3]

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().

Here is the call graph for this function:

◆ gnss_message_ptr() [3/3]

gnss_message_ptr::gnss_message_ptr ( const gnss_message p)
explicit

Assigns a pointer.

Memory now belongs to this class.

Definition at line 152 of file gnss_messages_common.cpp.

◆ ~gnss_message_ptr()

gnss_message_ptr::~gnss_message_ptr ( )
virtual

Dtor: it frees the pointee memory.

Definition at line 175 of file gnss_messages_common.cpp.

References ptr.

Member Function Documentation

◆ get() [1/2]

gnss_message*& mrpt::obs::gnss::gnss_message_ptr::get ( )
inline

Definition at line 115 of file gnss_messages_common.h.

References ptr.

Referenced by mrpt::hwdrivers::CGPSInterface::implement_parser_NOVATEL_OEM6().

Here is the caller graph for this function:

◆ get() [2/2]

const gnss_message* mrpt::obs::gnss::gnss_message_ptr::get ( ) const
inline

Definition at line 116 of file gnss_messages_common.h.

References ptr.

◆ operator!=() [1/2]

bool mrpt::obs::gnss::gnss_message_ptr::operator!= ( const gnss_message o) const
inline

Definition at line 113 of file gnss_messages_common.h.

References ptr.

◆ operator!=() [2/2]

bool mrpt::obs::gnss::gnss_message_ptr::operator!= ( const gnss_message_ptr o) const
inline

Definition at line 114 of file gnss_messages_common.h.

References ptr.

◆ operator->() [1/2]

gnss_message*& mrpt::obs::gnss::gnss_message_ptr::operator-> ( )
inline

Definition at line 117 of file gnss_messages_common.h.

References ASSERT_, and ptr.

◆ operator->() [2/2]

const gnss_message* mrpt::obs::gnss::gnss_message_ptr::operator-> ( ) const
inline

Definition at line 122 of file gnss_messages_common.h.

References ASSERT_, and ptr.

◆ operator=()

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().

Here is the call graph for this function:

◆ operator==() [1/2]

bool mrpt::obs::gnss::gnss_message_ptr::operator== ( const gnss_message o) const
inline

Definition at line 111 of file gnss_messages_common.h.

References ptr.

◆ operator==() [2/2]

bool mrpt::obs::gnss::gnss_message_ptr::operator== ( const gnss_message_ptr o) const
inline

Definition at line 112 of file gnss_messages_common.h.

References ptr.

◆ set()

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.

Member Data Documentation

◆ ptr

gnss_message* mrpt::obs::gnss::gnss_message_ptr::ptr {nullptr}
protected



Page generated by Doxygen 1.8.14 for MRPT 2.0.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020