In brief ProBT uses variable values as inputs and outputs parameters for methods such as compute, draw or best, briefly introduced in the previous chapter. Variable values are represented by the object class plValues and constructed by a variable set. When a plValues is created its values are initialized with the first value of the variable types. For example, consider the following statements:
//Defining types for year, quality and price plIntegerType year_type(1800, 2002); plIntegerType quality_type(1, 5); plRealType price_type(15.5, 7000); //Defining variables of types year, quality and price plSymbol year("year", year_type); plSymbol quality("quality", quality_type); plSymbol price("price", price_type); //Defining a variable values storing values of year, quality and price plValues wine(year^quality^price); cout<<"wine = "<<wine<<"\n";
the output shows:
wine = {year=1800 quality=1 price=15.5}