Public Member Functions | Private Attributes | Friends | List of all members
PathEngine::RoadmapNode Class Reference

ロードマップのノード More...

#include <RoadmapNode.h>

Public Member Functions

void addChild (RoadmapNodePtr node)
 子ノードの追加 More...
 
void addParent (RoadmapNodePtr node)
 親ノードの追加 More...
 
RoadmapNodePtr child (unsigned int index)
 子ノードの取得 More...
 
unsigned int nChildren () const
 子ノードの数を取得 More...
 
unsigned int nParents () const
 親ノードの数を取得 More...
 
RoadmapNodePtr parent (unsigned int index)
 親ノードの取得 More...
 
Configurationposition ()
 位置の取得 More...
 
bool removeChild (RoadmapNodePtr node)
 子ノードの削除 More...
 
bool removeParent (RoadmapNodePtr node)
 親ノードの削除 More...
 
 RoadmapNode (const Configuration &pos)
 コンストラクタ More...
 
void visited (bool flag)
 探索用フラグを設定する More...
 
bool visited () const
 探索用フラグの値を取得する More...
 
 ~RoadmapNode ()
 デストラクタ More...
 

Private Attributes

std::vector< RoadmapNodePtrchildren_
 子ノードリスト More...
 
std::vector< RoadmapNodePtrparents_
 親ノードリスト More...
 
Configuration pos_
 このノードの座標 More...
 
bool visited_
 探索アルゴリズム用フラグ More...
 

Friends

std::ostream & operator<< (std::ostream &out, const RoadmapNode &r)
 

Detailed Description

ロードマップのノード

Definition at line 17 of file RoadmapNode.h.

Constructor & Destructor Documentation

PathEngine::RoadmapNode::RoadmapNode ( const Configuration pos)
inline

コンストラクタ

Parameters
posこのノードの座標

Definition at line 23 of file RoadmapNode.h.

PathEngine::RoadmapNode::~RoadmapNode ( )
inline

デストラクタ

Definition at line 28 of file RoadmapNode.h.

Member Function Documentation

void PathEngine::RoadmapNode::addChild ( RoadmapNodePtr  node)
inline

子ノードの追加

Parameters
node子ノード

Definition at line 40 of file RoadmapNode.h.

void PathEngine::RoadmapNode::addParent ( RoadmapNodePtr  node)
inline

親ノードの追加

Parameters
node親ノード

Definition at line 34 of file RoadmapNode.h.

RoadmapNodePtr RoadmapNode::child ( unsigned int  index)

子ノードの取得

Parameters
index子ノードのインデックス
Returns
不正なインデックスを指定した場合はNULL、それ以外は子ノード

Definition at line 11 of file RoadmapNode.cpp.

unsigned int PathEngine::RoadmapNode::nChildren ( ) const
inline

子ノードの数を取得

Returns
子ノードの数

Definition at line 86 of file RoadmapNode.h.

unsigned int PathEngine::RoadmapNode::nParents ( ) const
inline

親ノードの数を取得

Returns
親ノードの数

Definition at line 80 of file RoadmapNode.h.

RoadmapNodePtr RoadmapNode::parent ( unsigned int  index)

親ノードの取得

Parameters
index親ノードのインデックス
Returns
不正なインデックスを指定した場合はNULL、それ以外は親ノード

Definition at line 5 of file RoadmapNode.cpp.

Configuration& PathEngine::RoadmapNode::position ( )
inline

位置の取得

Returns
位置

Definition at line 60 of file RoadmapNode.h.

bool RoadmapNode::removeChild ( RoadmapNodePtr  node)

子ノードの削除

Parameters
node子ノード
Returns
削除できたらtrue

Definition at line 29 of file RoadmapNode.cpp.

bool RoadmapNode::removeParent ( RoadmapNodePtr  node)

親ノードの削除

Parameters
node親ノード
Returns
削除できたらtrue

Definition at line 17 of file RoadmapNode.cpp.

void PathEngine::RoadmapNode::visited ( bool  flag)
inline

探索用フラグを設定する

Parameters
flag探索済みがtrue、未探索がfalse

Definition at line 92 of file RoadmapNode.h.

bool PathEngine::RoadmapNode::visited ( ) const
inline

探索用フラグの値を取得する

Returns
探索用フラグの値

Definition at line 98 of file RoadmapNode.h.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const RoadmapNode r 
)
friend

Definition at line 120 of file RoadmapNode.h.

Member Data Documentation

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.


The documentation for this class was generated from the following files:


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sat Apr 13 2019 02:14:32