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 |
|
| void | from_json (const Json & j) noexcept |
| SizeT | size () noexcept const Get the size of the attribute. |
| Json | to_json (SizeT i) noexcept const |
| Json | to_json () noexcept const |
| std::string_view | type_name () noexcept const Get the type name of data stored in the attribute slot. |
| virtual | ~IAttribute () = default |
Public Static Functions
| Type | Name |
|---|---|
| std::string | type () noexcept |
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_from_json (const Json & j) 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 Json | do_to_json () noexcept override const |
| virtual SizeT | get_size () override const |
| virtual std::string_view | get_type_name () noexcept override const |
Protected Functions inherited from uipc::geometry::IAttribute
See uipc::geometry::IAttribute
| Type | Name |
|---|---|
| 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_from_json (const Json & j) 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 Json | do_to_json () noexcept const = 0 |
| virtual SizeT | get_size () const = 0 |
| virtual std::string_view | get_type_name () noexcept const = 0 |
Detailed Description
Template parameters:
TThe 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]
Public Static Functions Documentation
function type
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_from_json
Implements uipc::geometry::IAttribute::do_from_json
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 [1/2]
Implements uipc::geometry::IAttribute::do_to_json
function do_to_json [2/2]
Implements uipc::geometry::IAttribute::do_to_json
function get_size
Implements uipc::geometry::IAttribute::get_size
function get_type_name
Implements uipc::geometry::IAttribute::get_type_name
Friends Documentation
friend view [1/2]
The documentation for this class was generated from the following file include/uipc/geometry/attribute.h