Skip to content

Class uipc::core::Scene::ConfigAttributesT

template <bool IsConst>

ClassList > uipc > core > Scene > ConfigAttributesT

Public Functions

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

Public Functions Documentation

function ConfigAttributesT [2/5]

inline uipc::core::Scene::ConfigAttributesT::ConfigAttributesT (
    AutoAttributeCollection & attributes
) 

function ConfigAttributesT [3/5]

template<bool OtherIsConst>
inline uipc::core::Scene::ConfigAttributesT::ConfigAttributesT (
    const ConfigAttributesT < OtherIsConst > & o
) noexcept

function ConfigAttributesT [4/5]

uipc::core::Scene::ConfigAttributesT::ConfigAttributesT (
    const ConfigAttributesT & o
) = default

function ConfigAttributesT [5/5]

uipc::core::Scene::ConfigAttributesT::ConfigAttributesT (
    ConfigAttributesT && o
) = default

function build_from

inline void uipc::core::Scene::ConfigAttributesT::build_from (
    const AttributeCollection & ac
) 

function copy_from

inline void uipc::core::Scene::ConfigAttributesT::copy_from (
    ConfigAttributesT < true > other,
    const AttributeCopy & copy={},
    span< const string > include_names={},
    span< const string > exclude_names={}
) 

function create

Create an attribute with the given name.

template<typename T>
inline decltype(auto) uipc::core::Scene::ConfigAttributesT::create (
    std::string_view name,
    const T & init_value={}
) 

function destroy

inline void uipc::core::Scene::ConfigAttributesT::destroy (
    std::string_view name
) 

See also: AttributeCollection::destroy


function find

Find an attribute by type and name, if the attribute does not exist, return nullptr.

template<typename T>
inline auto uipc::core::Scene::ConfigAttributesT::find (
    std::string_view name
) 

function operator=

ConfigAttributesT & uipc::core::Scene::ConfigAttributesT::operator= (
    const ConfigAttributesT & o
) = default

function operator=

ConfigAttributesT & uipc::core::Scene::ConfigAttributesT::operator= (
    ConfigAttributesT && o
) = default

function share

template<typename T>
inline decltype(auto) uipc::core::Scene::ConfigAttributesT::share (
    std::string_view name,
    const AttributeSlot < T > & slot
) 

function to_json

inline Json uipc::core::Scene::ConfigAttributesT::to_json () const

function update_from

inline void uipc::core::Scene::ConfigAttributesT::update_from (
    const geometry::AttributeCollectionCommit & commit
) 

Friends Documentation

friend formatter< ConfigAttributesT< IsConst > >

struct uipc::core::Scene::ConfigAttributesT::formatter< ConfigAttributesT< IsConst > > (
    fmt::formatter< ConfigAttributesT < IsConst > >
) 

friend AttributeFriend

template<typename T>
class uipc::core::Scene::ConfigAttributesT::AttributeFriend (
    geometry::AttributeFriend
) 


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