Changeset 488


Ignore:
Timestamp:
12/06/10 16:24:09 (14 years ago)
Author:
grlod
Message:

Comments and compiler warnings correction.

Location:
trunk/yao/src/YAOObjects
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/yao/src/YAOObjects/Connection.hpp

    r28 r488  
    5151   *  If the member concern both stages we do not put anything. 
    5252   * 
    53    *  The class has some significant property: "from", "N° output", "Ci", "Cj", "Ck", "Ct", "to", "N° input". These can be retrieved with the methods: 
     53   *  The class has some significant property: "from", "Nï¿œ output", "Ci", "Cj", "Ck", "Ct", "to", "Nï¿œ input". These can be retrieved with the methods: 
    5454   *  getPropertyCount, getPropertyName and getProperty. These methods are useful above all in the second stage and they are used to shows  
    5555   *  in a structured way the properties of the theConnectionTable object that is a table composed of Connection objects. 
     
    7373 
    7474    //! Default constructor. 
    75     Connection(): reli(0), relj(0), relk(0), relt(0), inBegin(0), inEnd(0), outBegin(0), outEnd(0), t(false), T(false){}  
     75    Connection():  inBegin(0), outBegin(0), inEnd(0), outEnd(0), reli(0), relj(0), relk(0), relt(0), t(false), T(false){} 
    7676     
    7777    /**  
     
    405405    /** 
    406406     * Allows to have a nice and automatic visualization of the Connection object elements.  
    407      * In this method we retrive this kind of propertis: "from", "N° output", "Ci", "Cj", "Ck", "Ct", "to", "N° input". 
     407     * In this method we retrive this kind of propertis: "from", "Nï¿œ output", "Ci", "Cj", "Ck", "Ct", "to", "Nï¿œ input". 
    408408     * These are prefixed string that never change. 
    409409     * @param anIndex is the number of property required. 
     
    418418    /** 
    419419     * Allows to have a nice and automatic visualization of the Connection object elements.  
    420      * In this method we retrive the value of significant property: "from", "N° output", "Ci", "Cj", "Ck", "Ct", "to", "N° input". 
     420     * In this method we retrive the value of significant property: "from", "Nï¿œ output", "Ci", "Cj", "Ck", "Ct", "to", "Nï¿œ input". 
    421421     * In function of the integer in input to the method we retrieve the respective property. 
    422422     * @param anIndex is the number of property required. 
     
    455455    short reli, relj, relk;                            
    456456     
    457     //! Relative or absolute displacement for t and T coordinates.  
     457    //! Relative or absolute displacement for t and T coordinates. 
    458458    //! 0  ==> t not present in the ctin-m directive; 
    459459    //! -1 ==> absolute displacement; 
     
    461461    //!  2 ==> relative displacement if the input trajectory is different from the output trajectory and we have 't' in the description file. 
    462462    //! In this case we have to translate the instants from the inTraj to the outTraj. 
    463     short relt;    
     463    short relt; 
    464464    bool ctinType;  //!< True if ctin, false if ctinm. 
    465465 
     
    470470/** 
    471471 * Allows to have a nice and automatic visualization of the Connection object elements.  
    472  * In this method we retrive the value of significant property: "from", "N° output", "Ci", "Cj", "Ck", "Ct", "to", "N° input". 
     472 * In this method we retrive the value of significant property: "from", "Nï¿œ output", "Ci", "Cj", "Ck", "Ct", "to", "Nï¿œ input". 
    473473 * In function of the integer in input to the method we retrieve the respective property. 
    474474 * @param anIndex is the number of property required. 
  • trunk/yao/src/YAOObjects/Operator.hpp

    r1 r488  
    4949       */ 
    5050      Operator(const std::string& aName=""):  
    51         Component<Trajectory>(aName, 0), theType(Operator::M), counterOrderHeader(false), counterOrderBody(false){} 
     51        Component<Trajectory>(aName, 0), counterOrderHeader(false), counterOrderBody(false), theType(Operator::M) {} 
    5252 
    5353      /** 
     
    5959       */ 
    6060      Operator(const std::string& aName, const Trajectory* aParent, std::vector<int> aShape, Type aType=Operator::M): 
    61         Component<Trajectory>(aName, aParent), SpaceExtent(aShape), theType(aType), counterOrderHeader(false), counterOrderBody(false){} 
     61        Component<Trajectory>(aName, aParent), SpaceExtent(aShape), counterOrderHeader(false), counterOrderBody(false), theType(aType){} 
    6262 
    6363      /** 
  • trunk/yao/src/YAOObjects/Order.cpp

    r484 r488  
    210210 */ 
    211211void Order::reverseTokenList(struct st_token *atoken){   
    212         struct st_token *q0, *q1;           // Pointer on the begin of the list_inst of the chain. 
     212        struct st_token *q0=NULL, *q1=NULL;         // Pointer on the begin of the list_inst of the chain. 
    213213        struct st_token *p1, *p2, *pe;// Pointer that allow the reverse of the list elements and that progress each time 
    214214 
     
    360360        // ----------------------------------------------------------------------------  
    361361 
    362         int nbSpace; 
     362        int nbSpace = 0; 
    363363 
    364364        // For all the order object inside the order table 
     
    856856                        stringstream theConnection;  
    857857 
     858 
    858859                        theConnection << itSource -> getName() << "(" << tok_tab -> getI() << ", " << tok_tab -> getJ() << ", " << tok_tab -> getK() << ") ==> " << itTarget -> getName() << " : "; 
     860 
     861 
    859862 
    860863                        // Keep connections if the moduls are integrated in an order statement 
     
    12911294        // -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------   
    12921295 
    1293         if(itSource -> getAxisVal(numDim) > 0 && valCijk[itSource -> getAxisNumber(numDim) - 1] > 0) return 1;   
     1296        if(itSource -> getAxisVal(numDim) > 0 && valCijk[itSource -> getAxisNumber(numDim) - 1] > 0) 
     1297                return 1; 
    12941298 
    12951299}  
     
    13891393                        // --------------------------------------------------------- 
    13901394 
    1391                         for(int noTraj = 0; noTraj < trajVector.size(); noTraj++) 
     1395                        for(unsigned int noTraj = 0; noTraj < trajVector.size(); noTraj++) 
    13921396 
    13931397                                // If the trajectory match the current one, then it should be considerated as already integrated 
     
    14341438        // ----------------------- 
    14351439 
    1436         for(int i = 0; i < spacesList.size(); i++) add_vertex(spaceGraph); 
     1440        for(unsigned int i = 0; i < spacesList.size(); i++) add_vertex(spaceGraph); 
    14371441 
    14381442        // Register the space name inside each vertex 
     
    14981502        // ------------------------- 
    14991503 
    1500         for(int noTraj = 0; noTraj < trajVector.size(); noTraj++) { 
     1504        for(unsigned int noTraj = 0; noTraj < trajVector.size(); noTraj++) { 
    15011505 
    15021506                int orderId = -1; 
     
    15051509                // ------------------ 
    15061510 
    1507                 for(int noSpace = 0; noSpace < topoOrder.size(); noSpace++) { 
     1511                for(unsigned int noSpace = 0; noSpace < topoOrder.size(); noSpace++) { 
    15081512 
    15091513                        // In the order that have been defined to the spaces by the topological sort 
     
    15431547        // -------------------------------- 
    15441548 
    1545         for(int noTraj = 0; noTraj < trajOrder.size(); noTraj++) { 
     1549        for(unsigned int noTraj = 0; noTraj < trajOrder.size(); noTraj++) { 
    15461550 
    15471551                // For all the space numbers 
    15481552                // ------------------------- 
    15491553 
    1550                 for(int noSpace = 0; noSpace < topoOrder.size(); noSpace++) { 
     1554                for(unsigned int noSpace = 0; noSpace < topoOrder.size(); noSpace++) { 
    15511555 
    15521556                        // In the order that have been defined to the spaces by the topological sort 
     
    18091813 
    18101814 
    1811         /* 
     1815 
    18121816         * Perform the spaceintraj writting. 
    18131817         * For each trajectory in the trajectories order that have been performed (maybe not needed). 
     
    18191823        // -------------------------------- 
    18201824 
    1821         for(int noTraj = 0; noTraj < trajOrder.size(); noTraj++) { 
     1825        for(unsigned int noTraj = 0; noTraj < trajOrder.size(); noTraj++) { 
    18221826 
    18231827                ofstream hiddenFile; 
     
    18481852                // ------------------------- 
    18491853 
    1850                 for(int noSpace = 0; noSpace < topoOrder.size(); noSpace++) { 
     1854                for(unsigned int noSpace = 0; noSpace < topoOrder.size(); noSpace++) { 
    18511855 
    18521856                        // In the order that have been defined to the spaces by the topological sort 
     
    18911895 
    18921896 
    1893 int Order::getModulIndex(string mod, const vector<string>& tab, int index) { for(int i = 0; i < index; i++) if(tab[i] == mod) return i; } 
     1897int Order::getModulIndex(string mod, const vector<string>& tab, int index) 
     1898{ 
     1899        for(int i = 0; i < index; i++) 
     1900                if(tab[i] == mod) 
     1901                        return i; 
     1902} 
    18941903 
    18951904void Order::to3D(int nbDim, vector<int>& valCi, vector<int>& valCj, vector<int>& valCk, int nbEdges) { 
     
    19191928        // --------------------------------------------------------------- 
    19201929 
    1921         for(int i = 0; i < modulList.size(); i++) add_vertex(currentGraph); 
    1922  
    1923         for(int i = 0; i < edgeArray.size(); i++) add_edge(edgeArray[i].first, edgeArray[i].second, currentGraph); 
     1930        for(unsigned int i = 0; i < modulList.size(); i++) add_vertex(currentGraph); 
     1931 
     1932        for(unsigned int i = 0; i < edgeArray.size(); i++) add_edge(edgeArray[i].first, edgeArray[i].second, currentGraph); 
    19241933 
    19251934 
     
    19791988        // ----------------------------------------------------- 
    19801989 
    1981         for(int noComp3D = 0; noComp3D < outerComp.size(); noComp3D++) { 
     1990        for(unsigned int noComp3D = 0; noComp3D < outerComp.size(); noComp3D++) { 
    19821991 
    19831992                // Display all relevant informations on components : dimension and sign of the three first axis 
     
    19992008        // ------------------------------------------------------ 
    20002009 
    2001         for(int noComp3D = 0; noComp3D < outerComp.size(); noComp3D++) { 
     2010        for(unsigned int noComp3D = 0; noComp3D < outerComp.size(); noComp3D++) { 
    20022011 
    20032012                //  For all 2D component embedded in the vector middleComp 
    20042013                // ------------------------------------------------------- 
    20052014 
    2006                 for(int noComp2D = 0; noComp2D < middleComp[noComp3D][noFixed1].size(); noComp2D++) { 
     2015                for(unsigned int noComp2D = 0; noComp2D < middleComp[noComp3D][noFixed1].size(); noComp2D++) { 
    20072016 
    20082017                        // For all 1D component embedded in the vector innerComp 
    20092018                        // ----------------------------------------------------- 
    20102019 
    2011                         for(int noComp1D = 0; noComp1D < innerComp[noComp3D][noFixed1][noComp2D][noFixed2].size(); noComp1D++)  { 
     2020                        for(unsigned int noComp1D = 0; noComp1D < innerComp[noComp3D][noFixed1][noComp2D][noFixed2].size(); noComp1D++)  { 
    20122021 
    20132022                                // Display all relevant informations on components : dimension and sign of the remaining axis then embedded moduls 
     
    20192028                                                << innerComp[noComp3D][noFixed1][noComp2D][noFixed2][noComp1D].cfcSign[0].second << ", modulees : "; 
    20202029 
    2021                                 for(int noMod = 0; noMod < innerComp[noComp3D][noFixed1][noComp2D][noFixed2][noComp1D].embeddedModuls.size(); noMod++) { 
     2030                                for(unsigned int noMod = 0; noMod < innerComp[noComp3D][noFixed1][noComp2D][noFixed2][noComp1D].embeddedModuls.size(); noMod++) { 
    20222031 
    20232032                                        cout << boost::get(boost::vertex_name_t(), myGraph, innerComp[noComp3D][noFixed1][noComp2D][noFixed2][noComp1D].embeddedModuls[noMod]) << " "; 
     
    20532062        // ----------------------------------------------------------------------------- 
    20542063 
    2055         for(int i = 0; i < outerComponentsList.size(); i++) put(get(boost::vertex_affected_comp_t(), myGraph), i, outerComponentsList[i]); 
     2064        for(unsigned int i = 0; i < outerComponentsList.size(); i++) put(get(boost::vertex_affected_comp_t(), myGraph), i, outerComponentsList[i]); 
    20562065 
    20572066        // Setting the number of components that have been detected 
     
    23942403                vector<cfcStruct> sortedOuterCfcStructTable; 
    23952404 
    2396                 for(int noComponent = 0; noComponent < topoOrder.size(); noComponent++) { 
     2405                for(unsigned int noComponent = 0; noComponent < topoOrder.size(); noComponent++) { 
    23972406 
    23982407                        sortedOuterCfcStructTable.push_back(outerComp[topoOrder[noComponent]]); 
     
    24062415                outerComp.clear(); 
    24072416 
    2408                 for(int noComponent = 0; noComponent < topoOrder.size(); noComponent++) { 
     2417                for(unsigned int noComponent = 0; noComponent < topoOrder.size(); noComponent++) { 
    24092418 
    24102419                        isImposed[noComponent][0] = sortedIsImposed[noComponent][0]; 
     
    24322441        // ---------------------------------------------------------------------------------------- 
    24332442 
    2434         for(int noComp3D = 0; noComp3D <  outerComp.size(); noComp3D++) middleComp[noComp3D]  = new cfcStructTableType[3]; 
     2443        for(unsigned int noComp3D = 0; noComp3D <  outerComp.size(); noComp3D++) middleComp[noComp3D]  = new cfcStructTableType[3]; 
    24352444 
    24362445        // Set the inner component (1D) array second dimension to 3 (one by first fixed dimension) 
    24372446        // --------------------------------------------------------------------------------------- 
    24382447 
    2439         for(int noComp3D = 0; noComp3D <  outerComp.size(); noComp3D++) innerComp[noComp3D]  = new cfcStructTableType**[3]; 
     2448        for(unsigned int noComp3D = 0; noComp3D <  outerComp.size(); noComp3D++) innerComp[noComp3D]  = new cfcStructTableType**[3]; 
    24402449 
    24412450        // For each 3D component 
    24422451        // --------------------- 
    24432452 
    2444         for(int noComp = 0; noComp <  outerComp.size(); noComp++) { 
     2453        for(unsigned int noComp = 0; noComp <  outerComp.size(); noComp++) { 
    24452454 
    24462455                // Create a graph that just contain vertices and edges included in the current 3D component (ie extract the current 3D component from the main graph) 
     
    25112520        // ----------------------------------- 
    25122521 
    2513         for(int i = 0; i < edgeIterVector.size(); i++) 
     2522        for(unsigned int i = 0; i < edgeIterVector.size(); i++) 
    25142523 
    25152524                // If the edge does not connect two nodes of the component "noComp" given as parameter (ie. if the edge is not fully integrated in the comoponent) 
     
    25432552        // ----------------------------------- 
    25442553 
    2545         for(int i = 0; i < vertexIterVector.size(); i++) 
     2554        for(unsigned int i = 0; i < vertexIterVector.size(); i++) 
    25462555 
    25472556                // If the vertex is not a part of the component "noComp" given as parameter 
     
    25622571        cout << endl << "showMiddle(" << noFixed1 << ")"; 
    25632572 
    2564         for(int noComp3D = 0; noComp3D < outerComp.size(); noComp3D++) { 
    2565  
    2566                 for(int noComp2D = 0; noComp2D < middleComp[noComp3D][noFixed1].size(); noComp2D++) { 
     2573        for(unsigned int noComp3D = 0; noComp3D < outerComp.size(); noComp3D++) { 
     2574 
     2575                for(unsigned int noComp2D = 0; noComp2D < middleComp[noComp3D][noFixed1].size(); noComp2D++) { 
    25672576 
    25682577                        cout << endl    << "middleComp[" << noComp3D << "][" << noFixed1 << "][" << noComp2D << "].cfcSign[0].first : " 
     
    25742583                        cout << endl; 
    25752584 
    2576                         for(int noMod = 0; noMod < middleComp[noComp3D][noFixed1][noComp2D].embeddedModuls.size(); noMod++) { 
     2585                        for(unsigned int noMod = 0; noMod < middleComp[noComp3D][noFixed1][noComp2D].embeddedModuls.size(); noMod++) { 
    25772586 
    25782587                                cout << endl << "middleComp[" << noComp3D << "][" << noFixed1 << "][" << noComp2D << "].EmbeddedModuls[" << noMod << "] : " 
     
    26432652        // -------------------------------------------------------------------------------------------------------------- 
    26442653 
    2645         for(int noVertex = 0; noVertex < boost::num_vertices(upperGraph); noVertex++) add_vertex(outGraph); 
     2654        for(unsigned int noVertex = 0; noVertex < boost::num_vertices(upperGraph); noVertex++) add_vertex(outGraph); 
    26462655 
    26472656        // Add one edge for each edge of the graph that have to be copied (the vertices are created with the same indexes than in the original graph and then the edges connect the right vertices) 
     
    30353044        // ---------------------------------------------------------------------------------- 
    30363045 
    3037         for(int i = 0; i < fixedComponentsList.size(); i++) put(get(boost::vertex_affected_comp_t(), currentGraph), i, fixedComponentsList[i]); 
     3046        for(unsigned int i = 0; i < fixedComponentsList.size(); i++) put(get(boost::vertex_affected_comp_t(), currentGraph), i, fixedComponentsList[i]); 
    30383047 
    30393048        // Get the number of 1D components detected 
     
    30623071        // ---------------------------------- 
    30633072 
    3064         for(int noComp1D = 0; noComp1D < innerComp[noComp3D][noFixed1][noComp2D][noFixed2].size(); noComp1D++) { 
     3073        for(unsigned int noComp1D = 0; noComp1D < innerComp[noComp3D][noFixed1][noComp2D][noFixed2].size(); noComp1D++) { 
    30653074 
    30663075                innerComp[noComp3D][noFixed1][noComp2D][noFixed2][noComp1D].cfcSign.resize(1); 
     
    30733082        // -------------------------------------------------------------------------------- 
    30743083 
    3075         for(int i = 0; i < fixedComponentsList.size(); i++) { 
     3084        for(unsigned int i = 0; i < fixedComponentsList.size(); i++) { 
    30763085 
    30773086                innerComp[noComp3D][noFixed1][noComp2D][noFixed2][fixedComponentsList[i]].embeddedModuls.push_back(boost::get(boost::vertex_original_id_t(), currentGraph, i)); 
     
    31243133        boost::topological_sort(currentGraph, std::front_inserter(topoOrder), boost::vertex_index_map(boost::identity_property_map())); 
    31253134 
    3126         for(int i = 0; i < topoOrder.size(); i++) put(get(boost::vertex_topo_order_t(), currentGraph), topoOrder[i], i); 
     3135        for(unsigned int i = 0; i < topoOrder.size(); i++) put(get(boost::vertex_topo_order_t(), currentGraph), topoOrder[i], i); 
    31273136 
    31283137        // ETAPE 5.2 DE LA PROCEDURE A UNE DIMENSION 
     
    31323141        // ----------------------------------------------------- 
    31333142 
    3134         for(int noComp1D = 0; noComp1D < innerComp[noComp3D][noFixed1][noComp2D][noFixed2].size(); noComp1D++) { 
    3135  
    3136                 for(int noMod = 0; noMod < innerComp[noComp3D][noFixed1][noComp2D][noFixed2][noComp1D].embeddedModuls.size(); noMod++) { 
    3137  
    3138                         for(int noMod2 = noMod + 1; noMod2 < innerComp[noComp3D][noFixed1][noComp2D][noFixed2][noComp1D].embeddedModuls.size(); noMod2++) { 
     3143        for(unsigned int noComp1D = 0; noComp1D < innerComp[noComp3D][noFixed1][noComp2D][noFixed2].size(); noComp1D++) { 
     3144 
     3145                for(unsigned int noMod = 0; noMod < innerComp[noComp3D][noFixed1][noComp2D][noFixed2][noComp1D].embeddedModuls.size(); noMod++) { 
     3146 
     3147                        for(unsigned int noMod2 = noMod + 1; noMod2 < innerComp[noComp3D][noFixed1][noComp2D][noFixed2][noComp1D].embeddedModuls.size(); noMod2++) { 
    31393148 
    31403149                                if(get(boost::vertex_topo_order_t(), currentGraph, innerComp[noComp3D][noFixed1][noComp2D][noFixed2][noComp1D].embeddedModuls[noMod])  > 
     
    31773186                vector<cfcStruct> sortedCfcStructTable; 
    31783187 
    3179                 for(int noComponent = 0; noComponent < reducedTopoOrder.size(); noComponent++) sortedCfcStructTable.push_back(innerComp[noComp3D][noFixed1][noComp2D][noFixed2][reducedTopoOrder[noComponent]]); 
     3188                for(unsigned int noComponent = 0; noComponent < reducedTopoOrder.size(); noComponent++) sortedCfcStructTable.push_back(innerComp[noComp3D][noFixed1][noComp2D][noFixed2][reducedTopoOrder[noComponent]]); 
    31803189 
    31813190                innerComp[noComp3D][noFixed1][noComp2D][noFixed2].clear(); 
    31823191 
    3183                 for(int noComponent = 0; noComponent < reducedTopoOrder.size(); noComponent++) innerComp[noComp3D][noFixed1][noComp2D][noFixed2].push_back(sortedCfcStructTable[noComponent]); 
     3192                for(unsigned int noComponent = 0; noComponent < reducedTopoOrder.size(); noComponent++) innerComp[noComp3D][noFixed1][noComp2D][noFixed2].push_back(sortedCfcStructTable[noComponent]); 
    31843193 
    31853194        } 
     
    32103219        // ------------------------------- 
    32113220 
    3212         for(int i = 0; i < edgeIterVector.size(); i++) { 
     3221        for(unsigned int i = 0; i < edgeIterVector.size(); i++) { 
    32133222 
    32143223                // If the sign value for the edge is not null for the dimension "noFixedDim" given as parameter, then delete the edge 
     
    32843293        // ------------------------------------------------------------------------------ 
    32853294 
    3286         for(int i = 0; i < middleComponentsList.size(); i++) put(get(boost::vertex_affected_comp_t(), fixedGraph), i, middleComponentsList[i]); 
     3295        for(unsigned int i = 0; i < middleComponentsList.size(); i++) put(get(boost::vertex_affected_comp_t(), fixedGraph), i, middleComponentsList[i]); 
    32873296 
    32883297        // Setting the number of components that have been detected 
     
    34613470                vector<cfcStruct> sortedCfcStructTable; 
    34623471 
    3463                 for(int noComponent = 0; noComponent < topoOrder.size(); noComponent++) sortedCfcStructTable.push_back(middleComp[noComp][fixedDim][topoOrder[noComponent]]); 
     3472                for(unsigned int noComponent = 0; noComponent < topoOrder.size(); noComponent++) sortedCfcStructTable.push_back(middleComp[noComp][fixedDim][topoOrder[noComponent]]); 
    34643473 
    34653474                middleComp[noComp][fixedDim].clear(); 
    34663475 
    3467                 for(int noComponent = 0; noComponent < topoOrder.size(); noComponent++) middleComp[noComp][fixedDim].push_back(sortedCfcStructTable[noComponent]); 
     3476                for(unsigned int noComponent = 0; noComponent < topoOrder.size(); noComponent++) middleComp[noComp][fixedDim].push_back(sortedCfcStructTable[noComponent]); 
    34683477 
    34693478        } 
     
    35373546        // ----------------------------------------------- 
    35383547 
    3539         for(int noComp3D = 0; noComp3D < outerComp.size(); noComp3D++) { 
     3548        for(unsigned int noComp3D = 0; noComp3D < outerComp.size(); noComp3D++) { 
    35403549 
    35413550                // For all the components embedded in the 2D graph coming from the current 3D component 
    35423551                // ------------------------------------------------------------------------------------ 
    35433552 
    3544                 for(int noComp2D = 0; noComp2D < middleComp[noComp3D][0].size(); noComp2D++)  { 
     3553                for(unsigned int noComp2D = 0; noComp2D < middleComp[noComp3D][0].size(); noComp2D++)  { 
    35453554 
    35463555                        // For all the components embedded in the 1D graph coming from the current 2D component 
    35473556                        // ------------------------------------------------------------------------------------ 
    35483557 
    3549                         for(int noComp1D = 0; noComp1D < innerComp[noComp3D][0][noComp2D][1].size(); noComp1D++)  { 
     3558                        for(unsigned int noComp1D = 0; noComp1D < innerComp[noComp3D][0][noComp2D][1].size(); noComp1D++)  { 
    35503559 
    35513560                                // Get the value of the first axis (third in the data structure as it is a 3D data structure, no need to get the number of the axis as there is only one) 
     
    35673576                                // -------------------------------------------------------- 
    35683577 
    3569                                 for(int noMod = 0; noMod < innerComp[noComp3D][0][noComp2D][1][noComp1D].embeddedModuls.size(); noMod++) { 
     3578                                for(unsigned int noMod = 0; noMod < innerComp[noComp3D][0][noComp2D][1][noComp1D].embeddedModuls.size(); noMod++) { 
    35703579 
    35713580                                        // Insert the modules after the paramaters 
     
    35993608        // ---------------------------------------- 
    36003609 
    3601         for(int noComp3D = 0; noComp3D < outerComp.size(); noComp3D++) { 
     3610        for(unsigned int noComp3D = 0; noComp3D < outerComp.size(); noComp3D++) { 
    36023611 
    36033612                // For all components in the 2D graph coming from the current 3D component with the first axis fixed 
    36043613                // ------------------------------------------------------------------------------------------------- 
    36053614 
    3606                 for(int noComp2D = 0; noComp2D < middleComp[noComp3D][0].size(); noComp2D++)  { 
     3615                for(unsigned int noComp2D = 0; noComp2D < middleComp[noComp3D][0].size(); noComp2D++)  { 
    36073616 
    36083617                        // Get the the the first axis dimension (second in the data structure as it is a 3D data structure) 
     
    36503659                                // ----------------------------------------------------------------------------------------------------- 
    36513660 
    3652                                 for(int noComp1D = 0; noComp1D < innerComp[noComp3D][0][noComp2D][noFixed1].size(); noComp1D++) { 
     3661                                for(unsigned int noComp1D = 0; noComp1D < innerComp[noComp3D][0][noComp2D][noFixed1].size(); noComp1D++) { 
    36533662 
    36543663                                        // For all the moduls embedded in the current 1D component 
    36553664                                        // ------------------------------------------------------- 
    36563665 
    3657                                         for(int noMod = 0; noMod < innerComp[noComp3D][0][noComp2D][noFixed1][noComp1D].embeddedModuls.size(); noMod++) { 
     3666                                        for(unsigned int noMod = 0; noMod < innerComp[noComp3D][0][noComp2D][noFixed1][noComp1D].embeddedModuls.size(); noMod++) { 
    36583667 
    36593668                                                // Insert the modul name in the current order parameter 
     
    36793688                                // ------------------------------------------------------------------------------------------------- 
    36803689 
    3681                                 for(int noComp1D = 0; noComp1D < innerComp[noComp3D][0][noComp2D][noFixed1].size(); noComp1D++) { 
     3690                                for(unsigned int noComp1D = 0; noComp1D < innerComp[noComp3D][0][noComp2D][noFixed1].size(); noComp1D++) { 
    36823691 
    36833692                                        // Get the second axis dimension (third in the data structure as it is a 3D data structure) 
     
    37043713                                        // ------------------------------------------------------- 
    37053714 
    3706                                         for(int noMod = 0; noMod < innerComp[noComp3D][0][noComp2D][noFixed1][noComp1D].embeddedModuls.size(); noMod++) { 
     3715                                        for(unsigned int noMod = 0; noMod < innerComp[noComp3D][0][noComp2D][noFixed1][noComp1D].embeddedModuls.size(); noMod++) { 
    37073716 
    37083717                                                // Insert the modul name in the current order parameter 
     
    37383747        // ----------------------------------------------- 
    37393748 
    3740         for(int noComp3D = 0; noComp3D < outerComp.size(); noComp3D++) { 
     3749        for(unsigned int noComp3D = 0; noComp3D < outerComp.size(); noComp3D++) { 
    37413750 
    37423751                // Get the axis number (dimension) and the axis value of the first axis crossed in the order statement 
     
    37893798                                // ----------------------------------------------------------------------------------------------------------------------- 
    37903799 
    3791                                 for(int noComp2D = 0; noComp2D < middleComp[noComp3D][noFixed1].size(); noComp2D++) { 
     3800                                for(unsigned int noComp2D = 0; noComp2D < middleComp[noComp3D][noFixed1].size(); noComp2D++) { 
    37923801 
    37933802                                        // Get the number of the second axis crossed in the order statement 
     
    37993808                                        // ------------------------------------------------------------------------------------------------------------------------- 
    38003809 
    3801                                         for(int noComp1D= 0; noComp1D < innerComp[noComp3D][noFixed1][noComp2D][noAxis2].size(); noComp1D++) { 
     3810                                        for(unsigned int noComp1D= 0; noComp1D < innerComp[noComp3D][noFixed1][noComp2D][noAxis2].size(); noComp1D++) { 
    38023811 
    38033812                                                // For all moduls embedded in the current 1D graph component 
    38043813                                                // --------------------------------------------------------- 
    38053814 
    3806                                                 for(int noMod = 0; noMod < innerComp[noComp3D][noFixed1][noComp2D][noAxis2][noComp1D].embeddedModuls.size(); noMod++) { 
     3815                                                for(unsigned int noMod = 0; noMod < innerComp[noComp3D][noFixed1][noComp2D][noAxis2][noComp1D].embeddedModuls.size(); noMod++) { 
    38073816 
    38083817                                                        // Display the modul name (that will appear after the order paramaters that have been read before) 
     
    38273836                                // ----------------------------------------------------------------------------------------------------------------------- 
    38283837 
    3829                                 for(int noComp2D = 0; noComp2D < middleComp[noComp3D][noFixed1].size(); noComp2D++) { 
     3838                                for(unsigned int noComp2D = 0; noComp2D < middleComp[noComp3D][noFixed1].size(); noComp2D++) { 
    38303839 
    38313840 
     
    38383847                                        // ------------------------------------------------------------------------------------------------------------------------- 
    38393848 
    3840                                         for(int noComp1D = 0; noComp1D < innerComp[noComp3D][noFixed1][noComp2D][noAxis2].size(); noComp1D++) { 
     3849                                        for(unsigned int noComp1D = 0; noComp1D < innerComp[noComp3D][noFixed1][noComp2D][noAxis2].size(); noComp1D++) { 
    38413850 
    38423851                                                // Get the number of the third axis crossed in the order statement 
     
    38643873                                                // --------------------------------------------------------- 
    38653874 
    3866                                                 for(int noMod = 0; noMod < innerComp[noComp3D][noFixed1][noComp2D][noAxis2][noComp1D].embeddedModuls.size(); noMod++) { 
     3875                                                for(unsigned int noMod = 0; noMod < innerComp[noComp3D][noFixed1][noComp2D][noAxis2][noComp1D].embeddedModuls.size(); noMod++) { 
    38673876 
    38683877                                                        // Display the modul name (that will appear after the order paramaters that have been read before) 
     
    38913900                        // ----------------------------------------------------------------------------------------------------------------------- 
    38923901 
    3893                         for(int noComp2D = 0; noComp2D < middleComp[noComp3D][noFixed1].size(); noComp2D++) { 
     3902                        for(unsigned int noComp2D = 0; noComp2D < middleComp[noComp3D][noFixed1].size(); noComp2D++) { 
    38943903 
    38953904                                // Get the number of the second axis crossed in the order statement 
     
    39423951                                                // ------------------------------------------------------------------------------------------------------------------------------ 
    39433952 
    3944                                                 for(int noComp1D= 0; noComp1D < innerComp[noComp3D][noFixed1][noComp2D][noAxis2].size(); noComp1D++) { 
     3953                                                for(unsigned int noComp1D= 0; noComp1D < innerComp[noComp3D][noFixed1][noComp2D][noAxis2].size(); noComp1D++) { 
    39453954 
    39463955                                                        // For all moduls embedded in the current 1D graph component 
    39473956                                                        // --------------------------------------------------------- 
    39483957 
    3949                                                         for(int noMod = 0; noMod < innerComp[noComp3D][noFixed1][noComp2D][noAxis2][noComp1D].embeddedModuls.size(); noMod++) { 
     3958                                                        for(unsigned int noMod = 0; noMod < innerComp[noComp3D][noFixed1][noComp2D][noAxis2][noComp1D].embeddedModuls.size(); noMod++) { 
    39503959 
    39513960                                                                // Display the modul name (that will appear after the order paramaters that have been readen before) 
     
    39703979                                                // ------------------------------------------------------------------------------------------------------------------------------ 
    39713980 
    3972                                                 for(int noComp1D= 0; noComp1D < innerComp[noComp3D][noFixed1][noComp2D][noAxis2].size(); noComp1D++) { 
     3981                                                for(unsigned int noComp1D= 0; noComp1D < innerComp[noComp3D][noFixed1][noComp2D][noAxis2].size(); noComp1D++) { 
    39733982 
    39743983                                                        // Get the number of the third axis crossed in the order statement 
     
    39964005                                                        // --------------------------------------------------------- 
    39974006 
    3998                                                         for(int noMod = 0; noMod < innerComp[noComp3D][noFixed1][noComp2D][noAxis2][noComp1D].embeddedModuls.size(); noMod++) { 
     4007                                                        for(unsigned int noMod = 0; noMod < innerComp[noComp3D][noFixed1][noComp2D][noAxis2][noComp1D].embeddedModuls.size(); noMod++) { 
    39994008 
    40004009                                                                // Display the modul name (that will appear after the order paramaters that have been readen before) 
     
    43114320        // ------------------------------- 
    43124321 
    4313         for(int i = 0; i < edgeIterVector.size(); i++) boost::remove_edge(*(edgeIterVector[i]), currentGraph); 
     4322        for(unsigned int i = 0; i < edgeIterVector.size(); i++) boost::remove_edge(*(edgeIterVector[i]), currentGraph); 
    43144323 
    43154324        // Putting iterators inside a vector is more convenient , especially for deletions 
     
    43334342        // ----------------------------------- 
    43344343 
    4335         for(int i = 0; i < vertexIterVector.size(); i++) boost::remove_vertex(*(vertexIterVector[i]), currentGraph); 
     4344        for(unsigned int i = 0; i < vertexIterVector.size(); i++) 
     4345                boost::remove_vertex(*(vertexIterVector[i]), currentGraph); 
    43364346 
    43374347 
  • trunk/yao/src/YAOObjects/Order.hpp

    r480 r488  
    199199  /** 
    200200   *  Set up all the loops by scanning the order directives. 
     201   *  For each module, adds order information (axis order and direction, sequence with other modules, loop identifier ) 
    201202   */ 
    202203  void setLoop(Table<Connection>& theConnectionTable, Table<Modul>& theModulTable, Table<Space>& theSpaceTable, Table<Operator>& theOperatorTable, Table<Order>& theOrderTable); 
     
    274275 
    275276   /** 
    276     *  A string that contain the project name given as a paramater to automaticOrderGenerator (declared here to avoid changing all the function calls) 
     277    *  A string that contain the project name given as a parameter to automaticOrderGenerator (declared here to avoid changing all the function calls) 
    277278    */ 
    278279   string theProject; 
  • trunk/yao/src/YAOObjects/SpaceExtent.hpp

    r1 r488  
    5555       */ 
    5656      int getYA(short YAx) const { 
    57         if(YAx==1) return theShape.size()? theShape[0] : 0; 
    58         if(YAx==2) return theShape.size() >= 2? theShape[1] : 0; 
    59         if(YAx==3) return theShape.size() == 3? theShape[2] : 0; 
     57          if(YAx==1) return theShape.size()? theShape[0] : 0; 
     58          if(YAx==2) return theShape.size() >= 2? theShape[1] : 0; 
     59          if(YAx==3) return theShape.size() == 3? theShape[2] : 0; 
     60          // Erroneous case 
     61          // 0 is better than nothing.. 
     62          return 0; 
    6063      } 
    6164     
Note: See TracChangeset for help on using the changeset viewer.