Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
840 B

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997 - 1998
  6. //
  7. // File: mbnmod.cpp
  8. //
  9. //--------------------------------------------------------------------------
  10. #include <basetsd.h>
  11. #include "gmobj.h"
  12. #include "cliqset.h"
  13. void MBNET :: CreateInferEngine ( REAL rEstimatedMaximumSize )
  14. {
  15. DestroyInferEngine();
  16. ExpandCI();
  17. // Create the clique tree set object, push it onto the modifier stack
  18. // and activate it
  19. PushModifierStack( new GOBJMBN_CLIQSET( self, rEstimatedMaximumSize, _iInferEngID++ ) );
  20. }
  21. void MBNET :: DestroyInferEngine ()
  22. {
  23. MBNET_MODIFIER * pmodf = PModifierStackTop();
  24. if ( pmodf == NULL )
  25. return;
  26. if ( pmodf->EType() != GOBJMBN::EBNO_CLIQUE_SET )
  27. return;
  28. PopModifierStack();
  29. UnexpandCI();
  30. }