00001 /*======================================================================= 00002 * Product : OpenPL 00003 * File : plProbValueVector.h 00004 * Author : Juan-Manuel Ahuactzin 00005 * Creation : Fri Aug 8 18:33:35 2003 00006 * 00007 *======================================================================= 00008 * (c) Copyright 2000, Centre National de la Recherche Scientifique, 00009 * all rights reserved 00010 *======================================================================= 00011 * 00012 *------------------------- Description --------------------------------- 00013 * A vector of plProbValues mainly used in the Python wrapped version 00014 * of OPL 00015 *----------------------------------------------------------------------- 00016 */ 00017 00018 #ifndef _plProbValueVector_ 00019 #define _plProbValueVector_ 00020 00021 #include <plMath.h> 00022 00023 00024 00025 // class plProbValueVector { 00026 // vector <plProbValue> the_vector; 00027 00028 // public: 00029 00030 // plProbValueVector(plProbValue *args, int size) { 00031 // int i; 00032 // the_vector.resize(size); 00033 // for (i=0;i<size;i++) 00034 // the_vector[i] = args[i]; 00035 // } 00036 00037 00038 // plProbValueVector (unsigned int size) { 00039 // the_vector.resize(size); 00040 // } 00041 00042 // /** Acces the data in a variable of the values */ 00043 // inline const plProbValue & operator[](int index) const { 00044 // return the_vector[index]; 00045 // } 00046 00047 // /** Acces the data in a variable of the values */ 00048 // inline plProbValue & operator[](const int index) { 00049 // return the_vector[index]; 00050 // } 00051 00052 // inline vector <plProbValue> vector() { 00053 // return the_vector; 00054 // } 00055 00056 // }; 00057 00058 00059 00060 00061 #endif