Main MRPT website > C++ reference for MRPT 1.5.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 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_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. Its memory now belongs to this object, do not free manually. More...
 

Protected Attributes

gnss_messageptr
 

Constructor & Destructor Documentation

◆ gnss_message_ptr() [1/3]

gnss_message_ptr::gnss_message_ptr ( )

Ctor (default: NULL pointer)

Definition at line 117 of file gnss_messages_common.cpp.

◆ gnss_message_ptr() [2/3]

gnss_message_ptr::gnss_message_ptr ( const gnss_message_ptr o)

◆ 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 133 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 151 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 67 of file gnss_messages_common.h.

◆ operator!=() [1/2]

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

Definition at line 64 of file gnss_messages_common.h.

◆ operator!=() [2/2]

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

Definition at line 65 of file gnss_messages_common.h.

References ptr.

◆ operator->() [1/2]

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

Definition at line 68 of file gnss_messages_common.h.

References ASSERT_.

◆ operator->() [2/2]

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

Definition at line 69 of file gnss_messages_common.h.

References ASSERT_.

◆ 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 62 of file gnss_messages_common.h.

◆ operator==() [2/2]

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

Definition at line 63 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 137 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.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020