Communication Library for Autonomous Systems v1.0
Reliable and secure communication library for autonomous vehicle systems
Loading...
Searching...
No Matches
Buffer< T > Class Template Reference

#include <buffer.h>

Public Member Functions

 Buffer ()
 
 ~Buffer ()
 
Tdata ()
 
void setData (const void *data, unsigned int size)
 
const unsigned int size () const
 
void clear ()
 
void setRX (std::int64_t rx)
 
const std::int64_t rx ()
 

Static Public Attributes

static constexpr unsigned int MAX_SIZE = sizeof(T)
 

Constructor & Destructor Documentation

◆ Buffer()

template<typename T >
Buffer< T >::Buffer ( )

◆ ~Buffer()

template<typename T >
Buffer< T >::~Buffer ( )

Member Function Documentation

◆ clear()

template<typename T >
void Buffer< T >::clear ( )

◆ data()

template<typename T >
T * Buffer< T >::data ( )

◆ rx()

template<typename T >
const std::int64_t Buffer< T >::rx ( )

◆ setData()

template<typename T >
void Buffer< T >::setData ( const void data,
unsigned int  size 
)

◆ setRX()

template<typename T >
void Buffer< T >::setRX ( std::int64_t  rx)

◆ size()

template<typename T >
const unsigned int Buffer< T >::size ( ) const

Member Data Documentation

◆ MAX_SIZE

template<typename T >
constexpr unsigned int Buffer< T >::MAX_SIZE = sizeof(T)
staticconstexpr

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