|
graph_analysis
|
NWeighted is a template to associate N-weights with either a vertex or an edge, i.e., adds a vector of weights. More...
#include <NWeighted.hpp>


Public Types | |
| typedef shared_ptr< NWeighted > | Ptr |
| typedef T | value_t |
Public Member Functions | |
| NWeighted (const T &weight) | |
| NWeighted (const std::vector< T > &weights=std::vector< T >(Dim)) | |
| NWeighted (const NWeighted &other) | |
| virtual | ~NWeighted () |
| virtual std::string | getClassName () const |
| virtual std::string | toString () const |
| void | setWeights (const std::vector< T > &weights) |
| std::vector< T > | getWeights () const |
| void | setWeight (T value, size_t index=0) |
| const T & | getWeight (size_t index=0) const |
| std::string | serializeWeights () |
| void | deserializeWeights (const std::string &s) |
Protected Member Functions | |
| void | validateDimensions (const std::vector< T > &weights) const |
| virtual GraphElementType * | getClone () const |
Protected Attributes | |
| std::vector< T > | mWeights |
NWeighted is a template to associate N-weights with either a vertex or an edge, i.e., adds a vector of weights.
| typedef shared_ptr< NWeighted > graph_analysis::NWeighted< T, Dim, GraphElementType >::Ptr |
| typedef T graph_analysis::NWeighted< T, Dim, GraphElementType >::value_t |
|
inline |
Default constructor for NWeighted to support single weight initialization This sets the weight at index 0
|
inline |
Default constructor for NWeighted to support multi-weight initialization
|
inline |
|
inlinevirtual |
|
inline |
|
inlinevirtual |
Reimplemented in graph_analysis::NWeightedEdge< T, Dim >, and graph_analysis::NWeightedVertex< T, Dim >.
|
inlineprotectedvirtual |
Reimplemented in graph_analysis::NWeightedEdge< T, Dim >, and graph_analysis::NWeightedVertex< T, Dim >.
|
inline |
Get weight at given index (dimension)
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Convert element to string
|
inlineprotected |
|
protected |
1.8.13