Template Class FormatOrderOne

Nested Relationships

Nested Types

Inheritance Relationships

Base Type

Class Documentation

template<typename ValueType>
class sparsebase::format::FormatOrderOne : public sparsebase::format::FormatImplementation

Public Functions

FormatOrderOne()
template<template<typename> typename ToType>
ToType<ValueType> *Convert(context::Context *to_context = nullptr, bool is_move_conversion = false)

Converts this to a FormatOrderOne object of type ToType<ValueType>

Parameters
  • to_context – context used to carry out the conversion.

  • is_move_conversion – whether to carry out a move conversion.

Returns

If this is of type ToType<ValueType> then it returns the same object but as a different type. If not, it will convert this to a new FormatOrderOne object and return a pointer to the new object.

template<template<typename> typename ToType>
ToType<ValueType> *Convert(const std::vector<context::Context*> &to_context, bool is_move_conversion = false)
template<template<typename> typename ToType, typename ToValueType>
ToType<ToValueType> *Convert(bool is_move_conversion = false)
template<typename T>
inline std::remove_pointer<T>::type *As()
template<template<typename> typename T>
inline std::remove_pointer<T<ValueType>>::type *As()
template<template<typename> typename T>
inline bool Is()

Templated function that can be used to check the concrete type of this object

Template Parameters

T – a format class (for example: Array, CUDAArray)

Returns

true if the type of this object is T

template<template<typename> typename ToType, typename ToValueType>
struct TypeConverter

Public Functions

inline ToType<ToValueType> *operator()(FormatOrderOne<ValueType>*, bool)
template<typename ValueType> Array, ToValueType >

Public Functions

inline format::Array<ToValueType> *operator()(FormatOrderOne<ValueType> *source, bool is_move_conversion)