Skip to content

Class uipc::geometry::Geometry::InstanceAttributesT

template <bool IsConst>

ClassList > uipc > geometry > Geometry > InstanceAttributesT

A wrapper class for the instance attributes of a geometries.

  • #include <geometry.h>

Public Functions

Type Name
InstanceAttributesT (AutoAttributeCollection & attributes)
InstanceAttributesT (const InstanceAttributesT< OtherIsConst > & o) noexcept
InstanceAttributesT (const InstanceAttributesT & o) = default
InstanceAttributesT (InstanceAttributesT && o) = default
void clear ()
void copy_from (InstanceAttributesT< true > other, const AttributeCopy & copy={}, span< const string > include_names={}, span< const string > exclude_names={})
decltype(auto) create (std::string_view name, const T & init_value={})
Create an attribute with the given name.
void destroy (std::string_view name)
auto find (std::string_view name)
Find an attribute by type and name, if the attribute does not exist, return nullptr.
InstanceAttributesT & operator= (const InstanceAttributesT & o) = default
InstanceAttributesT & operator= (InstanceAttributesT && o) = default
void reserve (size_t size)
void resize (size_t size)
decltype(auto) share (std::string_view name, const AttributeSlot< T > & slot)
SizeT size ()
Json to_json () const

Public Functions Documentation

function InstanceAttributesT [2/5]

inline uipc::geometry::Geometry::InstanceAttributesT::InstanceAttributesT (
    AutoAttributeCollection & attributes
) 

function InstanceAttributesT [3/5]

template<bool OtherIsConst>
inline uipc::geometry::Geometry::InstanceAttributesT::InstanceAttributesT (
    const InstanceAttributesT < OtherIsConst > & o
) noexcept

function InstanceAttributesT [4/5]

uipc::geometry::Geometry::InstanceAttributesT::InstanceAttributesT (
    const InstanceAttributesT & o
) = default

function InstanceAttributesT [5/5]

uipc::geometry::Geometry::InstanceAttributesT::InstanceAttributesT (
    InstanceAttributesT && o
) = default

function clear

void uipc::geometry::Geometry::InstanceAttributesT::clear () 

See also: AttributeCollection::clear


function copy_from

inline void uipc::geometry::Geometry::InstanceAttributesT::copy_from (
    InstanceAttributesT < true > other,
    const AttributeCopy & copy={},
    span< const string > include_names={},
    span< const string > exclude_names={}
) 

function create

template<typename T>
inline decltype(auto) uipc::geometry::Geometry::InstanceAttributesT::create (
    std::string_view name,
    const T & init_value={}
) 

function destroy

void uipc::geometry::Geometry::InstanceAttributesT::destroy (
    std::string_view name
) 

See also: AttributeCollection::destroy


function find

template<typename T>
inline auto uipc::geometry::Geometry::InstanceAttributesT::find (
    std::string_view name
) 

function operator=

InstanceAttributesT & uipc::geometry::Geometry::InstanceAttributesT::operator= (
    const InstanceAttributesT & o
) = default

function operator=

InstanceAttributesT & uipc::geometry::Geometry::InstanceAttributesT::operator= (
    InstanceAttributesT && o
) = default

function reserve

void uipc::geometry::Geometry::InstanceAttributesT::reserve (
    size_t size
) 

See also: AttributeCollection::reserve


function resize

void uipc::geometry::Geometry::InstanceAttributesT::resize (
    size_t size
) 

See also: AttributeCollection::resize


function share

template<typename T>
inline decltype(auto) uipc::geometry::Geometry::InstanceAttributesT::share (
    std::string_view name,
    const AttributeSlot < T > & slot
) 

function size

SizeT uipc::geometry::Geometry::InstanceAttributesT::size () 

See also: AttributeCollection::size


function to_json

Json uipc::geometry::Geometry::InstanceAttributesT::to_json () const

Friends Documentation

friend formatter< InstanceAttributesT< IsConst > >

struct uipc::geometry::Geometry::InstanceAttributesT::formatter< InstanceAttributesT< IsConst > > (
    fmt::formatter< InstanceAttributesT < IsConst > >
) 


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