Main MRPT website > C++ reference for MRPT 1.9.9
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 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_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
 

Constructor & Destructor Documentation

◆ gnss_message_ptr() [1/3]

gnss_message_ptr::gnss_message_ptr ( )

Ctor (default: nullptr pointer)

Definition at line 122 of file gnss_messages_common.cpp.

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

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 139 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 161 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 102 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 103 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 100 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 101 of file gnss_messages_common.h.

References ptr.

◆ operator->() [1/2]

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

Definition at line 104 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 109 of file gnss_messages_common.h.

References ASSERT_, and ptr.

◆ operator=()

gnss_message_ptr & gnss_message_ptr::operator= ( const gnss_message_ptr o)

◆ operator==() [1/2]

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

Definition at line 98 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 99 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 143 of file gnss_messages_common.cpp.

References ptr.

Member Data Documentation

◆ ptr

gnss_message* mrpt::obs::gnss::gnss_message_ptr::ptr
protected



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