Configuration.h
Go to the documentation of this file.
1 // -*- mode: c++; indent-tabs-mode: nil; c-basic-offset: 4; tab-width: 4; -*-
2 #ifndef __CONFIGURATION_H__
3 #define __CONFIGURATION_H__
4 
5 #include "exportdef.h"
6 #include <vector>
7 #include <iostream>
8 
9 namespace PathEngine {
11  {
12  public:
16  Configuration(unsigned int i_size);
17 
23  const double value(unsigned int i_rank) const;
24  const double operator[](unsigned int i_rank) const { return value(i_rank); }
25 
31  double& value(unsigned int i_rank);
32  double& operator[](unsigned int i_rank) { return value(i_rank); }
33 
38  unsigned int size() const;
39 
44  bool operator!=(const Configuration& cfg);
45 
50  bool operator==(const Configuration& cfg);
51 
52  private:
53  std::vector<double> m_values;
54  };
55 
56 std::ostream& operator<< (std::ostream& out, const PathEngine::Configuration& cfg);
57 };
58 
59 
60 #endif
size
png_uint_32 size
Definition: png.h:1518
PathEngine::Configuration::operator[]
double & operator[](unsigned int i_rank)
Definition: Configuration.h:32
PathEngine::operator<<
std::ostream & operator<<(std::ostream &out, const Configuration &cfg)
Definition: Configuration.cpp:8
value
png_voidp int value
Definition: png.h:2110
PathEngine::Configuration::operator[]
const double operator[](unsigned int i_rank) const
Definition: Configuration.h:24
PathEngine::Configuration::m_values
std::vector< double > m_values
Definition: Configuration.h:53
PathEngine
Definition: Algorithm.h:13
HRPPLANNER_API
#define HRPPLANNER_API
Definition: exportdef.h:22
exportdef.h
PathEngine::Configuration
Definition: Configuration.h:10


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:02