That class enables to factorize code for NodeProperty and EdgeProperty in VectorGraph, it could not be used directly.
More...
#include <vectorgraphproperty.h>
Public Member Functions |
std::vector< TYPE >
::const_reference | operator[] (const size_t id) const |
| read accessor
|
std::vector< TYPE >::reference | operator[] (const size_t id) |
| read/write accessor
|
void | setAll (const TYPE &obj) |
void | set (const size_t id, const TYPE &obj) |
| write accessor
|
std::vector< TYPE >
::const_reference | get (const size_t id) const |
| read accessor
|
virtual bool | isValid () const =0 |
Detailed Description
template<typename TYPE>
class tlp::VectorGraphProperty< TYPE >
That class enables to factorize code for NodeProperty and EdgeProperty in VectorGraph, it could not be used directly.
- See Also
- NodeProperty
-
EdgeProperty
-
VectorGraph
Constructor & Destructor Documentation
Member Function Documentation
read accessor
return the value of the ith element.
read accessor
return the value of the ith element.
read/write accessor
return the value of the ith element and enables to modify it.
write accessor
change the value of the ith element.
Set all the value of the property to the value given in parameter
That function affect the same value to all elements of the vector, there is no effect on the future value added in the vector
- Warning
- There is differences between the setAll of the MutableContainer and the setAll of VectorProperty (NodeProperty or EdgeProperty). The MutableContainer, ensures that new inserted element will have the value given by the last setAll
- See Also
- MutableContainer
Friends And Related Function Documentation
Member Data Documentation