Matrix.h
Go to the documentation of this file.
1 /*
2  * This file is part of ArmarX.
3  *
4  * Copyright (C) 2012-2016, High Performance Humanoid Technologies (H2T),
5  * Karlsruhe Institute of Technology (KIT), all rights reserved.
6  *
7  * ArmarX is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License version 2 as
9  * published by the Free Software Foundation.
10  *
11  * ArmarX is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18  *
19  * @author Fabian Peller-Konrad (fabian dot peller-konrad at kit dot edu)
20  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
21  * GNU General Public License
22  */
23 
24 #pragma once
25 
26 #include <map>
27 
30 
32 {
33 
34  class Matrix : public detail::NDArrayGenerator<type::Matrix, Matrix>
35  {
36  public:
37  // constructors
38  Matrix(const type::Matrix&);
39  virtual ~Matrix() = default;
40 
41  // virtual implementations
42  std::vector<std::string> getRequiredIncludes() const final;
43  std::pair<std::vector<std::pair<std::string, std::string>>, bool>
44  getCtorInitializers(const std::string&) const final;
45  CppBlockPtr getResetHardBlock(const std::string& cppAccessor) const final;
46  CppBlockPtr getResetSoftBlock(const std::string& cppAccessor) const final;
47  CppBlockPtr getWriteTypeBlock(const std::string& typeAccessor,
48  const std::string& cppAccessor,
49  const Path&,
50  std::string& variantAccessor) const final;
51  CppBlockPtr getWriteBlock(const std::string& cppAccessor,
52  const Path&,
53  std::string& variantAccessor) const final;
54  CppBlockPtr getReadBlock(const std::string& cppAccessor,
55  const std::string& variantAccessor) const final;
56  CppBlockPtr getEqualsBlock(const std::string&, const std::string&) const final;
57  };
58 } // namespace armarx::aron::codegenerator::cpp::generator
armarx::aron::codegenerator::cpp::generator::Matrix::getWriteTypeBlock
CppBlockPtr getWriteTypeBlock(const std::string &typeAccessor, const std::string &cppAccessor, const Path &, std::string &variantAccessor) const final
Definition: Matrix.cpp:141
armarx::aron::codegenerator::cpp::generator::Matrix::getRequiredIncludes
std::vector< std::string > getRequiredIncludes() const final
Definition: Matrix.cpp:70
NDArrayGenerator.h
Matrix.h
armarx::CppBlockPtr
std::shared_ptr< CppBlock > CppBlockPtr
Definition: CppBlock.h:35
armarx::aron::codegenerator::cpp::generator::Matrix::Matrix
Matrix(const type::Matrix &)
Definition: Matrix.cpp:53
armarx::aron::codegenerator::cpp::generator::Matrix::getReadBlock
CppBlockPtr getReadBlock(const std::string &cppAccessor, const std::string &variantAccessor) const final
Definition: Matrix.cpp:180
armarx::aron::Path
The Path class.
Definition: Path.h:36
armarx::aron::codegenerator::cpp::generator::Matrix::getResetHardBlock
CppBlockPtr getResetHardBlock(const std::string &cppAccessor) const final
Definition: Matrix.cpp:103
armarx::aron::codegenerator::cpp::generator::Matrix
Definition: Matrix.h:34
armarx::aron::codegenerator::cpp::generator
Definition: AnyObject.cpp:29
armarx::aron::codegenerator::cpp::generator::Matrix::getResetSoftBlock
CppBlockPtr getResetSoftBlock(const std::string &cppAccessor) const final
Definition: Matrix.cpp:133
armarx::aron::codegenerator::cpp::generator::Matrix::getWriteBlock
CppBlockPtr getWriteBlock(const std::string &cppAccessor, const Path &, std::string &variantAccessor) const final
Definition: Matrix.cpp:162
armarx::aron::codegenerator::cpp::generator::Matrix::getCtorInitializers
std::pair< std::vector< std::pair< std::string, std::string > >, bool > getCtorInitializers(const std::string &) const final
Definition: Matrix.cpp:76
armarx::aron::codegenerator::cpp::generator::Matrix::~Matrix
virtual ~Matrix()=default
armarx::aron::codegenerator::cpp::generator::Matrix::getEqualsBlock
CppBlockPtr getEqualsBlock(const std::string &, const std::string &) const final
Definition: Matrix.cpp:199
armarx::aron::type::Matrix
The Matrix class.
Definition: Matrix.h:39
armarx::aron::codegenerator::cpp::generator::detail::NDArrayGenerator
Definition: NDArrayGenerator.h:32