Skip to content

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

using uipc::geometry::Attribute< T >::value_type =  T;

Public Functions Documentation

function Attribute [1/3]

uipc::geometry::Attribute::Attribute (
    const T & default_value={}
) noexcept

function Attribute [2/3]

uipc::geometry::Attribute::Attribute (
    const Attribute < T > &
) = default

function Attribute [3/3]

uipc::geometry::Attribute::Attribute (
    Attribute < T > &&
) = default

function operator=

Attribute < T > & uipc::geometry::Attribute::operator= (
    const Attribute < T > &
) = default

function operator=

Attribute < T > & uipc::geometry::Attribute::operator= (
    Attribute < T > &&
) = default

function view [2/2]

span< const T > uipc::geometry::Attribute::view () noexcept const

Protected Functions Documentation

function do_clear

virtual void uipc::geometry::Attribute::do_clear () override

Implements uipc::geometry::IAttribute::do_clear


function do_clone

virtual S< IAttribute > uipc::geometry::Attribute::do_clone () override const

Implements uipc::geometry::IAttribute::do_clone


function do_clone_empty

virtual S< IAttribute > uipc::geometry::Attribute::do_clone_empty () override const

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

virtual void uipc::geometry::Attribute::do_reorder (
    span< const SizeT > O
) noexcept override

Implements uipc::geometry::IAttribute::do_reorder


function do_reserve

virtual void uipc::geometry::Attribute::do_reserve (
    SizeT N
) override

Implements uipc::geometry::IAttribute::do_reserve


function do_resize

virtual void uipc::geometry::Attribute::do_resize (
    SizeT N
) override

Implements uipc::geometry::IAttribute::do_resize


function do_to_json

virtual Json uipc::geometry::Attribute::do_to_json (
    SizeT i
) noexcept override const

Implements uipc::geometry::IAttribute::do_to_json


function get_backend_view

virtual backend::BufferView uipc::geometry::Attribute::get_backend_view () noexcept override const

Implements uipc::geometry::IAttribute::get_backend_view


function get_size

virtual SizeT uipc::geometry::Attribute::get_size () override const

Implements uipc::geometry::IAttribute::get_size


Friends Documentation

friend view [1/2]

inline span< T > uipc::geometry::Attribute::view (
    Attribute < T > & a
) noexcept


The documentation for this class was generated from the following file include/uipc/geometry/attribute.h