form_manip(3)
NAME
form_manip - form concatenation on a product space
DESCRIPTION
build a form on a product space
TO DO
a general implementation without switch and with a loop.
IMPLEMENTATION
- class form_manip {
public:
// typedefs: - typedef form::size_type size_type;
- // constructors/destructor:
form_manip();- // accessors:
size_type nform() const;
size_type nrowbloc() const;
size_type ncolbloc() const;
form& bloc(size_type i, size_type j);
const form& bloc(size_type i, size_type j) const;- // manipulators:
form_manip& operator << (const form&);
form_manip& operator >> (form&);
form_manip& operator << (form_manip& (*)(form_manip&));- friend form_manip& verbose (form_manip&);
friend form_manip& noverbose (form_manip&); - // implementation:
friend class size;
friend form_manip& operator << (form_manip&, const class size&);- protected:
- bool _verbose;
size_type _nform;
size_type _nrowbloc;
size_type _ncolbloc;
std::vector<form> _a; - };