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
bool operator!=(const EchoSample &, const EchoSample &)
png_uint_32 size
Definition: png.h:1521
png_voidp int value
Definition: png.h:2113
bool operator==(const EchoSample &, const EchoSample &)
std::vector< double > m_values
Definition: Configuration.h:53
double & operator[](unsigned int i_rank)
Definition: Configuration.h:32
std::ostream & operator<<(std::ostream &out, const Configuration &cfg)
const double operator[](unsigned int i_rank) const
Definition: Configuration.h:24
#define HRPPLANNER_API
Definition: exportdef.h:22


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sat May 8 2021 02:42:37