Skip to content

Class DataCollection::DataReceiver

template <typename T typename T>

ClassList > DataCollection > DataReceiver

Generic data receiver template class. More...

  • #include <DataReceiver.hpp>

Public Functions

Type Name
DataReceiver () = default
Default constructor for DataReceiver class.
bool IsEmpty ()
Checks if the storage is empty.
void StoreIntoStorage (T obj)
Store a data object into the storage.
std::vector< T > & getStorage ()
Retrieves the stored data objects.
virtual ~DataReceiver () = default
Virtual destructor for DataReceiver class.

Protected Attributes

Type Name
std::vector< T > storage
Vector to store shared_ptr data objects of type T.

Detailed Description

This class provides a template for storing and retrieving data objects of a specified type.

Template parameters:

  • T The type of data to be stored.

Public Functions Documentation

function DataReceiver

DataCollection::DataReceiver::DataReceiver () = default

function IsEmpty

Checks if the storage is empty.

inline bool DataCollection::DataReceiver::IsEmpty () 

Returns:

True if the storage is empty, false otherwise.

function StoreIntoStorage

Store a data object into the storage.

inline void DataCollection::DataReceiver::StoreIntoStorage (
    T obj
) 

Parameters:

  • obj The data object to store

function getStorage

Retrieves the stored data objects.

inline std::vector< T > & DataCollection::DataReceiver::getStorage () 

Returns:

Reference to the vector containing stored data objects.

function ~DataReceiver

virtual DataCollection::DataReceiver::~DataReceiver () = default

Protected Attributes Documentation

variable storage

std::vector<T> storage;

The documentation for this class was generated from the following file source/DataCollection/DataReceiver.hpp