src/HSLib/GenOp.cc
/* Functions  Argument              Result                       Caution
   ---------  --------  --------------------------------  ---------------------
    FindRep      bs     Pointer to OpRep with basis bs     Return NULL !found
    SetRep       bs     Set WBR to OpRep with basis bs     Return 0 if unable
    LP_rep       -      Pointer to OpRep with low prior.         -----
 
 Note that LPR, the OpRep of lowest priority, is deleted in delete_rep. We hope 
 that higher priority reps are stored at list top from IBR and lower priority
 reps at the bottom of the list. WBR is preferentially NOT chosen as LPR.    */
Functions  Argument              Result                       Caution

FindRep      bs     Pointer to OpRep with basis bs     Return NULL !found
SetRep       bs     Set WBR to OpRep with basis bs     Return 0 if unable
LP_rep       -      Pointer to OpRep with low prior.

Note that LPR, the OpRep of lowest priority, is deleted in delete_rep. We hope
that higher priority reps are stored at list top from IBR and lower priority
reps at the bottom of the list. WBR is preferentially NOT chosen as LPR.
Functions Argument Result Caution FindRep bs Pointer to OpRep with basis bs Return NULL !found SetRep bs Set WBR to OpRep with basis bs Return 0 if unable LP_rep - Pointer to OpRep with low prior . Note that LPR the OpRep of lowest priority is deleted in delete_rep . We hope that higher priority reps are stored at list top from IBR and lower priority reps at the bottom of the list . WBR is preferentially NOT chosen as LPR .
const genoprep* gen_op::FindRep(const basis &bs) const
  {
  const genoprep* REP = NULL;		
  std::vector<genoprep>::const_iterator item;
  item = begin();			
  const genoprep* PTR = ObeginC();	
  while(item!=end() && !REP)		
    {
    if(PTR->RepBs == bs) REP=PTR;	
    PTR++;
    item++;
    }
  return REP;
  }
const genoprep * gen_op :: FindRep ( const basis & bs ) const { const genoprep * REP = NULL ; std :: vector < genoprep > :: const_iterator item ; item = begin ( ) ; const genoprep * PTR = ObeginC ( ) ; while ( item != end ( ) && ! REP ) { if ( PTR -> RepBs == bs ) REP = PTR ; PTR ++ ; item ++ ; } return REP ; }
Functions  Argument              Result                       Caution
  --------  
FindRep      bs     Pointer to OpRep with basis bs     Return NULL !found
SetRep       bs     Set WBR to OpRep with basis bs     Return 0 if unable
LP_rep       -      Pointer to OpRep with low prior.
Functions Argument Result Caution -------- FindRep bs Pointer to OpRep with basis bs Return NULL !found SetRep bs Set WBR to OpRep with basis bs Return 0 if unable LP_rep - Pointer to OpRep with low prior .
// Don't know proper OpRep // Iterator into list // Begin with 1st OpRep // Begin with 1st OpRep // Loop through OpReps //   Set pointer if bases match