ロードマップのノード More...
#include <RoadmapNode.h>
Public Member Functions | |
| void | addChild (RoadmapNodePtr node) |
| 子ノードの追加 | |
| void | addParent (RoadmapNodePtr node) |
| 親ノードの追加 | |
| RoadmapNodePtr | child (unsigned int index) |
| 子ノードの取得 | |
| unsigned int | nChildren () const |
| 子ノードの数を取得 | |
| unsigned int | nParents () const |
| 親ノードの数を取得 | |
| RoadmapNodePtr | parent (unsigned int index) |
| 親ノードの取得 | |
| Configuration & | position () |
| 位置の取得 | |
| bool | removeChild (RoadmapNodePtr node) |
| 子ノードの削除 | |
| bool | removeParent (RoadmapNodePtr node) |
| 親ノードの削除 | |
| RoadmapNode (const Configuration &pos) | |
| コンストラクタ | |
| void | visited (bool flag) |
| 探索用フラグを設定する | |
| bool | visited () const |
| 探索用フラグの値を取得する | |
| ~RoadmapNode () | |
| デストラクタ | |
Private Attributes | |
| std::vector< RoadmapNodePtr > | children_ |
| 子ノードリスト | |
| std::vector< RoadmapNodePtr > | parents_ |
| 親ノードリスト | |
| Configuration | pos_ |
| このノードの座標 | |
| bool | visited_ |
| 探索アルゴリズム用フラグ | |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const RoadmapNode &r) |
ロードマップのノード
Definition at line 17 of file RoadmapNode.h.
| PathEngine::RoadmapNode::RoadmapNode | ( | const Configuration & | pos | ) | [inline] |
| PathEngine::RoadmapNode::~RoadmapNode | ( | ) | [inline] |
デストラクタ
Definition at line 28 of file RoadmapNode.h.
| void PathEngine::RoadmapNode::addChild | ( | RoadmapNodePtr | node | ) | [inline] |
| void PathEngine::RoadmapNode::addParent | ( | RoadmapNodePtr | node | ) | [inline] |
| RoadmapNodePtr RoadmapNode::child | ( | unsigned int | index | ) |
子ノードの取得
| index | 子ノードのインデックス |
Definition at line 11 of file RoadmapNode.cpp.
| unsigned int PathEngine::RoadmapNode::nChildren | ( | ) | const [inline] |
| unsigned int PathEngine::RoadmapNode::nParents | ( | ) | const [inline] |
| RoadmapNodePtr RoadmapNode::parent | ( | unsigned int | index | ) |
親ノードの取得
| index | 親ノードのインデックス |
Definition at line 5 of file RoadmapNode.cpp.
| Configuration& PathEngine::RoadmapNode::position | ( | ) | [inline] |
| bool RoadmapNode::removeChild | ( | RoadmapNodePtr | node | ) |
| bool RoadmapNode::removeParent | ( | RoadmapNodePtr | node | ) |
| void PathEngine::RoadmapNode::visited | ( | bool | flag | ) | [inline] |
| bool PathEngine::RoadmapNode::visited | ( | ) | const [inline] |
| std::ostream& operator<< | ( | std::ostream & | out, |
| const RoadmapNode & | r | ||
| ) | [friend] |
Definition at line 120 of file RoadmapNode.h.
std::vector<RoadmapNodePtr> PathEngine::RoadmapNode::children_ [private] |
子ノードリスト
Definition at line 108 of file RoadmapNode.h.
std::vector<RoadmapNodePtr> PathEngine::RoadmapNode::parents_ [private] |
親ノードリスト
Definition at line 103 of file RoadmapNode.h.
Configuration PathEngine::RoadmapNode::pos_ [private] |
このノードの座標
Definition at line 113 of file RoadmapNode.h.
bool PathEngine::RoadmapNode::visited_ [private] |
探索アルゴリズム用フラグ
Definition at line 118 of file RoadmapNode.h.