types.h

来自「拓扑查找算法的omnet仿真实现」· C头文件 代码 · 共 41 行

H
41
字号
//-------------------------------------------------------------------
//  file name: types.h
// 
//    - various structures and types definitions
//
//-------------------------------------------------------------------

/** @defgroup group_types Defined Types
 *  This group contains all the types defined in the project
 *  @{
 */
  
  struct nodepos_struct			/** 2D position structure */	
  {
     int x;		/**< x position	*/
     int y;		/**< y position	*/
  };

  struct interval_struct		/** time interval structure */
  {
     simtime_t ts;		/**< start time	*/
     simtime_t te;		/**< end time	*/
  };

  struct gatecd_struct			/** gate connect/disconnect structure */
  {
     bool cd[NNODES];				/**< connected - true; disconnected = false										*/
	 cMessage *msg[NNODES];			/**< pointer to last disconnect message											*/
	 cGate *fromGate[NNODES];		/**< number of the gate where a specific link is								*/
     cGate *toGate[NNODES];			/**< used or faster disconnection (without searching quering the gates again	*/
  };



  typedef int nodeid_t;								/**< nodeID structure						*/
  typedef struct nodepos_struct nodepos_t;			/**< position structure						*/
  typedef struct interval_struct interval_t;		/**< time interval structure				*/
  typedef struct gatecd_struct gatecd_t;			/**< gate connect/disconnect structure		*/

  /** @} */ // end of group_macros

⌨️ 快捷键说明

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