forked from Archive/PX4-Autopilot
move logger array.h -> containers/Array.hpp
This commit is contained in:
parent
939413fa06
commit
edeb59a8c3
|
@ -47,9 +47,7 @@ class Array
|
|||
typedef const TYPE *const_iterator;
|
||||
|
||||
public:
|
||||
Array()
|
||||
: _size(0), _overflow(false)
|
||||
{}
|
||||
Array() = default;
|
||||
|
||||
bool push_back(const TYPE &x)
|
||||
{
|
||||
|
@ -152,9 +150,9 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
TYPE _items[N];
|
||||
size_t _size;
|
||||
bool _overflow;
|
||||
TYPE _items[N] {};
|
||||
size_t _size{0};
|
||||
bool _overflow{false};
|
||||
};
|
||||
|
||||
}
|
|
@ -35,7 +35,7 @@
|
|||
|
||||
#include "log_writer.h"
|
||||
#include "messages.h"
|
||||
#include "array.h"
|
||||
#include <containers/Array.hpp>
|
||||
#include "util.h"
|
||||
#include <px4_defines.h>
|
||||
#include <drivers/drv_hrt.h>
|
||||
|
|
Loading…
Reference in New Issue