The class Flavored_object<O> is a templated class that is derived from the class of its template argument. It adds a flavor to the object and provides member functions for flavor enhancement and for checking the validity of the flavor, as well as functions for setting and retrieving the flavor of the object.
#include <CEP/Vanilla/Flavored_object.h>
|
| |
|
an unflavored empty object fo
| |
|
| |
|
fo is an empty object with flavor f
| |
|
| |
|
fo is a VANILLA object with value o
| |
|
| |
|
fo is an object with value o and flavor f
| |
|
|
| |
|
makes fo an object with flavor f Precondition: f must be a valid flavor | ||
|
|
| |
| enhances fo's flavor | ||
|
|
| determines if fo's flavor is valid |
|
|
| retrieves fo's flavor |