Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::graph::internal_vertex_constructor< property< Tag, T, Base > > Struct Template Reference

Extract the internal vertex constructor from a property structure by looking at its base. More...

#include <named_graph.hpp>

Inheritance diagram for boost::graph::internal_vertex_constructor< property< Tag, T, Base > >:
Collaboration diagram for boost::graph::internal_vertex_constructor< property< Tag, T, Base > >:

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...
 

Detailed Description

template<typename Tag, typename T, typename Base>
struct boost::graph::internal_vertex_constructor< property< Tag, T, Base > >

Extract the internal vertex constructor from a property structure by looking at its base.

Member Typedef Documentation

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.


The documentation for this struct was generated from the following file: