qaTree/functions/gfunc.cpp
// isEmpty
// input: project or category name 
// output: whether it is empty or not
isEmpty
input: project or category name
output: whether it is empty or not
isEmpty input : project or category name output : whether it is empty or not
bool isEmpty(qaTree* root) {
   if (root == NULL) {
      printf("error; no such root");
      return false;
   }
   if ((root->children.empty()) && (root->cachildren.empty())) {
      return true;
   }
   return false;
}
bool isEmpty ( qaTree * root ) { if ( root == NULL ) { printf ( " " ) ; return false ; } if ( ( root -> children . empty ( ) ) && ( root -> cachildren . empty ( ) ) ) { return true ; } return false ; }
isEmpty
input: project or category name
output: whether it is empty or not
isEmpty input : project or category name output : whether it is empty or not
// double check that root has no attr or categ children