Home | Develop | Download | Contact
Shape.hpp
1/*
2 * Shape.hpp
3 *
4 * Copyright 2018 Fernando Pujaico Rivera <fernando.pujaico.rivera@gmail.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program 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
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, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19 * MA 02110-1301, USA.
20 *
21 */
22
32#ifndef __PDS_SHAPE_HPP__
33#define __PDS_SHAPE_HPP__
34
35#include <string>
36
45namespace Pds{
46
47class Matrix;
48
56class Shape
57{
58
59public:
60
61 long int nlin;
62 long int ncol;
63 long int nch;
64
65public:
66
76 Shape(void);
77
85 Shape(long int Nch,long int Nlin,long int Ncol);
86
94 Shape(const Pds::Shape &B);
95
96
98
103public:
104
130
141 bool Copy(const Pds::Shape &B);
142
148 void MakeEmpty(void);
153public:
154
164 void Print(std::string str="");
165
171 void PrintStylized(std::string str="");
172
173
174
178}; // Class Shape
179
180} // namespace Pds
181
182
198 std::ostream& operator<<(std::ostream &out,const Pds::Shape &z);
199
200
210#endif
211
La clase tipo Pds::Shape . Esta clase genera un objeto con dos parametros Nlin y Ncol....
Definition: Shape.hpp:57
long int ncol
Definition: Shape.hpp:62
long int nlin
Definition: Shape.hpp:61
long int nch
Definition: Shape.hpp:63
const std::string Matrix
Tag de un objeto de tipo Pds::Ra::Tag::Matrix.
Definition: RaDefines.hpp:402
void Print(std::string str="")
Muestra en pantalla el contenido de Pds::Shape, elementos separados por tabulador.
std::ostream & operator<<(std::ostream &out, const Pds::Shape &z)
Retorna el contenido del objeto por la salida estándar.
Shape(long int Nch, long int Nlin, long int Ncol)
Crea un objeto de tipo Pds::Shape.
Pds::Shape & operator=(const Pds::Shape &B)
Copia en si mismo (A), un Shape B. Este operador es similar al método Copy().
Shape(void)
Crea un objeto de tipo Pds::Shape.
void MakeEmpty(void)
Cera los datos internos.
bool Copy(const Pds::Shape &B)
Copia en si mismo (A), el contenido de un Shape B. Este método es similar a usar el operador = .
void PrintStylized(std::string str="")
Muestra en pantalla el contenido de Pds::Shape, en el formato [Nli,Ncol].
Shape(const Pds::Shape &B)
Crea un objeto de tipo Pds::Shape copiando datos desde otra.
Nombre de espacio para Pds (Procesamiento Digital de Senales)
Definition: AbstractRV.hpp:42

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed