Lines Matching defs:this

5  * you may not use this file except in compliance with the License.
299 static pico_status_t kdtDtInitialize(register picoknow_KnowledgeBase this,
313 if ((PICO_OK == picoos_read_mem_pi_uint16(this->base, &curpos, &inppos))
314 && (PICO_OK == picoos_read_mem_pi_uint16(this->base, &curpos, &outpos))
315 && (PICO_OK == picoos_read_mem_pi_uint16(this->base, &curpos,
320 dtp->inpmaptable = this->base + inppos;
321 dtp->outmaptable = this->base + outpos;
322 dtp->tree = this->base + treepos;
349 /* check if this is an empty table, ie. len == 3 */
354 /* verify that this is supposed to be an empty table and
398 static pico_status_t kdtDtCheck(register picoknow_KnowledgeBase this,
430 static pico_status_t kdtPosPInitialize(register picoknow_KnowledgeBase this,
437 if (NULL == this || NULL == this->subObj) {
441 dtposp = (kdtposp_subobj_t *)this->subObj;
444 if ((status = kdtDtInitialize(this, common, dt)) != PICO_OK) {
447 if ((status = kdtDtCheck(this, common, dt, PICOKDT_NRATT_POSP,
463 static pico_status_t kdtPosDInitialize(register picoknow_KnowledgeBase this,
470 if (NULL == this || NULL == this->subObj) {
474 dtposd = (kdtposd_subobj_t *)this->subObj;
477 if ((status = kdtDtInitialize(this, common, dt)) != PICO_OK) {
480 if ((status = kdtDtCheck(this, common, dt, PICOKDT_NRATT_POSD,
496 static pico_status_t kdtG2PInitialize(register picoknow_KnowledgeBase this,
503 if (NULL == this || NULL == this->subObj) {
507 dtg2p = (kdtg2p_subobj_t *)this->subObj;
510 if ((status = kdtDtInitialize(this, common, dt)) != PICO_OK) {
514 if ((status = kdtDtCheck(this, common, dt, PICOKDT_NRATT_G2P,
530 static pico_status_t kdtPhrInitialize(register picoknow_KnowledgeBase this,
537 if (NULL == this || NULL == this->subObj) {
541 dtphr = (kdtphr_subobj_t *)this->subObj;
544 if ((status = kdtDtInitialize(this, common,dt)) != PICO_OK) {
548 if ((status = kdtDtCheck(this, common, dt, PICOKDT_NRATT_PHR,
564 static pico_status_t kdtAccInitialize(register picoknow_KnowledgeBase this,
571 if (NULL == this || NULL == this->subObj) {
575 dtacc = (kdtacc_subobj_t *)this->subObj;
578 if ((status = kdtDtInitialize(this, common, dt)) != PICO_OK) {
582 if ((status = kdtDtCheck(this, common, dt, PICOKDT_NRATT_ACC,
598 static pico_status_t kdtPamInitialize(register picoknow_KnowledgeBase this,
605 if (NULL == this || NULL == this->subObj) {
609 dtpam = (kdtpam_subobj_t *)this->subObj;
612 if ((status = kdtDtInitialize(this, common, dt)) != PICO_OK) {
616 if ((status = kdtDtCheck(this, common, dt, PICOKDT_NRATT_PAM,
632 static pico_status_t kdtSubObjDeallocate(register picoknow_KnowledgeBase this,
634 if (NULL != this) {
635 picoos_deallocate(mm, (void *) &this->subObj);
645 pico_status_t picokdt_specializeDtKnowledgeBase(picoknow_KnowledgeBase this,
650 if (NULL == this) {
654 this->subDeallocate = kdtSubObjDeallocate;
657 this->subObj = picoos_allocate(common->mm,sizeof(kdtposp_subobj_t));
658 if (NULL == this->subObj) {
662 status = kdtPosPInitialize(this, common);
665 this->subObj = picoos_allocate(common->mm,sizeof(kdtposd_subobj_t));
666 if (NULL == this->subObj) {
670 status = kdtPosDInitialize(this, common);
673 this->subObj = picoos_allocate(common->mm,sizeof(kdtg2p_subobj_t));
674 if (NULL == this->subObj) {
678 status = kdtG2PInitialize(this, common);
681 this->subObj = picoos_allocate(common->mm,sizeof(kdtphr_subobj_t));
682 if (NULL == this->subObj) {
686 status = kdtPhrInitialize(this, common);
689 this->subObj = picoos_allocate(common->mm,sizeof(kdtacc_subobj_t));
690 if (NULL == this->subObj) {
694 status = kdtAccInitialize(this, common);
697 this->subObj = picoos_allocate(common->mm,sizeof(kdtpam_subobj_t));
698 if (NULL == this->subObj) {
702 status = kdtPamInitialize(this, common);
710 picoos_deallocate(common->mm, (void *) &this->subObj);
721 picokdt_DtPosP picokdt_getDtPosP(picoknow_KnowledgeBase this) {
722 return ((NULL == this) ? NULL : ((picokdt_DtPosP) this->subObj));
725 picokdt_DtPosD picokdt_getDtPosD(picoknow_KnowledgeBase this) {
726 return ((NULL == this) ? NULL : ((picokdt_DtPosD) this->subObj));
729 picokdt_DtG2P picokdt_getDtG2P (picoknow_KnowledgeBase this) {
730 return ((NULL == this) ? NULL : ((picokdt_DtG2P) this->subObj));
733 picokdt_DtPHR picokdt_getDtPHR (picoknow_KnowledgeBase this) {
734 return ((NULL == this) ? NULL : ((picokdt_DtPHR) this->subObj));
737 picokdt_DtACC picokdt_getDtACC (picoknow_KnowledgeBase this) {
738 return ((NULL == this) ? NULL : ((picokdt_DtACC) this->subObj));
741 picokdt_DtPAM picokdt_getDtPAM (picoknow_KnowledgeBase this) {
742 return ((NULL == this) ? NULL : ((picokdt_DtPAM) this->subObj));
815 static picoos_uint8 kdtIsVal(register kdt_subobj_t *this,
818 return ((this->treebody[iByteNo] & ((1)<<iBitNo)) > 0);
827 Input : this handle to a dt subobj
831 Notes : check that attind < this->nrattributes needed before calling
832 this function!
834 static picoos_uint8 kdtGetQFieldsVal(register kdt_subobj_t *this,
838 /* check of attind needed before calling this function */
839 return this->qfields[(attind * PICOKDT_NODEINFO_NRQFIELDS) + qind];
846 Input : this reference to the processing unit struct
854 static picoos_uint32 orig_kdtGetShiftVal(register kdt_subobj_t *this,
863 if ( (this->treebody[*iByteNo] & ((1)<<(*iBitNo))) > 0) {
876 static picoos_uint32 kdtGetShiftVal(register kdt_subobj_t *this,
887 if ((this->treebody[*iByteNo] & ((1) << (*iBitNo))) > 0) {
909 val = this->treebody[b++];
947 val = this->treebody[b++];
997 static picoos_int8 kdtAskTree(register kdt_subobj_t *this,
1015 iNodeType = kdtGetShiftVal(this, PICOKDT_NODETYPE_NRBITS, iByteNo, iBitNo);
1020 iQuestion = kdtGetShiftVal(this, this->vfields[eQuestion], iByteNo, iBitNo);
1021 if ((iQuestion < this->nrattributes) && (iQuestion < invecmax)) {
1024 this->dset = FALSE;
1041 iCut = kdtGetShiftVal(this, kdtGetQFieldsVal(this, iQuestion, eCut),
1050 kdtGetShiftVal(this,
1051 kdtGetQFieldsVal(this, iQuestion, eForkCount),
1056 kdtGetShiftVal(this, PICOKDT_SUBSETTYPE_NRBITS,
1062 kdt_jump(kdtGetQFieldsVal(this, iQuestion, eBitNo),
1067 kdtGetShiftVal(this,
1068 kdtGetQFieldsVal(this, iQuestion,
1078 kdt_jump((kdtGetQFieldsVal(this, iQuestion, eBitNo) +
1079 kdtGetQFieldsVal(this, iQuestion, eBitCount)),
1085 kdtGetShiftVal(this, kdtGetQFieldsVal(this, iQuestion,
1089 kdtGetShiftVal(this, kdtGetQFieldsVal(this, iQuestion,
1099 kdt_jump((kdtGetQFieldsVal(this, iQuestion, eBitNo) +
1100 kdtGetQFieldsVal(this, iQuestion, eBitCount)),
1106 kdtGetShiftVal(this, kdtGetQFieldsVal(this, iQuestion,
1110 kdtGetShiftVal(this, kdtGetQFieldsVal(this, iQuestion,
1121 kdt_jump(kdtGetQFieldsVal(this, iQuestion, eBitNo),
1125 kdtGetShiftVal(this,
1126 kdtGetQFieldsVal(this, iQuestion,
1132 kdtGetShiftVal(this,
1133 kdtGetQFieldsVal(this, iQuestion,
1144 /* if (kdtIsVal(this, *iByteNo, *iBitNo))*/
1145 if ((this->treebody[*iByteNo] & ((1)<<(*iBitNo))) > 0) {
1166 iIsDecide = kdtGetShiftVal(this, PICOKDT_ISDECIDE_NRBITS, iByteNo, iBitNo);
1173 kdtGetShiftVal(this, kdtGetQFieldsVal(this, iQuestion, eJump),
1176 this->dset = FALSE;
1179 kdt_jump(kdtGetQFieldsVal(this, iQuestion, eJump),
1185 iDecision = kdtGetShiftVal(this, this->vfields[eDecide],
1187 this->dclass = iDecision;
1188 this->dset = TRUE;
1192 kdt_jump(this->vfields[eDecide], iByteNo, iBitNo);
1197 this->dset = FALSE;
1544 picoos_uint8 picokdt_dtPosDreverseMapOutFixed(const picokdt_DtPosD this,
1549 kdtposd_subobj_t * dtposd = (kdtposd_subobj_t *)this;
1700 picoos_uint8 picokdt_dtPosPconstructInVec(const picokdt_DtPosP this,
1721 dtposp = (kdtposp_subobj_t *)this;
1861 picoos_uint8 picokdt_dtPosPclassify(const picokdt_DtPosP this) {
1868 dtposp = (kdtposp_subobj_t *)this;
1881 picoos_uint8 picokdt_dtPosPdecomposeOutClass(const picokdt_DtPosP this,
1886 dtposp = (kdtposp_subobj_t *)this;
1906 picoos_uint8 picokdt_dtPosDconstructInVec(const picokdt_DtPosD this,
1912 dtposd = (kdtposd_subobj_t *)this;
1943 picoos_uint8 picokdt_dtPosDclassify(const picokdt_DtPosD this,
1951 dtposd = (kdtposd_subobj_t *)this;
1973 picoos_uint8 picokdt_dtPosDdecomposeOutClass(const picokdt_DtPosD this,
1978 dtposd = (kdtposd_subobj_t *)this;
2036 picoos_uint8 picokdt_dtG2PconstructInVec(const picokdt_DtG2P this,
2057 dtg2p = (kdtg2p_subobj_t *)this;
2225 picoos_uint8 picokdt_dtG2Pclassify(const picokdt_DtG2P this,
2233 dtg2p = (kdtg2p_subobj_t *)this;
2252 picoos_uint8 picokdt_dtG2PdecomposeOutClass(const picokdt_DtG2P this,
2256 dtg2p = (kdtg2p_subobj_t *)this;
2275 picoos_uint8 picokdt_dtPHRconstructInVec(const picokdt_DtPHR this,
2289 dtphr = (kdtphr_subobj_t *)this;
2332 picoos_uint8 picokdt_dtPHRclassify(const picokdt_DtPHR this) {
2339 dtphr = (kdtphr_subobj_t *)this;
2352 picoos_uint8 picokdt_dtPHRdecomposeOutClass(const picokdt_DtPHR this,
2357 dtphr = (kdtphr_subobj_t *)this;
2376 picoos_uint8 picokdt_dtPAMconstructInVec(const picokdt_DtPAM this,
2383 dtpam = (kdtpam_subobj_t *)this;
2462 picoos_uint8 picokdt_dtPAMclassify(const picokdt_DtPAM this) {
2469 dtpam = (kdtpam_subobj_t *)this;
2482 picoos_uint8 picokdt_dtPAMdecomposeOutClass(const picokdt_DtPAM this,
2487 dtpam = (kdtpam_subobj_t *)this;
2506 picoos_uint8 picokdt_dtACCconstructInVec(const picokdt_DtACC this,
2525 dtacc = (kdtacc_subobj_t *)this;
2554 /* in input to this function the HISTORY_ZERO is used to
2556 this was not used in the training. For
2593 picoos_uint8 picokdt_dtACCclassify(const picokdt_DtACC this,
2601 dtacc = (kdtacc_subobj_t *)this;
2619 picoos_uint8 picokdt_dtACCdecomposeOutClass(const picokdt_DtACC this,
2624 dtacc = (kdtacc_subobj_t *)this;