Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::DataFormat< T > Class Template Referencefinal
+ Inheritance diagram for inviwo::DataFormat< T >:

Public Types

using primitive = util::value_type_t<T>
 
using type = T
 

Static Public Member Functions

static constexpr size_t components ()
 
static constexpr const DataFormatBase * get ()
 
static constexpr DataFormatId id ()
 
static constexpr T lowest ()
 
static constexpr double lowestToDouble ()
 
static constexpr T max ()
 
static constexpr double maxToDouble ()
 
static constexpr T min ()
 
static constexpr double minToDouble ()
 
static constexpr NumericType numericType ()
 
static constexpr size_t precision ()
 
static constexpr size_t rank ()
 
static constexpr size_t sizeInBytes ()
 
static constexpr auto staticStr ()
 
static constexpr std::string_view str ()
 
- Static Public Member Functions inherited from inviwo::DataFormatBase
static constexpr std::optional< DataFormatId > find (NumericType type, size_t components, size_t precision)
 
static constexpr std::optional< DataFormatId > find (NumericType type, size_t components, size_t precision, size_t rank)
 
static constexpr std::optional< DataFormatId > find (std::string_view name)
 
static constexpr const DataFormatBase * get ()
 
static constexpr const DataFormatBase * get (DataFormatId id)
 
static constexpr const DataFormatBase * get (NumericType type, size_t components, size_t precision)
 
static constexpr const DataFormatBase * get (NumericType type, size_t components, size_t precision, size_t rank)
 
static constexpr const DataFormatBase * get (std::string_view name)
 
template<typename T >
static constexpr DataFormatId typeToId () noexcept
 

Static Public Attributes

static constexpr size_t comp = util::extent_v<T>
 
static constexpr size_t compsize = sizeof(primitive)
 
static constexpr NumericType numtype = util::getNumericType<primitive>()
 
static constexpr size_t typesize = sizeof(type)
 

Additional Inherited Members

- Public Member Functions inherited from inviwo::DataFormatBase
constexpr DataFormatBase (DataFormatId type, size_t rank, size_t components, size_t size, double max, double min, double lowest, NumericType nt, std::string_view s)
 
constexpr size_t getComponents () const
 
constexpr DataFormatId getId () const
 
constexpr double getLowest () const
 
constexpr double getMax () const
 
constexpr double getMin () const
 
constexpr NumericType getNumericType () const
 
constexpr size_t getPrecision () const
 
constexpr size_t getRank () const
 
constexpr size_t getSizeInBytes () const
 
constexpr std::string_view getString () const
 
- Protected Member Functions inherited from inviwo::DataFormatBase
 DataFormatBase (const DataFormatBase &)=default
 
 DataFormatBase (DataFormatBase &&)=default
 
DataFormatBase & operator= (const DataFormatBase &)=default
 
DataFormatBase & operator= (DataFormatBase &&)=default
 
- Static Protected Member Functions inherited from inviwo::DataFormatBase
static constexpr const DataFormatBase * getImpl (DataFormatId id)
 
static const DataFormatBase * getInternal (DataFormatId id)
 
- Protected Attributes inherited from inviwo::DataFormatBase
size_t components_
 
DataFormatId formatId_
 
std::string_view formatStr_
 
double lowest_
 
double max_
 
double min_
 
NumericType numericType_
 
size_t rank_
 
size_t sizeInBytes_
 

Member Function Documentation

◆ components()

template<typename T >
constexpr size_t inviwo::DataFormat< T >::components ( )
staticconstexpr

Returns the number of components in the format, 1 to 4.

◆ numericType()

template<typename T >
constexpr NumericType inviwo::DataFormat< T >::numericType ( )
staticconstexpr

Returns numeric type of the format

See also
NumericType

◆ precision()

template<typename T >
constexpr size_t inviwo::DataFormat< T >::precision ( )
staticconstexpr

Returns number of bits in each component in the format. can be 8, 16, 32 or 64.

◆ rank()

template<typename T >
constexpr size_t inviwo::DataFormat< T >::rank ( )
staticconstexpr

Returns the rank in the format, 0, 1 or 2.

◆ sizeInBytes()

template<typename T >
constexpr size_t inviwo::DataFormat< T >::sizeInBytes ( )
staticconstexpr

Returns the size of the format in bytes. For all components.


The documentation for this class was generated from the following file: