Skip to content

Class uipc::geometry::Geometry::MetaAttributesT

template <bool IsConst>

ClassList > uipc > geometry > Geometry > MetaAttributesT

A wrapper class for the meta attributes of a geometries.

  • #include <geometry.h>

Public Functions

Type Name
MetaAttributesT (AutoAttributeCollection & attributes)
MetaAttributesT (const MetaAttributesT< OtherIsConst > & o) noexcept
MetaAttributesT (const MetaAttributesT & o) = default
MetaAttributesT (MetaAttributesT && o) = default
void copy_from (MetaAttributesT< 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.
MetaAttributesT & operator= (const MetaAttributesT & o) = default
MetaAttributesT & operator= (MetaAttributesT && o) = default
decltype(auto) share (std::string_view name, const AttributeSlot< T > & slot)
Json to_json () const

Public Functions Documentation

function MetaAttributesT [2/5]

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

function MetaAttributesT [3/5]

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

function MetaAttributesT [4/5]

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

function MetaAttributesT [5/5]

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

function copy_from

inline void uipc::geometry::Geometry::MetaAttributesT::copy_from (
    MetaAttributesT < 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::MetaAttributesT::create (
    std::string_view name,
    const T & init_value={}
) 

function destroy

inline void uipc::geometry::Geometry::MetaAttributesT::destroy (
    std::string_view name
) 

See also: AttributeCollection::destroy


function find

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

function operator=

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

function operator=

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

function share

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

function to_json

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

Friends Documentation

friend formatter< MetaAttributesT< IsConst > >

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


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