Face Engine SDK
5.23.1
A face detection, recognition and tracking engine.
|
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objects. More...
#include <Span.h>
Public Member Functions | |
Span (Span const &) | |
Span & | operator= (Span const &) |
Span (T *data, std::size_t size) | |
Constructor by pointer and size. | |
template<class ContiguousContainer > | |
Span (ContiguousContainer &&container) | |
Constructor by contiguous container. | |
template<class ContiguousContainer > | |
Span & | operator= (ContiguousContainer &&container) |
Assignment operator with contiguous container. | |
reference | operator[] (std::size_t index) |
Square brackets operator for convenient acces to underlying array; param index Array index. | |
const_reference | operator[] (std::size_t index) const |
Non-modifying square brackets operator for convenient acces to underlying array; param index Array index. | |
bool | empty () const |
Returns `true` if the span is empty. | |
pointer | data () const |
Returns a pointer to the beginning of the span. | |
std::size_t | size () const |
Returns the number of elements in the span. | |
std::size_t | getSize () const |
Returns the number of elements in the span. | |
void | setSize (std::size_t size) |
Sets the number of elements in the span. Because the span is not owning, this method will no construct or destroy element. This method will not allocate or free memory. | |
iterator | begin () |
Returns an iterator to the beginning of the span. | |
const_iterator | begin () const |
Returns an const iterator to the beginning of the span. | |
const_iterator | cbegin () const |
Returns an iterator to the beginning of the span. | |
iterator | end () |
Returns an iterator to one past the end of the span. | |
const_iterator | end () const |
Returns an const iterator to one past the end of the span. | |
const_iterator | cend () const |
Returns an const iterator to one past the end of the span. |
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objects.
fsdk::Span< T >::Span | ( | T * | data, |
std::size_t | size | ||
) | [inline] |
Constructor by pointer and size.
data | A pointer to the beginning of the range of elements |
size | The number of elements pointed to by `data` |
fsdk::Span< T >::Span | ( | ContiguousContainer && | container | ) | [inline] |
Constructor by contiguous container.
container | The container to construct from |
Span& fsdk::Span< T >::operator= | ( | ContiguousContainer && | container | ) | [inline] |
Assignment operator with contiguous container.
container | The container to assign from |