STYLE: use constexpr for pTraits rank
This commit is contained in:
parent
1c4e32fb6a
commit
fe71bbd013
@ -63,7 +63,7 @@ public:
|
||||
// Member constants
|
||||
|
||||
//- Rank of Barycentric is 1
|
||||
static const direction rank = 1;
|
||||
static constexpr direction rank = 1;
|
||||
|
||||
|
||||
//- Component labeling enumeration
|
||||
|
@ -63,7 +63,7 @@ public:
|
||||
// Member constants
|
||||
|
||||
//- Rank of Barycentric2D is 1
|
||||
static const direction rank = 1;
|
||||
static constexpr direction rank = 1;
|
||||
|
||||
|
||||
//- Component labeling enumeration
|
||||
|
@ -59,13 +59,13 @@ public:
|
||||
// Member constants
|
||||
|
||||
//- Dimensionality of space
|
||||
static const direction dim = 3;
|
||||
static constexpr direction dim = 3;
|
||||
|
||||
//- Rank of Scalar is 0
|
||||
static const direction rank = 0;
|
||||
static constexpr direction rank = 0;
|
||||
|
||||
//- Number of components in Scalar is 1
|
||||
static const direction nComponents = 1;
|
||||
static constexpr direction nComponents = 1;
|
||||
|
||||
|
||||
// Static data members
|
||||
|
@ -77,13 +77,13 @@ public:
|
||||
// Member constants
|
||||
|
||||
//- Dimensionality of space
|
||||
static const direction dim = 3;
|
||||
static constexpr direction dim = 3;
|
||||
|
||||
//- Rank of bool is 0
|
||||
static const direction rank = 0;
|
||||
static constexpr direction rank = 0;
|
||||
|
||||
//- Number of components in bool is 1
|
||||
static const direction nComponents = 1;
|
||||
static constexpr direction nComponents = 1;
|
||||
|
||||
|
||||
// Static data members
|
||||
|
@ -142,13 +142,13 @@ public:
|
||||
// Member constants
|
||||
|
||||
//- Dimensionality of space
|
||||
static const direction dim = 3;
|
||||
static constexpr direction dim = 3;
|
||||
|
||||
//- Rank of int32_t is 0
|
||||
static const direction rank = 0;
|
||||
static constexpr direction rank = 0;
|
||||
|
||||
//- Number of components in int32_t is 1
|
||||
static const direction nComponents = 1;
|
||||
static constexpr direction nComponents = 1;
|
||||
|
||||
|
||||
// Static data members
|
||||
|
@ -143,13 +143,13 @@ public:
|
||||
// Member constants
|
||||
|
||||
//- Dimensionality of space
|
||||
static const direction dim = 3;
|
||||
static constexpr direction dim = 3;
|
||||
|
||||
//- Rank of int64_t is 0
|
||||
static const direction rank = 0;
|
||||
static constexpr direction rank = 0;
|
||||
|
||||
//- Number of components in int64_t is 1
|
||||
static const direction nComponents = 1;
|
||||
static constexpr direction nComponents = 1;
|
||||
|
||||
|
||||
// Static data members
|
||||
|
@ -133,13 +133,13 @@ public:
|
||||
// Member constants
|
||||
|
||||
//- Dimensionality of space
|
||||
static const direction dim = 3;
|
||||
static constexpr direction dim = 3;
|
||||
|
||||
//- Rank of uint32_t is 0
|
||||
static const direction rank = 0;
|
||||
static constexpr direction rank = 0;
|
||||
|
||||
//- Number of components in uint32_t is 1
|
||||
static const direction nComponents = 1;
|
||||
static constexpr direction nComponents = 1;
|
||||
|
||||
|
||||
// Static data members
|
||||
|
@ -141,13 +141,13 @@ public:
|
||||
// Member constants
|
||||
|
||||
//- Dimensionality of space
|
||||
static const direction dim = 3;
|
||||
static constexpr direction dim = 3;
|
||||
|
||||
//- Rank of uint64_t is 0
|
||||
static const direction rank = 0;
|
||||
static constexpr direction rank = 0;
|
||||
|
||||
//- Number of components in uint64_t is 1
|
||||
static const direction nComponents = 1;
|
||||
static constexpr direction nComponents = 1;
|
||||
|
||||
|
||||
// Static data members
|
||||
|
@ -110,7 +110,7 @@ public:
|
||||
// Member constants
|
||||
|
||||
//- Rank of quaternion is 1
|
||||
static const direction rank = 1;
|
||||
static constexpr direction rank = 1;
|
||||
|
||||
|
||||
// Static data members
|
||||
|
Loading…
Reference in New Issue
Block a user