GaitGeneration by Graph Search
読み取り中…
検索中…
一致する文字列を見つけられません
公開メンバ関数 | 静的公開変数類 | 全メンバ一覧
designlab::HexapodConst クラスfinal

Hexapodの定数をまとめたクラス. [詳解]

#include <hexapod_const.h>

公開メンバ関数

 HexapodConst ()=delete
 コンストラクタとコピーコンストラクタを削除し,実体を生成できないようにする.
 
 HexapodConst (const HexapodConst &other)=delete
 削除する.
 
HexapodConstoperator= (const HexapodConst &other)=delete
 削除する.
 
 HexapodConst (HexapodConst &&other)=delete
 削除する.
 

静的公開変数類

static constexpr int kLegNum = 6
 

詳解

Hexapodの定数をまとめたクラス.

コンストラクタを削除したので,実体は生成できない.

int a = HexapodConst::kLegNum; // OK
HexapodConst h; // コンパイルエラー
Hexapodの定数をまとめたクラス.
static constexpr int kLegNum


先行研究のマクロをまとめたもの,徐々にここから値を消していく.

hexapod_const.h24 行目に定義があります。

構築子と解体子

◆ HexapodConst() [1/3]

designlab::HexapodConst::HexapodConst ( )
delete

コンストラクタとコピーコンストラクタを削除し,実体を生成できないようにする.

◆ HexapodConst() [2/3]

designlab::HexapodConst::HexapodConst ( const HexapodConst other)
delete

削除する.

◆ HexapodConst() [3/3]

designlab::HexapodConst::HexapodConst ( HexapodConst &&  other)
delete

削除する.

関数詳解

◆ operator=()

HexapodConst & designlab::HexapodConst::operator= ( const HexapodConst other)
delete

削除する.

メンバ詳解

◆ kLegNum

constexpr int designlab::HexapodConst::kLegNum = 6
staticconstexpr

Hexapodの脚の本数を表す.これを変更しても脚の本数が変更できるわけではない. マジックナンバーをなくすことが目的.

hexapod_const.h35 行目に定義があります。


このクラス詳解は次のファイルから抽出されました: