Navigation: Table of Contents, Bibliography, Index, Title Page

Introduction

Flavored objects are known to be very useful in computational geometry, especially in industrial applications. This extension package allows one to create flavored objects and provides an implementation of Irene's Flavor Enhancement algorithm [Ire99] on these objects.

Flavors and flavor enhancement

#include <CEP/Vanilla/flavor.h>

The following enumerated type is provided in the header file flavor.h of the Vanilla package. The functions listed here are precompiled into the library libVanill.a provided with the package.

enum Flavor { VANILLA,
CHOCOLATE_CHIP,
MINT_CHOCOLATE_CHIP,
CHOCOLATE,
STRAWBERRY,
NEAPOLITAN,
PEACH,
ROCKY_ROAD,
PISTACHIO};

bool valid_flavor ( Flavor f)
is true if f is a valid flavor and false otherwise.

Flavor flavor_enhance ( Flavor f)
implements the Flavor Enhancement algorithm. The return value of the function is the enhancement of flavor f.

ostream& ostream& os << Flavor f
output insertion operator for flavors. Inserts the string associated with the enumeration f into os and returns the modified stream.

istream& istream& is >> Flavor& f
input extraction operator for flavors. Extracts the next string from is and converts it to the corresponding Flavor value. If the string does not match any of the valid flavor names, the value of f does not change and the stream is goes into failure state.

Reference Pages for Vanilla CEP


Navigation: Up, Table of Contents, Bibliography, Index, Title Page
Irene. Tue, September 14, 1999.