NVIDIA DeepStream SDK API Reference

9.2 Release
exporter::memory::InMemoryData< T > Class Template Reference

Detailed Description

template<typename T>
class exporter::memory::InMemoryData< T >

A wrapper class holding in memory exporter data.

Definition at line 19 of file includes/opentelemetry/exporters/memory/in_memory_data.h.

Inheritance diagram for exporter::memory::InMemoryData< T >:

Public Member Functions

 InMemoryData (size_t buffer_size)
 
void Add (std::unique_ptr< T > data) noexcept
 
std::vector< std::unique_ptr< T > > Get () noexcept
 
 InMemoryData (size_t buffer_size)
 
void Add (std::unique_ptr< T > data) noexcept
 
std::vector< std::unique_ptr< T > > Get () noexcept
 

Constructor & Destructor Documentation

◆ InMemoryData() [1/2]

template<typename T >
exporter::memory::InMemoryData< T >::InMemoryData ( size_t  buffer_size)
inline
Parameters
buffer_sizea required value that sets the size of the CircularBuffer

Definition at line 25 of file includes/opentelemetry/exporters/memory/in_memory_data.h.

◆ InMemoryData() [2/2]

template<typename T >
exporter::memory::InMemoryData< T >::InMemoryData ( size_t  buffer_size)
inline
Parameters
buffer_sizea required value that sets the size of the CircularBuffer

Definition at line 25 of file 9.2/includes/opentelemetry/exporters/memory/in_memory_data.h.

Member Function Documentation

◆ Add() [1/2]

template<typename T >
void exporter::memory::InMemoryData< T >::Add ( std::unique_ptr< T >  data)
inlinenoexcept
Parameters
dataa required unique pointer to the data to add to the CircularBuffer

Definition at line 30 of file includes/opentelemetry/exporters/memory/in_memory_data.h.

◆ Add() [2/2]

template<typename T >
void exporter::memory::InMemoryData< T >::Add ( std::unique_ptr< T >  data)
inlinenoexcept
Parameters
dataa required unique pointer to the data to add to the CircularBuffer

Definition at line 30 of file 9.2/includes/opentelemetry/exporters/memory/in_memory_data.h.

◆ Get() [1/2]

template<typename T >
std::vector<std::unique_ptr<T> > exporter::memory::InMemoryData< T >::Get ( )
inlinenoexcept
Returns
Returns a vector of unique pointers containing all the data in the CircularBuffer. This operation will empty the Buffer, which is why the data is returned as unique pointers

Definition at line 37 of file 9.2/includes/opentelemetry/exporters/memory/in_memory_data.h.

◆ Get() [2/2]

template<typename T >
std::vector<std::unique_ptr<T> > exporter::memory::InMemoryData< T >::Get ( )
inlinenoexcept
Returns
Returns a vector of unique pointers containing all the data in the CircularBuffer. This operation will empty the Buffer, which is why the data is returned as unique pointers

Definition at line 37 of file includes/opentelemetry/exporters/memory/in_memory_data.h.


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