Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualKhatharr

Posted 03 November 2012 - 05:01 AM

Couldn't you include the nested object pointer in the PODs and then write a function that takes the pointer as an argument and uses it to traverse the tree internally?

enum myClassBranchSide {BRANCH_LEFT, BRANCH_RIGHT};
myClassPOD* getBranchPOD(void* myClassChildPointer, myClassBranchSide side);

#4Khatharr

Posted 03 November 2012 - 05:01 AM

Couldn't you include the nested object pointer in the PODs and then write a function that takes the pointer as an argument and uses it to traverse the tree internally?

enum myClassBranchSide {BRANCH_LEFT, BRANCH_RIGHT};
myClassPOD* getBranchPOD(void* myClassPODChildPointer, myClassBranchSide side);

#3Khatharr

Posted 03 November 2012 - 04:50 AM

Couldn't you include the nested object pointer in the PODs and then write a function that takes the pointer as an argument and uses it to traverse the tree internally?

enum myClassBranchSide {BRANCH_LEFT, BRANCH_RIGHT};
void* getBranch(void* myClassPODChildPointer, myClassBranchSide side);

#2Khatharr

Posted 03 November 2012 - 04:49 AM

Couldn't you include the nested object pointer in the PODs and then write a function that takes the pointer as an argument and uses it to traverse the tree internally?

enum myClassBranchSide {BRANCH_LEFT, BRANCH_RIGHT};
void* getBranch(void* myClassPODChildPointer, myClassBranchSide);

#1Khatharr

Posted 03 November 2012 - 04:48 AM

Couldn't you include the nested object pointer in the PODs and then write a function that takes the pointer as an argument and uses it to traverse the tree internally?

enum myClassBranchSide {BRANCH_LEFT, BRANCH_RIGHT};
void* getBranch(void* myClassPODChildPointer, myClassBranchSide);

There's only a limited number of traversal request types (left and right), yes?

PARTNERS