Class Field

Inheritance Relationships

Base Type

Class Documentation

class Field : public ouster::sdk::core::FieldView

RAII memory-owning container for arbitrary typed and sized arrays and POD structs with optional type checking.

For usage examples, check unit tests

Public Functions

Field() noexcept

Default constructor, representing invalid Field.

~Field()

Field destructor.

Field(const FieldDescriptor &desc, FieldClass field_class = {})

Constructs Field from FieldDescriptor.

Parameters:
Field(const Field &other)

Copy constructor.

Parameters:

other[in]Field to copy

Field &operator=(const Field &other)

Copy assignment constructor.

Parameters:

other[in]Field to copy

Field(Field &&other) noexcept

Move constructor.

Parameters:

other[in]Field to steal resource from

Field &operator=(Field &&other) noexcept

Move assignment constructor.

Parameters:

other[in]Field to steal resource from

FieldClass field_class() const

Get field class.

Returns:

FieldClass

void swap(Field &other) noexcept

Swaps two Fields.

Parameters:

other[in]Field to swap resources with

bool operator==(const Field &other) const

Equality operator.

Returns:

true if type, shape and memory contents are equal to other