Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members

plValues Class Reference

A plValues is an object storing the values of a set of variables. More...

#include <plValues.h>

Inheritance diagram for plValues:

Inheritance graph
[legend]
Collaboration diagram for plValues:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 plValues ()
 Creates an empty values.
 plValues (const plValues &val)
 Copy constructor.
 plValues (const plVariablesConjunction &variable)
 Creates a values containing the variable (or variables) {variable}.
 plValues (const plValues &val, plDataValues *ptr)
 Copy constructor.
plDataValues to_data_values (const list< kplVariable * > &variable) const
 Returns the plDataValues (in the values) of a list of variables.
plDataValues to_data_values () const
 Returns the plDataValues (in the values).
void to_data_values (plDataValues *ptr) const
 Copy the plDataValues of the plValues in the given plDataValues.
 ~plValues ()
 Erases a values.
const plDataoperator[] (const plVariablesConjunction &variable) const
 Acces the data in a variable of the values.
plDataoperator[] (const plVariablesConjunction &variable)
 Acces the data in a variable of the values.
plDataoperator[] (kplVariable *variable)
 Acces the data in a variable of the values.
plDataoperator[] (int position)
 Acces the data of the variable at position {position} with an integer.
const plDataoperator[] (int position) const
 Acces the data of the variable at position {position}.
unsigned size () const
 Returns the number of stored single variables.
void reset ()
 Resets all variable values to the initial values.
void reset (const plVariablesConjunction &variable)
 Resets a particular variable values to its initial value.
bool next ()
 Makes an increment iteration of all variables in the Values.
bool next (const plVariablesConjunction &variable)
 Makes an increment iteration of a particular variables in the Values.
const list< kplVariable * > & get_variable_list () const
 Returns the variables list.
void rename (const plVariablesConjunction &new_variable)
 Renames the variables assuming that the old and the new variables have the same number and same types.

Protected Member Functions

 plValues (const list< kplVariable * > &l_d)
 create a values from a list of kernel variables
void set_index_variables (const list< kplVariable * > &l_d)
 Sets a values with the list of kplVariables given by the user.
bool set_variable (kplVariable *variable, const plData &value)
 Sets the value of a variable if it is in the values, nothing other wise.
const plDataoperator[] (kplVariable *variable) const
 acces operator from a variable
void Output (ostream &out) const
 Writes the variable at the output given by "out".

Protected Attributes

list< kplVariable * > * variable_list
 list of variable within the values
map< kplVariable *, int > * map_vector
 vector map, mapping a variable into a position to recover its value
plDataValues * values
 vector of values asigned to each of the variables

Friends

class plCndBellShape
class plCndKernel
class plCndNormal
class plComputableObject
class plDirac
class plJointDistribution
class plKernel
class plKernelTable
class plNormal
class plUnknown
class plKernelMap

Detailed Description

A plValues is an object storing the values of a set of variables.

Definition at line 20 of file plValuesArray.h.


The documentation for this class was generated from the following files:
Generated on Fri Apr 1 10:59:45 2005 for ProBT by  doxygen 1.4.1