Source: HMM/include/gmm_set.h


Annotated List
Files
Globals
Hierarchy
Index
// Copyright (C) 1998-1999  Jean-Marc Valin

#ifndef GMM_SET_H
#define GMM_SET_H

#include "gmm.h"
#include "gaussian_set.h"

#include "Object.h"

class GMMSet : public Object {
protected:
   int nb_gmms;
   Vector<RCPtr<GMM> > gmms;
public:
   /**Default Constructor*/
   GMMSet() 
   : nb_gmms(0)
   {};

   /**Returns the id corresponding to the pointer (or add if absent)*/
   int getIDFor(RCPtr<GMM>);

   /**Returns the pointer corresponding to the id*/
   RCPtr<GMM> getPtrFor(int id);

   /**convert all elements to using IDs (before saving)*/
   void toIDs(GaussianSet & gauss);
 
   /**convert all elements to using Ptrs (after loading)*/
   void toPtrs(const GaussianSet & gauss) const;

   /** print function used for operator << */
   virtual void printOn(ostream &out=cout) const;

   /**Read function used for operator >> */
   void readFrom (istream &in=cin);

   /**extractor operator*/
   friend istream &operator >> (istream &in, GMMSet &cov);

};

#endif

Generated by: jmvalin@usw-pr-shell2 on Mon Jun 24 00:06:40 2002, using kdoc 2.0a40.