1
#ifndef _RHEO_FORM_DIAG_MANIP_H
2
#define _RHEO_FORM_DIAG_MANIP_H
4
/// This file is part of Rheolef.
6
/// Copyright (C) 2000-2009 Pierre Saramito <Pierre.Saramito@imag.fr>
8
/// Rheolef is free software; you can redistribute it and/or modify
9
/// it under the terms of the GNU General Public License as published by
10
/// the Free Software Foundation; either version 2 of the License, or
11
/// (at your option) any later version.
13
/// Rheolef is distributed in the hope that it will be useful,
14
/// but WITHOUT ANY WARRANTY; without even the implied warranty of
15
/// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
/// GNU General Public License for more details.
18
/// You should have received a copy of the GNU General Public License
19
/// along with Rheolef; if not, write to the Free Software
20
/// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22
/// =========================================================================
24
/*Class:form_diag_manip
25
NAME: @code{form_diag_manip} - concatenation on a product space
27
build a form_diag on a product space.
29
The following example builds a 3-blocks diagonal form:
37
I_manip << size(3) << Iv << Iv << Iv;
40
METHODS: @form_diag_manip
42
"space"(3), "form_diag"(3), "form_manip"(3)
45
LMC-IMAG, 38041 Grenoble cedex 9, France
46
| Nicolas.Roquet@imag.fr
47
| Pierre.Saramito@imag.fr
51
#include "rheolef/form_diag.h"
54
class form_diag_manip {
59
typedef form_diag::size_type size_type;
61
// constructors/destructors:
67
size_type nbloc() const;
68
size_type nform() const;
69
form_diag& bloc(size_type i);
70
const form_diag& bloc(size_type i) const;
74
form_diag_manip& operator << (const form_diag& a);
75
form_diag_manip& operator >> (form_diag& a);
76
friend form_diag_manip& verbose (form_diag_manip &fm);
77
friend form_diag_manip& noverbose (form_diag_manip &fm);
78
form_diag_manip& operator<< (form_diag_manip& (*pf)(form_diag_manip&));
83
friend form_diag_manip& operator << (form_diag_manip &fm, const class sized& s);
89
std::vector<form_diag> _a;
95
typedef form_diag_manip::size_type size_type;
96
sized (size_type nbloc = 0);
97
friend form_diag_manip& operator << (form_diag_manip &fm, const sized& s);
101
#endif // _RHEO_FORM_DIAG_MANIP_H