source: flair-src/trunk/lib/FlairCore/src/MatrixDescriptor.h@ 411

Last change on this file since 411 was 318, checked in by Sanahuja Guillaume, 5 years ago
File size: 1.6 KB
RevLine 
[2]1// %flair:license{
[15]2// This file is part of the Flair framework distributed under the
3// CECILL-C License, Version 1.0.
[2]4// %flair:license}
5/*!
[318]6 * \file MatrixDescriptor.h
7 * \brief Class describing matrix elements, for log and graphs purpose
[2]8 * \author Guillaume Sanahuja, Copyright Heudiasyc UMR UTC/CNRS 7253
9 * \date 2014/02/05
10 * \version 4.0
11 */
12
[318]13#ifndef MATRIXDESCRIPTOR_H
14#define MATRIXDESCRIPTOR_H
[2]15
16#include <string>
17
[15]18namespace flair {
19namespace core {
[2]20
[318]21/*! \class MatrixDescriptor
[15]22*
[318]23* \brief Class describing matrix elements, for log and graphs purpose
[15]24*
25* This class allows to give a name to matrix elements. These names
26* will be used in graphs and logs.
27*/
[318]28class MatrixDescriptor {
[15]29public:
30 /*!
31 * \brief Constructor
32 *
33 * Construct a matrix descriptor.
34 *
35 * \param rows matrix rows
36 * \param cols matrix cols
37 */
[318]38 MatrixDescriptor(uint32_t rows, uint32_t cols);
[2]39
[15]40 /*!
41 * \brief Destructor
42 *
43 */
[318]44 ~MatrixDescriptor();
[2]45
[15]46 /*!
47 * \brief Set element name
48 *
49 * \param row element row
50 * \param col element col
51 * \param name element name
52 */
53 void SetElementName(uint32_t row, uint32_t col, std::string name);
[2]54
[15]55 /*!
56 * \brief Element name
57 *
58 * \param row element row
59 * \param col element col
60 *
61 * \return element name
62 */
63 std::string ElementName(uint32_t row, uint32_t col) const;
[2]64
[15]65 /*!
66 * \brief Number of rows
67 *
68 * \return rows
69 */
70 uint32_t Rows(void) const;
[2]71
[15]72 /*!
73 * \brief Number of colomns
74 *
75 * \return colomns
76 */
77 uint32_t Cols(void) const;
[2]78
[15]79private:
80 uint32_t rows, cols;
81 std::string **element_names;
82};
[2]83
84} // end namespace core
85} // end namespace flair
86
[318]87#endif // MATRIXDESCRIPTOR_H
Note: See TracBrowser for help on using the repository browser.