model_server/api/src/QueryTree.cxx
//
// Convenience routines to calculate index <-> bitmask:
//
Convenience routines to calculate index <-> bitmask.
Convenience routines to calculate index < - > bitmask .
inline QTree::TreeCode IndexToCode(int index)
{
  int code = 1;
  for (int j = 0; j < index; j++)
    code *= 2;
  return (QTree::TreeCode)code;
}
inline QTree :: TreeCode IndexToCode ( int index ) { int code = 1 ; for ( int j = 0 ; j < index ; j ++ ) code *= 2 ; return ( QTree :: TreeCode ) code ; }
Convenience routines to calculate index <-> bitmask:
Convenience routines to calculate index < - > bitmask :