PX4 Firmware
PX4 Autopilot Software http://px4.io
px4::Array< T, N > Class Template Reference

#include <Array.hpp>

Collaboration diagram for px4::Array< T, N >:

Public Member Functions

bool push_back (const T &x)
 
void remove (unsigned idx)
 
void erase (T *item)
 
T & operator[] (size_t n)
 
const T & operator[] (size_t n) const
 
T & at (size_t n)
 
const T & at (size_t n) const
 
size_t size () const
 
size_t max_size () const
 
size_t capacity () const
 
bool empty () const
 
bool is_overflowed ()
 
T * begin ()
 
T * end ()
 
const T * begin () const
 
const T * end () const
 

Private Attributes

_items [N]
 
size_t _size {0}
 
bool _overflow {false}
 

Detailed Description

template<class T, size_t N>
class px4::Array< T, N >

Definition at line 42 of file Array.hpp.

Member Function Documentation

◆ at() [1/2]

template<class T, size_t N>
T& px4::Array< T, N >::at ( size_t  n)
inline

Definition at line 85 of file Array.hpp.

◆ at() [2/2]

template<class T, size_t N>
const T& px4::Array< T, N >::at ( size_t  n) const
inline

Definition at line 86 of file Array.hpp.

◆ begin() [1/2]

template<class T, size_t N>
T* px4::Array< T, N >::begin ( )
inline

Definition at line 96 of file Array.hpp.

◆ begin() [2/2]

template<class T, size_t N>
const T* px4::Array< T, N >::begin ( ) const
inline

Definition at line 99 of file Array.hpp.

◆ capacity()

template<class T, size_t N>
size_t px4::Array< T, N >::capacity ( ) const
inline

Definition at line 90 of file Array.hpp.

◆ empty()

template<class T, size_t N>
bool px4::Array< T, N >::empty ( ) const
inline

Definition at line 92 of file Array.hpp.

◆ end() [1/2]

template<class T, size_t N>
T* px4::Array< T, N >::end ( )
inline

Definition at line 97 of file Array.hpp.

◆ end() [2/2]

template<class T, size_t N>
const T* px4::Array< T, N >::end ( ) const
inline

Definition at line 100 of file Array.hpp.

◆ erase()

template<class T, size_t N>
void px4::Array< T, N >::erase ( T *  item)
inline

Definition at line 71 of file Array.hpp.

◆ is_overflowed()

template<class T, size_t N>
bool px4::Array< T, N >::is_overflowed ( )
inline

Definition at line 94 of file Array.hpp.

◆ max_size()

template<class T, size_t N>
size_t px4::Array< T, N >::max_size ( ) const
inline

Definition at line 89 of file Array.hpp.

◆ operator[]() [1/2]

template<class T, size_t N>
T& px4::Array< T, N >::operator[] ( size_t  n)
inline

Definition at line 82 of file Array.hpp.

◆ operator[]() [2/2]

template<class T, size_t N>
const T& px4::Array< T, N >::operator[] ( size_t  n) const
inline

Definition at line 83 of file Array.hpp.

◆ push_back()

template<class T, size_t N>
bool px4::Array< T, N >::push_back ( const T &  x)
inline

Definition at line 47 of file Array.hpp.

Referenced by SRF02::init().

Here is the caller graph for this function:

◆ remove()

template<class T, size_t N>
void px4::Array< T, N >::remove ( unsigned  idx)
inline

Definition at line 60 of file Array.hpp.

◆ size()

template<class T, size_t N>
size_t px4::Array< T, N >::size ( ) const
inline

Definition at line 88 of file Array.hpp.

Referenced by SRF02::init(), and SRF02::Run().

Here is the caller graph for this function:

Member Data Documentation

◆ _items

◆ _overflow

template<class T, size_t N>
bool px4::Array< T, N >::_overflow {false}
private

◆ _size


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