Changeset 352 for cpp/frams/model/similarity/simil_match.cpp
 Timestamp:
 04/17/15 00:51:37 (9 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

cpp/frams/model/similarity/simil_match.cpp
r349 r352 27 27 // fill vectors with "unmatched" indicator 28 28 int i; 29 for (i = 0; i < m_apvMatched[0]>size(); i++)29 for (i = 0; i < (int) m_apvMatched[0]>size(); i++) 30 30 { 31 31 m_apvMatched[0]>operator[](i) = 1; 32 32 } 33 for (i = 0; i < m_apvMatched[1]>size(); i++)33 for (i = 0; i < (int) m_apvMatched[1]>size(); i++) 34 34 { 35 35 m_apvMatched[1]>operator[](i) = 1; … … 86 86 // check parameters of object 0 87 87 assert((Obj0 == 0)  (Obj0 == 1)); 88 assert((Index0 >= 0) && (Index0 < m_apvMatched[Obj0]>size()));88 assert((Index0 >= 0) && (Index0 < (int) m_apvMatched[Obj0]>size())); 89 89 // check parameters of object 1 90 90 assert(((Obj1 == 0)  (Obj1 == 1)) && (Obj0 != Obj1)); 91 assert((Index1 >= 0) && (Index1 < m_apvMatched[Obj1]>size()));91 assert((Index1 >= 0) && (Index1 < (int) m_apvMatched[Obj1]>size())); 92 92 93 93 // match given elements … … 108 108 // check parameters 109 109 assert((Obj == 0)  (Obj == 1)); 110 assert((Index >= 0) && (Index < m_apvMatched[ Obj ]>size()));110 assert((Index >= 0) && (Index < (int) m_apvMatched[ Obj ]>size())); 111 111 112 112 // check if the element is matched … … 133 133 // check parameters 134 134 assert((Obj == 0)  (Obj == 1)); 135 assert((Index >= 0) && (Index < m_apvMatched[ Obj ]>size()));135 assert((Index >= 0) && (Index < (int) m_apvMatched[ Obj ]>size())); 136 136 137 137 // return the index of the matched element … … 163 163 164 164 // check if all elements of the smallest object are matched 165 for (nElem = 0; nElem < m_apvMatched[ nObj ]>size(); nElem++)165 for (nElem = 0; nElem < (int) m_apvMatched[ nObj ]>size(); nElem++) 166 166 { 167 167 if (m_apvMatched[ nObj ]>operator[](nElem) < 0) … … 189 189 // so it may be first object 190 190 int nObj = 0; 191 for (nElem = 0; nElem < m_apvMatched[ nObj ]>size(); nElem++)191 for (nElem = 0; nElem < (int) m_apvMatched[ nObj ]>size(); nElem++) 192 192 { 193 193 if (m_apvMatched[ nObj ]>operator[](nElem) >= 0) … … 212 212 { 213 213 // for each object in the matching 214 for (iElem = 0; iElem < m_apvMatched[ iObj ]>size(); iElem++)214 for (iElem = 0; iElem < (int) m_apvMatched[ iObj ]>size(); iElem++) 215 215 { 216 216 // for each element iElem for the object iObj … … 243 243 // print first line  indices of objects 244 244 printf("[ "); 245 for (i = 0; i < m_apvMatched[ nBigger ]>size(); i++)245 for (i = 0; i < (int) m_apvMatched[ nBigger ]>size(); i++) 246 246 { 247 247 printf("%2i ", i); … … 254 254 // for both objects  print out lines of matched elements 255 255 printf("[ "); 256 for (i = 0; i < m_apvMatched[ nObj ]>size(); i++)256 for (i = 0; i < (int) m_apvMatched[ nObj ]>size(); i++) 257 257 { 258 258 if (IsMatched(nObj, i))
Note: See TracChangeset
for help on using the changeset viewer.