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

#include <Configuration.h>

Public Member Functions

 Configuration (unsigned int i_size)
 constructor More...
 
bool operator!= (const Configuration &cfg)
 compare configurations More...
 
bool operator== (const Configuration &cfg)
 compare configurations More...
 
double & operator[] (unsigned int i_rank)
 
const double operator[] (unsigned int i_rank) const
 
unsigned int size () const
 get the number of degrees of freedom More...
 
double & value (unsigned int i_rank)
 
const double value (unsigned int i_rank) const
 

Private Attributes

std::vector< double > m_values
 

Detailed Description

Definition at line 10 of file Configuration.h.

Constructor & Destructor Documentation

◆ Configuration()

Configuration::Configuration ( unsigned int  i_size)

constructor

Definition at line 19 of file Configuration.cpp.

Member Function Documentation

◆ operator!=()

bool Configuration::operator!= ( const Configuration cfg)

compare configurations

Returns
true if not equal, false otherwise

Definition at line 39 of file Configuration.cpp.

◆ operator==()

bool Configuration::operator== ( const Configuration cfg)

compare configurations

Returns
true if equal, false otherwise

Definition at line 48 of file Configuration.cpp.

◆ operator[]() [1/2]

double& PathEngine::Configuration::operator[] ( unsigned int  i_rank)
inline

Definition at line 32 of file Configuration.h.

◆ operator[]() [2/2]

const double PathEngine::Configuration::operator[] ( unsigned int  i_rank) const
inline

Definition at line 24 of file Configuration.h.

◆ size()

unsigned int Configuration::size ( ) const

get the number of degrees of freedom

Returns
the number of degrees of freedom

Definition at line 34 of file Configuration.cpp.

◆ value() [1/2]

double & Configuration::value ( unsigned int  i_rank)

@breif set value of i_rank th dof

Parameters
i_rankrank of dof
i_valuevalue of dof

Definition at line 29 of file Configuration.cpp.

◆ value() [2/2]

const double Configuration::value ( unsigned int  i_rank) const

@breif get value of i_rank th dof

Parameters
i_rankrank of dof
Returns
value of i_rank th dof

Definition at line 24 of file Configuration.cpp.

Member Data Documentation

◆ m_values

std::vector<double> PathEngine::Configuration::m_values
private

Definition at line 53 of file Configuration.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 Wed Sep 7 2022 02:51:06