This concept describes the requirements for the type used for color values (as in for coloring a graph during a BFS, etc.). A ColorValue must be EqualityComparable and also the following functions must be defined. T is the type that is a model of ColorValue and c is an object of type T.
| T | A type that is a model of ColorValue. |
| cv | An object of type T. |
| Name | Expression | Return Type | Description |
|---|---|---|---|
| Get Color White | white(cv) | T | Returns an object that represents the color white. |
| Get Color Gray | gray(cv) | T | Returns an object that represents the color gray. |
| Get Color Black | black(cv) | T | Returns an object that represents the color black. |
| Copyright © 2000 |
Jeremy Siek,
Univ.of Notre Dame (jsiek@lsc.nd.edu) Lie-Quan Lee, Univ.of Notre Dame (llee1@lsc.nd.edu) Andrew Lumsdaine, Univ.of Notre Dame (lums@lsc.nd.edu) |