MRPT  1.9.9
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 84 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 123 of file gnss_messages_common.cpp.

◆ gnss_message_ptr() [2/3]

◆ 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 141 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 164 of file gnss_messages_common.cpp.

References ptr.

Member Function Documentation

◆ get() [1/2]

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

◆ get() [2/2]

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

Definition at line 105 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 102 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 103 of file gnss_messages_common.h.

References ptr.

◆ operator->() [1/2]

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

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

References ASSERT_, and ptr.

◆ operator=()

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

◆ 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 145 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: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020