src/classify/adaptive.cpp
void AddAdaptedClass(ADAPT_TEMPLATES_STRUCT *Templates, ADAPT_CLASS_STRUCT *Class, CLASS_ID ClassId) {
  assert(Templates != nullptr);
  assert(Class != nullptr);
  assert(LegalClassId(ClassId));
  assert(UnusedClassIdIn(Templates->Templates, ClassId));
  assert(Class->NumPermConfigs == 0);

  auto IntClass = new INT_CLASS_STRUCT(1, 1);
  AddIntClass(Templates->Templates, ClassId, IntClass);

  assert(Templates->Class[ClassId] == nullptr);
  Templates->Class[ClassId] = Class;

}
/*---------------------------------------------------------------------------*/
/**
 * This routine adds a new adapted class to an existing
 * set of adapted templates.
 *
 * @param Templates set of templates to add new class to
 * @param Class new class to add to templates
 * @param ClassId class id to associate with new class
 *
 * @note Globals: none
 */
This routine adds a new adapted class to an existing
set of adapted templates.

@param Templates set of templates to add new class to
@param Class new class to add to templates
@param ClassId class id to associate with new class

@note Globals: none
This routine adds a new adapted class to an existing set of adapted templates . @param Templates set of templates to add new class to @param Class new class to add to templates @param ClassId class id to associate with new class @note Globals : none
void AddAdaptedClass(ADAPT_TEMPLATES_STRUCT *Templates, ADAPT_CLASS_STRUCT *Class, CLASS_ID ClassId) {
  assert(Templates != nullptr);
  assert(Class != nullptr);
  assert(LegalClassId(ClassId));
  assert(UnusedClassIdIn(Templates->Templates, ClassId));
  assert(Class->NumPermConfigs == 0);
  auto IntClass = new INT_CLASS_STRUCT(1, 1);
  AddIntClass(Templates->Templates, ClassId, IntClass);
  assert(Templates->Class[ClassId] == nullptr);
  Templates->Class[ClassId] = Class;
}
void AddAdaptedClass ( ADAPT_TEMPLATES_STRUCT * Templates , ADAPT_CLASS_STRUCT * Class , CLASS_ID ClassId ) { assert ( Templates != nullptr ) ; assert ( Class != nullptr ) ; assert ( LegalClassId ( ClassId ) ) ; assert ( UnusedClassIdIn ( Templates -> Templates , ClassId ) ) ; assert ( Class -> NumPermConfigs == 0 ) ; auto IntClass = new INT_CLASS_STRUCT ( 1 , 1 ) ; AddIntClass ( Templates -> Templates , ClassId , IntClass ) ; assert ( Templates -> Class [ ClassId ] == nullptr ) ; Templates -> Class [ ClassId ] = Class ; }
This routine adds a new adapted class to an existing
 set of adapted templates.
This routine adds a new adapted class to an existing set of adapted templates .