model_server/project/src/proj.h.cxx
//  determine whether the current project contains any sub projects
//  The constructor initializes the flag to 3, and the first time we are
//  called, we will set it to either 0 or 1.  Subsequent calls are fast.
determine whether the current project contains any sub projects
The constructor initializes the flag to 3, and the first time we are
called, we will set it to either 0 or 1.  Subsequent calls are fast.
determine whether the current project contains any sub projects The constructor initializes the flag to 3 and the first time we are called we will set it to either 0 or 1 . Subsequent calls are fast .
bool projNode::contain_sub_proj()
{
    Initialize(projNode::contain_sub_proj);
    if (subproj_flag==3) {
	if (this==get_control_project()) {
	    subproj_flag = 0;  
	} else {
	    projMap *pmap = get_projmap_for_projnode(this);
	    subproj_flag = pmap && pmap->get_view_flag() && pmap->contain_sub_proj();
	}
	if (!subproj_flag) subproj_pmod_flag = 0;  
    }
    return subproj_flag;
}
bool projNode :: contain_sub_proj ( ) { Initialize ( projNode :: contain_sub_proj ) ; if ( subproj_flag == 3 ) { if ( this == get_control_project ( ) ) { subproj_flag = 0 ; } else { projMap * pmap = get_projmap_for_projnode ( this ) ; subproj_flag = pmap && pmap -> get_view_flag ( ) && pmap -> contain_sub_proj ( ) ; } if ( ! subproj_flag ) subproj_pmod_flag = 0 ; } return subproj_flag ; }
determine whether the current project contains any sub projects
The constructor initializes the flag to 3, and the first time we are
called, we will set it to either 0 or 1.
determine whether the current project contains any sub projects The constructor initializes the flag to 3 and the first time we are called we will set it to either 0 or 1 .
// no subproj in control project // if no subprojects, no pmods there either