icehnode.h
来自「使用stl技术,(还没看,是听说的)」· C头文件 代码 · 共 41 行
H
41 行
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**
* Contains skeleton-code for a hierarchical node.
* \file IceHNode.h
* \author Pierre Terdiman
* \date May, 08, 1999
*/
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Include Guard
#ifndef __ICEHNODE_H__
#define __ICEHNODE_H__
class ICECORE_API HNode
{
public:
//! Constructor
HNode() : mSonLink(null), mNextLink(null) {}
//! Destructor
~HNode() {}
// Hierarchy construction
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**
* Inserts a new node in the hierarchy.
* Only 2 links are used since we only go through the hierarchy in the same unique direction (from root node to end effectors)
* \param father_node [in] the current node's father
* \return Self-reference
*/
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
HNode& Insert(HNode* father_node);
// Hierarchy data
HNode* mSonLink; //!< Child node
HNode* mNextLink; //!< Brother node
};
#endif // __ICEHNODE_H__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?