Extract the internal vertex constructor from a property
structure by looking at its base.
More...
#include <named_graph.hpp>
Public Types | |
typedef cannot_add_vertex< Base > | type |
The type field provides a function object that constructs a new instance of VertexProperty from the name of the vertex (as determined by internal_vertex_name ). More... | |
Extract the internal vertex constructor from a property
structure by looking at its base.
|
inherited |
The type
field provides a function object that constructs a new instance of VertexProperty
from the name of the vertex (as determined by internal_vertex_name
).
The function object shall accept a vertex name and return a VertexProperty
. Predefined options include:
vertex_from_name<VertexProperty>
: construct an instance of VertexProperty
directly from the name.
cannot_add_vertex<VertexProperty>
: the default value, which throws an std::runtime_error
if one attempts to add a vertex given just the name.