ghmm_gmlstate.h

来自「General Hidden Markov Model Library 一个通用」· C头文件 代码 · 共 86 行

H
86
字号
/* * * created: 26 Feb 2002 by Wasinee Rungsarityotin * authors: Wasinee Rungsarityotin (rungsari@molgen.mpg.de) * file   : $Source$ * $Id: GHMM_GMLState.h 288 2003-11-07 22:17:38Z wasinee $ * revision date   : $Date: 2003-11-07 23:17:38 +0100 (Fri, 07 Nov 2003) $  ___copyright__  */#ifndef _GHMM_GMLSTATE_H#define _GHMM_GMLSTATE_H 1#include <map>#include <ghmm++/GHMM_Types.h>#include <ghmm++/GHMM_State.h>#include <ghmm++/GHMM_GMLTransition.h>#include <ghmm++/begin_code.h>#ifdef HAVE_NAMESPACESnamespace std {#endif/** */class GHMM_GMLState: public GHMM_State { public:  /** */  GHMM_GMLState(GHMM_AbstractModel* my_model, int index, XMLIO_Attributes& attrs);  /** */  GHMM_GMLState(GHMM_AbstractModel* my_model, int index, sstate* my_state);  /** */  GHMM_GMLState(GHMM_AbstractModel* my_model, int index, state* my_state);    /** Returns name of class. */  const char* toString() const;  GHMM_GMLTransition *createTransition(int edge_index);  GHMM_GMLState* getMySelf() { return this; }  float get2DPosition(int index);  /** */  string label;  int    m_countme; protected:  /** Collects all character data. */  void XMLIO_getCharacters(const string& characters);  /** Called by XMLIO_Document when a end tag is found.       This happens when a sub element has finished reading its      content. By default this function does nothing. */  void XMLIO_endTag(const string& tag);  /** Called by GHMM_Document when a start tag is received. Tag and       attributes are passed to this function. */  XMLIO_Element* XMLIO_startTag(const string& tag, XMLIO_Attributes &attrs);  /** Returns the attributes of this element (XML Spec [40], [41]).       By default returns content of variable 'attributes'.*/  XMLIO_Attributes& XMLIO_getAttributes();  /** Writes the content (XML Spec[43]) of this element.      You should use the public XMLIO_Document::write* functions.      @return Returns the number of bytes written,      but is negative when an error occured and 0 by default. */  const int XMLIO_writeContent(XMLIO_Document& doc);  /** Position attributes */  float vPosition[3]; private:  map<const string, bool> hasData;};#ifdef HAVE_NAMESPACES}#endif#include <ghmm++/close_code.h>#endif /* _GHMM_STATE_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?