Source: HMM/include/mean_set.h


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

#ifndef MEAN_SET_H
#define MEAN_SET_H

#include "Vector.h"
#include "Object.h"
#include "mean.h"

class MeanSet : public Object {
protected:
   int nb_means;
   //Vector<RCPtr<Vector<float> > > means;
   Vector<RCPtr<Mean> > means;
public:
   /**Default Constructor*/
   MeanSet() 
   : nb_means(0)
   {};

   /**Indexing operator, returns the Ptr to the specified ID*/
   RCPtr<Mean> operator [] (int id) {return means[id];}

   /**Returns the number of elements*/
   int size() {return nb_means;}

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

   /**Returns the pointer corresponding to the id*/
   RCPtr<Mean> getPtrFor(int id) 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, MeanSet &cov);

};

#endif

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