scid.core.traits

Templates for compile-time introspection.

Members

Templates

ArgumentTypeTuple
template ArgumentTypeTuple(T)

Evaluates to a type tuple of the argument types of T, where T must be either a function, delegate or functor type.

BaseElementType
template BaseElementType(T)

Evaluates to the inner element type of the array, vector or matrix type T. If T is none of these, BaseElementType evaluates to T.

allConvertibleTo
template allConvertibleTo(T, U...)

Checks whether all the types U... are implicitly convertible to T.

is1DArray
template is1DArray(T)
template is1DArray(T, U)

Evaluates to true if T is a one-dimensional array type.

is2DArray
template is2DArray(T)
template is2DArray(T, U)

Evaluates to true if T is a two-dimensional array type.

isArray
template isArray(T)
template isArray(T, U)

Evaluates to true if T is an array type.

isBufferVectorField
template isBufferVectorField(FuncType, ArgType, RetType = ArgType)

Evaluates to true if FuncType is a vector field which takes an additional (but often optional) buffer of type RetType[] as the second argument.

isCallable
template isCallable(T)

Evaluates to true if T is a callable type, i.e. a function, delegate or functor type.

isComplex
template isComplex(T)

Detect whether T is a complex floating-point type.

isFortranType
template isFortranType(T)

Detect whether T is a FORTRAN-compatible floating-point type. The FORTRAN-compatible types are: float, double, cfloat, cdouble.

isFortranType
template isFortranType(T)
Undocumented in source.
isFunctor
template isFunctor(T)

Evaluates to true if T is a functor, i.e. a class or struct with an opCall method.

isUnaryFunction
template isUnaryFunction(F, RetT, ArgT)

Evaluates to true if the following compiles:

isUnaryFunction
template isUnaryFunction(F, ArgT)

Evaluates to true if the following compiles:

isVectorField
template isVectorField(FuncType, ArgType, RetType = ArgType)

Evaluates to true if FuncType is a vector field, i.e. a callable type that takes an ArgType[] array as input and returns a RetType[] array.

Meta

Authors

Lars Tandle Kyllingstad

License

Boost License 1.0