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...
 
const double operator[] (unsigned int i_rank) const
 
double & operator[] (unsigned int i_rank)
 
unsigned int size () const
 get the number of degrees of freedom More...
 
const double value (unsigned int i_rank) const
 
double & value (unsigned int i_rank)
 

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]

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

Definition at line 24 of file Configuration.h.

◆ operator[]() [2/2]

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

Definition at line 32 of file Configuration.h.

◆ size()

unsigned int Configuration::size ( void  ) 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]

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

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.

◆ value() [2/2]

double & Configuration::value ( unsigned int  i_rank)

set value of i_rank th dof

Parameters
i_rankrank of dof
i_valuevalue of dof

Definition at line 29 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 Thu Sep 8 2022 02:24:09