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 type = T
 
using primitive = typename util::value_type<T>::type
 

Static Public Member Functions

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

Static Public Attributes

static const size_t comp = util::extent<T>::value
 
static const size_t typesize = sizeof(type)
 
static const size_t compsize = sizeof(primitive)
 
static const NumericType numtype = util::getNumericType<primitive>()
 

Additional Inherited Members

- Public Member Functions inherited from inviwo::DataFormatBase
size_t getSizeInBytes () const
 
size_t getSize () const
 
size_t getComponents () const
 
size_t getPrecision () const
 
NumericType getNumericType () const
 
double getMax () const
 
double getMin () const
 
double getLowest () const
 
std::string_view getString () const
 
DataFormatId getId () const
 
- Protected Member Functions inherited from inviwo::DataFormatBase
 DataFormatBase (DataFormatId type, size_t components, size_t size, double max, double min, double lowest, NumericType nt, std::string_view s)
 
 DataFormatBase (const DataFormatBase &)=delete
 
 DataFormatBase (DataFormatBase &&)=delete
 
DataFormatBaseoperator= (const DataFormatBase &)=delete
 
DataFormatBaseoperator= (DataFormatBase &&)=delete
 
- Protected Attributes inherited from inviwo::DataFormatBase
DataFormatId formatId_
 
size_t components_
 
size_t sizeInBytes_
 
NumericType numericType_
 
double max_
 
double min_
 
double lowest_
 
std::string_view formatStr_
 

Member Function Documentation

◆ components()

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

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

◆ precision()

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

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

◆ sizeInBytes()

template<typename T >
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: