Template Class PropertyHandle

Inheritance Relationships

Derived Types

Class Documentation

template<typename T>
class PropertyHandle

属性的Handle 直接把Property返回给用户不安全, 所以封装了一个PropertyHandle, 用户只能通过Handle来操作Property. PropertyHandle只能通过下标访问属性

模板参数

T -- 属性的具体类型

Subclassed by zmesh::core::EdgePropertyHandle< bool >, zmesh::core::EdgePropertyHandle< EdgeTopology >, zmesh::core::FacePropertyHandle< FaceTopology >, zmesh::core::FacePropertyHandle< bool >, zmesh::core::HalfedgePropertyHandle< HalfedgeTopology >, zmesh::core::VertexPropertyHandle< VertexTopology >, zmesh::core::VertexPropertyHandle< Point >, zmesh::core::VertexPropertyHandle< bool >, zmesh::core::EdgePropertyHandle< T >, zmesh::core::FacePropertyHandle< T >, zmesh::core::HalfedgePropertyHandle< T >, zmesh::core::VertexPropertyHandle< T >

Public Types

using ValueType = typename Property<T>::ValueType
using VectorType = typename Property<T>::VectorType
using reference = typename Property<T>::reference
using const_reference = typename Property<T>::const_reference

Public Functions

inline PropertyHandle(PropertyPtr<T> prop = nullptr)
inline bool is_valid() const
inline VectorType &vector()
inline const VectorType &vector() const
inline ValueType &default_value()
inline const ValueType &default_value() const
inline std::string name()
inline reference operator[](size_t idx)
inline const_reference operator[](size_t idx) const

Friends

friend class PropertyContainer