Add minor documentation to pTraits specializations.

This commit is contained in:
Mark Olesen
2009-12-15 09:03:07 +01:00
parent 2df9e0c342
commit 1b45fab97a
6 changed files with 19 additions and 15 deletions

View File

@ -60,7 +60,7 @@ word name(const Scalar val)
Scalar readScalar(Istream& is) Scalar readScalar(Istream& is)
{ {
Scalar rs; Scalar rs;
is >> rs; is >> rs;
return rs; return rs;
} }

View File

@ -50,9 +50,9 @@ public:
enum enum
{ {
dim = 3, // Dimensionality of space dim = 3, //!< Dimensionality of space
rank = 0, // Rank of Scalar is 0 rank = 0, //!< Rank of Scalar is 0
nComponents = 1 // Number of components in Scalar is 1 nComponents = 1 //!< Number of components in Scalar is 1
}; };
// Static data members // Static data members
@ -72,6 +72,7 @@ public:
// Member Functions // Member Functions
//- Conversion to a Scalar
operator Scalar() const operator Scalar() const
{ {
return p_; return p_;

View File

@ -86,8 +86,8 @@ public:
enum enum
{ {
dim = 3, // Dimensionality of space dim = 3, //!< Dimensionality of space
nComponents = nCmpt // Number of components in this vector space nComponents = nCmpt //!< Number of components in this vector space
}; };

View File

@ -76,9 +76,9 @@ public:
enum enum
{ {
dim = 3, // Dimensionality of space dim = 3, //!< Dimensionality of space
rank = 0, // Rank of bool is 0 rank = 0, //!< Rank of bool is 0
nComponents = 1 // Number of components in bool is 1 nComponents = 1 //!< Number of components in bool is 1
}; };
// Static data members // Static data members
@ -95,6 +95,7 @@ public:
// Member Functions // Member Functions
//- Conversion to a bool
operator bool() const operator bool() const
{ {
return p_; return p_;

View File

@ -148,9 +148,9 @@ public:
enum enum
{ {
dim = 3, // Dimensionality of space dim = 3, //!< Dimensionality of space
rank = 0, // Rank of label is 0 rank = 0, //!< Rank of label is 0
nComponents = 1 // Number of components in label is 1 nComponents = 1 //!< Number of components in label is 1
}; };
// Static data members // Static data members
@ -169,6 +169,7 @@ public:
// Member Functions // Member Functions
//- Conversion to a label
operator label() const operator label() const
{ {
return p_; return p_;

View File

@ -132,9 +132,9 @@ public:
enum enum
{ {
dim = 3, // Dimensionality of space dim = 3, //!< Dimensionality of space
rank = 0, // Rank of uLabel is 0 rank = 0, //!< Rank of uLabel is 0
nComponents = 1 // Number of components in uLabel is 1 nComponents = 1 //!< Number of components in uLabel is 1
}; };
// Static data members // Static data members
@ -154,6 +154,7 @@ public:
// Member Functions // Member Functions
//- Conversion to a uLabel
operator uLabel() const operator uLabel() const
{ {
return p_; return p_;