nros C++ API
Lightweight ROS 2 client for embedded real-time systems (C++ headers)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
nros::Subscription< M >::View Class Reference

#include <subscription.hpp>

Public Member Functions

const uint8_tdata () const
 
bool empty () const
 
Viewoperator= (const View &)=delete
 
Viewoperator= (View &&o)
 
size_t size () const
 
 View ()
 
 View (const View &)=delete
 
 View (View &&o)
 
 View (void *sub, const uint8_t *buf, size_t len, void *token)
 Internal constructor — callers use Subscription::try_borrow().
 
 ~View ()
 

Detailed Description

template<typename M>
class nros::Subscription< M >::View

Phase 124.A.7 — read-only view returned by Subscription::borrow. RAII: Drop releases the view back to the subscriber.

Constructor & Destructor Documentation

◆ View() [1/4]

template<typename M >
nros::Subscription< M >::View::View ( )
inline

◆ View() [2/4]

template<typename M >
nros::Subscription< M >::View::View ( View &&  o)
inline

◆ View() [3/4]

template<typename M >
nros::Subscription< M >::View::View ( const View )
delete

◆ ~View()

template<typename M >
nros::Subscription< M >::View::~View ( )
inline

◆ View() [4/4]

template<typename M >
nros::Subscription< M >::View::View ( void sub,
const uint8_t buf,
size_t  len,
void token 
)
inline

Internal constructor — callers use Subscription::try_borrow().

Member Function Documentation

◆ data()

template<typename M >
const uint8_t * nros::Subscription< M >::View::data ( ) const
inline

◆ empty()

template<typename M >
bool nros::Subscription< M >::View::empty ( ) const
inline

◆ operator=() [1/2]

template<typename M >
View & nros::Subscription< M >::View::operator= ( const View )
delete

◆ operator=() [2/2]

template<typename M >
View & nros::Subscription< M >::View::operator= ( View &&  o)
inline

◆ size()

template<typename M >
size_t nros::Subscription< M >::View::size ( ) const
inline

The documentation for this class was generated from the following file: