Changeset 69 in pacpusframework for trunk/include/Pacpus/PacpusTools/matrice.h


Ignore:
Timestamp:
01/10/13 00:04:42 (11 years ago)
Author:
Marek Kurdej
Message:

Added: more documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/Pacpus/PacpusTools/matrice.h

    r66 r69  
    2121} t_m;
    2222
     23/// Simple matrix.
     24/// @todo Documentation
    2325class matrice
    2426{
     
    2931
    3032public:
    31     //constructeurs
     33    /// Ctor
    3234    matrice();
     35    /// Ctor
    3336    matrice(unsigned short int nl, unsigned short int nc);
     37    /// Ctor
    3438    matrice(unsigned short int nl, unsigned short int nc,t_m type);
     39    /// Copy ctor
    3540    matrice(const matrice &source); //constructeur par copie
    36     //destructeur
     41    /// Dtor
    3742    virtual ~matrice(void);
    38     void Alloue(unsigned short int nl, unsigned short int nc); //allocation de la matrice
    3943
    40     // fonction pour le calcul de matrice
     44    /// Allocates matrix data
     45    /// @todo Rename
     46    void Alloue(unsigned short int nl, unsigned short int nc);
     47
     48    /// Assignment operator for matrix operand
    4149    matrice &operator=(const matrice &m);//m=m1
     50    /// Assignment operator for scalar operand
    4251    matrice &operator=(double x); //m=x
    43     operator double()const{return **lignes;}
     52    /// Conversion operator to double
     53    /// @todo FIXME
     54    operator double() const
     55    {
     56        return **lignes;
     57    }
    4458
    4559    matrice &operator+=(const matrice &m); //m+=m1
Note: See TracChangeset for help on using the changeset viewer.