| G | A type that is a model of PropertyGraph. |
| g | An object of type G. |
| X | Either the vertex or edge descriptor type for G. |
| x | An object of type X. |
| PMap | The type boost::property_map<G, Property>::const_type. |
| v | An object of type boost::property_traits<PMap>::value_type. |
| Property | A type that models the Property concept. |
| p | An object of type Property. |
| pmap | An object of type PMap. |
| Property Map Type | boost::property_map<G, Property>::type | The type of the property map for the property specified by Property. This type must be a model of ReadWritePropertyMap with a key type the same as the graph's vertex or descriptor type. |
| Const Property Map Type | boost::property_map<G, Property>::const_type | The type of the const property map for the property specified by Property. This type must be a model of ReadablePropertyMap with a key type the same as the graph's vertex or edge descriptor type. |
| Name | Expression | Return Type | Description |
|---|---|---|---|
| Get Property Map | get(p, g) | boost::property_map<G, Property>::type if g is mutable and boost::property_map<G, Property>::const_type otherwise. | Returns the property map object for the property specified by the Property type. The object p is only used to carry the type. |
| Get Property | get(p, g, x) | boost::property_traits<PMap>::value_type |
Returns the property (specified by the Property type)
associated with object x (a vertex or edge).
The object p is only used to carry the type.
This function is equivalent to: get(get(p, g), x) |
| Put Property | put(p, g, x, v) | void |
Set the property (specified by the Property type)
associated with object x (a vertex or edge) to
the value v. The object p is only used to carry the type.
This function is equivalent to: pmap = get(p, g); put(pmap, x, v) |
template <class Graph, class X, class Property>
struct PropertyGraph_concept
{
typedef typename property_map<G, Property>::type PMap;
typedef typename property_map<G, Property>::const_type const_PMap;
void constraints() {
REQUIRE(G, Graph);
REQUIRE2(PMap, X, ReadWritePropertyMap);
REQUIRE2(const_PMap, X, ReadablePropertyMap);
PMap pmap = get(Property(), g);
pval = get(Property(), g, x);
put(Property(), g, x, pval);
ignore_unused_variable_warning(pmap);
}
void const_constraints(const G& g) {
const_PMap pmap = get(Property(), g);
pval = get(Property(), g, x);
ignore_unused_variable_warning(pmap);
}
G g;
X x;
typename property_traits<PMap>::value_type pval;
};
| Copyright © 2000 | Jeremy Siek, Univ.of Notre Dame (jsiek@lsc.nd.edu) |