Template Class FormatOrderTwo

Nested Relationships

Nested Types

Inheritance Relationships

Base Type

Class Documentation

template<typename IDType, typename NNZType, typename ValueType>
class sparsebase::format::FormatOrderTwo : public sparsebase::format::FormatImplementation

Public Functions

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

Converts this to a FormatOrderTwo object of type ToType<IDType, NNZType, 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, typename> class ToType>
ToType<IDType, NNZType, ValueType> *Convert(const std::vector<context::Context*> &to_context, bool is_move_conversion = false)
template<template<typename, typename, typename> class ToType, typename ToIDType, typename ToNNZType, typename ToValueType>
ToType<ToIDType, ToNNZType, ToValueType> *Convert(bool is_move_conversion = false)
template<typename T>
inline std::remove_pointer<T>::type *As()
template<template<typename, typename, typename> typename T>
inline std::remove_pointer<T<IDType, NNZType, ValueType>>::type *As()
template<template<typename, typename, 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: CSR, COO)

Returns

true if the type of this object is T

template<template<typename, typename, typename> class ToType, typename ToIDType, typename ToNNZType, typename ToValueType>
struct TypeConverter

Public Functions

inline ToType<ToIDType, ToNNZType, ToValueType> *operator()(FormatOrderTwo<IDType, NNZType, ValueType>*, bool)