OSVR-Core
Public Member Functions | Friends | List of all members
Sample Class Reference

An RAII class for retrieving the sample and signalling consumption complete. More...

#include <MediaSampleExchange.h>

Public Member Functions

 ~Sample ()
 Destructor - signals consumer finished.
 
 Sample (Sample &&other)
 Move constructor.
 
Sampleoperator= (Sample const &)=delete
 
IMediaSample & get ()
 Access the contained sample. More...
 
osvr::util::time::TimeValue const & getTimestamp () const
 

Friends

class MediaSampleExchange
 

Detailed Description

An RAII class for retrieving the sample and signalling consumption complete.

(A move-construction-only object.)

Member Function Documentation

§ get()

IMediaSample& Sample::get ( )
inline

Access the contained sample.

Do not retain pointers to this or any sub-object after this Sample object goes out of scope!


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