Graph property of type T.
More...
#include <graph.h>
|
| ModelProperty ()=default |
| Default constructor.
|
|
| ModelProperty (Property< T > p) |
| Constructor with a property.
|
|
Property< T >::reference | operator[] (size_t idx) override |
| Access the data stored for the graph.
|
|
Property< T >::const_reference | operator[] (size_t idx) const override |
| Access the data stored for the graph.
|
|
| Property (PropertyArray< T > *p=nullptr) |
| Constructor.
|
|
virtual | ~Property ()=default |
| Destructor.
|
|
void | reset () |
| Resets the property.
|
|
| operator bool () const |
| Checks if the property is valid.
|
|
const T * | data () const |
| Gets a pointer to the array.
|
|
std::vector< T > & | vector () |
| Gets a reference to the underlying vector.
|
|
const std::vector< T > & | vector () const |
| Const access to the underlying vector.
|
|
PropertyArray< T > & | array () |
| Gets a reference to the property array.
|
|
const PropertyArray< T > & | array () const |
| Const access to the property array.
|
|
const std::string & | name () const |
| Returns the name of the property.
|
|
void | set_name (const std::string &n) |
| Sets the name of the property.
|
|
|
typedef PropertyArray< T >::reference | reference |
| The reference type of the property.
|
|
typedef PropertyArray< T >::const_reference | const_reference |
| The const reference type of the property.
|
|
template<class T>
class easy3d::Graph::ModelProperty< T >
Graph property of type T.
- Template Parameters
-
T | The type of the property. |
- See also
- VertexProperty, EdgeProperty
◆ ModelProperty()
Constructor with a property.
- Parameters
-
◆ operator[]() [1/2]
Access the data stored for the graph.
- Parameters
-
- Returns
- A const reference to the data stored for the graph.
Reimplemented from Property< T >.
◆ operator[]() [2/2]
Access the data stored for the graph.
- Parameters
-
- Returns
- A reference to the data stored for the graph.
Reimplemented from Property< T >.
The documentation for this class was generated from the following file:
- G:/3_code/Easy3D/easy3d/core/graph.h