Changeset 318 in flair-src for trunk/lib/FlairCore/src/MatrixDescriptor.cpp
- Timestamp:
- Jul 3, 2019, 5:05:33 PM (5 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairCore/src/MatrixDescriptor.cpp
r317 r318 4 4 // %flair:license} 5 5 // created: 2014/02/05 6 // filename: cvmatrix_descriptor.cpp6 // filename: MatrixDescriptor.cpp 7 7 // 8 8 // author: Guillaume Sanahuja … … 11 11 // version: $Id: $ 12 12 // 13 // purpose: Class describing cvmatrix elements, for log and graphs purpose13 // purpose: Class describing matrix elements, for log and graphs purpose 14 14 // 15 15 /*********************************************************************/ 16 16 17 #include " cvmatrix_descriptor.h"17 #include "MatrixDescriptor.h" 18 18 #include "FrameworkManager.h" 19 19 … … 23 23 namespace core { 24 24 25 cvmatrix_descriptor::cvmatrix_descriptor(uint32_t rows, uint32_t cols) {25 MatrixDescriptor::MatrixDescriptor(uint32_t rows, uint32_t cols) { 26 26 this->rows = rows; 27 27 this->cols = cols; … … 36 36 } 37 37 38 cvmatrix_descriptor::~cvmatrix_descriptor() {38 MatrixDescriptor::~MatrixDescriptor() { 39 39 for (uint32_t i = 0; i < rows * cols; i++) { 40 40 delete element_names[i]; … … 43 43 } 44 44 45 void cvmatrix_descriptor::SetElementName(uint32_t row, uint32_t col,45 void MatrixDescriptor::SetElementName(uint32_t row, uint32_t col, 46 46 string name) { 47 47 if (row >= rows || col >= cols) { … … 53 53 } 54 54 55 string cvmatrix_descriptor::ElementName(uint32_t row, uint32_t col) const {55 string MatrixDescriptor::ElementName(uint32_t row, uint32_t col) const { 56 56 if (row >= rows || col >= cols) { 57 57 getFrameworkManager()->Err("index out of bound (%i,%i), max (%i,%i)\n", … … 62 62 } 63 63 64 uint32_t cvmatrix_descriptor::Rows() const { return rows; }64 uint32_t MatrixDescriptor::Rows() const { return rows; } 65 65 66 uint32_t cvmatrix_descriptor::Cols() const { return cols; }66 uint32_t MatrixDescriptor::Cols() const { return cols; } 67 67 68 68 } // end namespace core
Note:
See TracChangeset
for help on using the changeset viewer.