39 #define defineTraits(Type, Prefix) \ 42 const char* const Foam::Vector2D<Type>::vsType::componentNames[] = \ 48 const Foam::Vector2D<Type> Foam::Vector2D<Type>::vsType::zero \ 50 Vector2D<Type>::uniform(0) \ 54 const Foam::Vector2D<Type> Foam::Vector2D<Type>::vsType::one \ 56 Vector2D<Type>::uniform(1) \ 60 const Foam::Vector2D<Type> Foam::Vector2D<Type>::vsType::max \ 62 Vector2D<Type>::uniform(Prefix##Max) \ 66 const Foam::Vector2D<Type> Foam::Vector2D<Type>::vsType::min \ 68 Vector2D<Type>::uniform(-Prefix##Max) \ 72 const Foam::Vector2D<Type> Foam::Vector2D<Type>::vsType::rootMax \ 74 Vector2D<Type>::uniform(::sqrt(double(Prefix##Max))) \ 78 const Foam::Vector2D<Type> Foam::Vector2D<Type>::vsType::rootMin \ 80 Vector2D<Type>::uniform(-::sqrt(double(Prefix##Max))) \ static const char *const typeName
#define defineTraits(Type, Prefix)