result.h

来自「基于多假设的地图匹配算法。程序能够根据车辆在行驶过程中收集到的GPS/DR数据正」· C头文件 代码 · 共 56 行

H
56
字号
/******************************************************************************    File Name:    include/Result.h    Description:  definitions of result structures******************************************************************************//******************************************************************************    Author:       alfred.liushu@gmail.com	    Upadate:      2008/09/16  File founded    Copyright 2008-2009 Robot Lab., Dept.of Automation, Tsinghua University******************************************************************************/#ifndef __RESULT_H__#define __RESULT_H__#include "../include/Setting.h"/******************************                   Result structures                         ***************************************************//*Matching result by point*/typedef struct RESULT{    TIME            time;                                               /*Time*/    IDTYPE          linkID;                                             /*ID of matched link*/    RoadDir         direction;                                          /*Running direction on the matched link*/    DATATYPE        belief;                                             /*belief of matching result*/    RESULT():time(0),linkID(0),direction(twoway),belief(0){};           /*Default constructor*/    RESULT(const RESULT& result):time(result.time),linkID(result.linkID),                                 direction(result.direction),belief(result.belief){};/*Copy-constructor*/    inline RESULT& operator= (const RESULT& result)    { time=result.time; linkID=result.linkID; belief=result.belief; direction=result.direction; return *this;};/*Reloaded equator*/}Result;/*Matched route (one link)*/typedef struct ROUTE{    TIME            beginTime;                                          /*Begin time*/    IDTYPE          linkID;                                             /*ID of matched link*/    RoadDir         direction;                                          /*Running direction on the matched link*/    ROUTE():beginTime(0),linkID(0),direction(twoway){};                 /*Default constructor*/    ROUTE(const ROUTE& route):beginTime(route.beginTime),linkID(route.linkID),direction(route.direction){};/*Copy-constructor*/    inline ROUTE& operator= (const ROUTE& route)    { beginTime=route.beginTime; linkID=route.linkID; direction=route.direction; return *this;};/*Reloaded equator*/}Route;#endif /*__RESULT_H__*/

⌨️ 快捷键说明

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