Easy data access for input samples for trivial types (see Supported types for adtf_memory<T> for writing and reading Samples)
More...
template<typename T>
class adtf::streaming::penguin::sample_data< T, typename std::enable_if_t< std::is_trivially_copyable< T >::value > >
Easy data access for input samples for trivial types (see Supported types for adtf_memory<T> for writing and reading Samples)
Example Usage
{
}
{
}
{
if (sample_data_vector.GetData().size() > 4)
{
}
}
Copyright © Audi Electronics Venture GmbH.
#define LOG_INFO(...)
Logs an info message.
const T & GetData() const
Retrieves a reference to the data.
Easy data access for input samples of non trivial type @T (see Supported types for adtf_memory<T> for...
Base object pointer to realize binary compatible reference counting in interface methods.
or
struct tMyData
{
uint32_t nValue1;
uint32_t nValue2;
uint32_t nValue3;
};
{
oMyData->nValue1,
oMyData->nValue2,
oMyData->nValue3);
}
- Template Parameters
-
T | type of content of the samples sample buffer to get via GetData or sample_data::operator::T |
- See also
- output_sample_data
Definition at line 662 of file sample_data.h.
◆ sample_data() [1/3]
sample_data |
( |
sample_data< T, typename std::enable_if_t< std::is_trivially_copyable< T >::value > > && |
oSampleData | ) |
|
|
inline |
move CTOR
- Parameters
-
oSampleData | Data to move from |
Definition at line 680 of file sample_data.h.
◆ sample_data() [2/3]
copy CTOR
- Parameters
-
pSample | Sample to get the data from |
Definition at line 686 of file sample_data.h.
◆ sample_data() [3/3]
copy CTOR
- Parameters
-
pSample | Sample to get the data from |
Definition at line 692 of file sample_data.h.