src/training/common/commontraining.cpp
LABELEDLIST FindList(LIST List, const std::string &Label) {
  LABELEDLIST LabeledList;

  iterate(List) {
    LabeledList = reinterpret_cast<LABELEDLIST>(List->first_node());
    if (LabeledList->Label == Label) {
      return (LabeledList);
    }
  }
  return (nullptr);

}
/*---------------------------------------------------------------------------*/
/**
 * This routine searches through a list of labeled lists to find
 * a list with the specified label.  If a matching labeled list
 * cannot be found, nullptr is returned.
 * @param List list to search
 * @param Label label to search for
 * @return Labeled list with the specified label or nullptr.
 * @note Globals: none
 */
This routine searches through a list of labeled lists to find
a list with the specified label.  If a matching labeled list
cannot be found, nullptr is returned.
@param List list to search
@param Label label to search for
@return Labeled list with the specified label or nullptr.
@note Globals: none
This routine searches through a list of labeled lists to find a list with the specified label . If a matching labeled list cannot be found nullptr is returned . @param List list to search @param Label label to search for @return Labeled list with the specified label or nullptr . @note Globals : none
LABELEDLIST FindList(LIST List, const std::string &Label) {
  LABELEDLIST LabeledList;
  iterate(List) {
    LabeledList = reinterpret_cast<LABELEDLIST>(List->first_node());
    if (LabeledList->Label == Label) {
      return (LabeledList);
    }
  }
  return (nullptr);
}
LABELEDLIST FindList ( LIST List , const std :: string & Label ) { LABELEDLIST LabeledList ; iterate ( List ) { LabeledList = reinterpret_cast < LABELEDLIST > ( List -> first_node ( ) ) ; if ( LabeledList -> Label == Label ) { return ( LabeledList ) ; } } return ( nullptr ) ; }
This routine searches through a list of labeled lists to find
 a list with the specified label.
This routine searches through a list of labeled lists to find a list with the specified label .