Class uipc::geometry::Attribute
template <typename T>
ClassList > uipc > geometry > Attribute
Template class to represent a geometries attribute of type T. More...
#include <attribute.h>
Inherits the following classes: uipc::geometry::IAttribute
Public Types
Type | Name |
---|---|
typedef T | value_type |
Public Functions
Type | Name |
---|---|
Attribute (const T & default_value={}) noexcept |
|
Attribute (const Attribute< T > &) = default |
|
Attribute (Attribute< T > &&) = default |
|
Attribute< T > & | operator= (const Attribute< T > &) = default |
Attribute< T > & | operator= (Attribute< T > &&) = default |
span< const T > | view () noexcept const |
Public Functions inherited from uipc::geometry::IAttribute
See uipc::geometry::IAttribute
Type | Name |
---|---|
IAttribute () = default |
|
SizeT | size () noexcept const Get the size of the attribute. |
Json | to_json (SizeT i) noexcept const |
Json | to_json () noexcept const |
virtual | ~IAttribute () = default |
Protected Functions
Type | Name |
---|---|
virtual void | do_clear () override |
virtual S< IAttribute > | do_clone () override const |
virtual S< IAttribute > | do_clone_empty () override const |
virtual void | do_copy_from (const IAttribute & other, const AttributeCopy & copy) noexcept override |
virtual void | do_reorder (span< const SizeT > O) noexcept override |
virtual void | do_reserve (SizeT N) override |
virtual void | do_resize (SizeT N) override |
virtual Json | do_to_json (SizeT i) noexcept override const |
virtual backend::BufferView | get_backend_view () noexcept override const |
virtual SizeT | get_size () override const |
Protected Functions inherited from uipc::geometry::IAttribute
See uipc::geometry::IAttribute
Type | Name |
---|---|
backend::BufferView | backend_view () noexcept const |
virtual void | do_clear () = 0 |
virtual S< IAttribute > | do_clone () const = 0 |
virtual S< IAttribute > | do_clone_empty () const = 0 |
virtual void | do_copy_from (const IAttribute & other, const AttributeCopy & copy) noexcept = 0 |
virtual void | do_reorder (span< const SizeT > O) noexcept = 0 |
virtual void | do_reserve (SizeT N) = 0 |
virtual void | do_resize (SizeT N) = 0 |
virtual Json | do_to_json (SizeT i) noexcept const = 0 |
virtual backend::BufferView | get_backend_view () noexcept const = 0 |
virtual SizeT | get_size () const = 0 |
Detailed Description
Template parameters:
T
The type of the attribute values.
Public Types Documentation
typedef value_type
Public Functions Documentation
function Attribute [1/3]
function Attribute [2/3]
function Attribute [3/3]
function operator=
function operator=
function view [2/2]
Protected Functions Documentation
function do_clear
Implements uipc::geometry::IAttribute::do_clear
function do_clone
Implements uipc::geometry::IAttribute::do_clone
function do_clone_empty
Implements uipc::geometry::IAttribute::do_clone_empty
function do_copy_from
virtual void uipc::geometry::Attribute::do_copy_from (
const IAttribute & other,
const AttributeCopy & copy
) noexcept override
Implements uipc::geometry::IAttribute::do_copy_from
function do_reorder
Implements uipc::geometry::IAttribute::do_reorder
function do_reserve
Implements uipc::geometry::IAttribute::do_reserve
function do_resize
Implements uipc::geometry::IAttribute::do_resize
function do_to_json
Implements uipc::geometry::IAttribute::do_to_json
function get_backend_view
Implements uipc::geometry::IAttribute::get_backend_view
function get_size
Implements uipc::geometry::IAttribute::get_size
Friends Documentation
friend view [1/2]
The documentation for this class was generated from the following file include/uipc/geometry/attribute.h