bfl_toolkit.hpp
Go to the documentation of this file.
1 // Copyright (C) 2009 Tinne De Laet <tinne dot delaet at mech dot kuleuven dot be>
2 
3 // Author: Tinne De Laet
4 // Maintainer: Tinne De Laet
5 
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
10 
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
15 
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 
20 #ifndef BFL_TOOLKIT_HPP
21 #define BFL_TOOLKIT_HPP
22 
23 #include <rtt/ToolkitPlugin.hpp>
24 
25 //using namespace MatrixWrapper;
26 namespace BFL{
27 
28 class bflToolkitPlugin: public RTT::ToolkitPlugin {
29 public:
30  virtual std::string getName();
31 
32  virtual bool loadTypes();
33  virtual bool loadConstructors();
34  virtual bool loadOperators();
35 };
36 
38 
39  template<typename T>
41  : public std::binary_function<T, T, bool>
42  {
43  bool operator()(const T& v1, const T& v2) const
44  {
45  return v1.size()==v2.size();
46  }
47  };
48 
49  template<typename T>
51  : public std::binary_function<T, T, bool>
52  {
53  bool operator()(const T& m1, const T& m2) const
54  {
55  return (m1.rows()==m2.rows())&&(m1.columns()==m2.columns());
56  }
57  };
58 
59  template<typename T>
61  : public std::binary_function< T, unsigned int, bool>
62  {
63  bool operator()(const T& m, unsigned int i ) const
64  {
65  return (i > 0) && (i < m.rows());
66  }
67  };
68 
69 
70 }
71 #endif
72 
bool operator()(const T &v1, const T &v2) const
Definition: bfl_toolkit.hpp:43
bool operator()(const T &m1, const T &m2) const
Definition: bfl_toolkit.hpp:53
virtual bool loadTypes()
virtual std::string getName()
virtual bool loadOperators()
virtual bool loadConstructors()
bflToolkitPlugin bflToolkit
Definition: bfl_toolkit.cpp:85
bool operator()(const T &m, unsigned int i) const
Definition: bfl_toolkit.hpp:63


bfl
Author(s): Klaas Gadeyne, Wim Meeussen, Tinne Delaet and many others. See web page for a full contributor list. ROS package maintained by Wim Meeussen.
autogenerated on Mon Jun 10 2019 12:47:58