/ Return the number of pairs in this object. */ /
| 1050 | /* Return the number of pairs in this object. */ |
| 1051 | /***********************************************************************/ |
| 1052 | int JOBJECT::GetSize(bool b) { |
| 1053 | int n = 0; |
| 1054 | |
| 1055 | for (PJPR jpp = First; jpp; jpp = jpp->Next) |
| 1056 | // If b return only non null pairs |
| 1057 | if (!b || (jpp->Val && !jpp->Val->IsNull())) |
| 1058 | n++; |
| 1059 | |
| 1060 | return n; |
| 1061 | } // end of GetSize |
| 1062 | |
| 1063 | /***********************************************************************/ |
| 1064 | /* Add a new pair to an Object. */ |
no test coverage detected