supereight
Public Member Functions | List of all members
se::Image< T > Class Template Reference

#include <image.hpp>

Public Member Functions

 Image (const unsigned w, const unsigned h)
 
 Image (const unsigned w, const unsigned h, const T &val)
 
T & operator[] (std::size_t idx)
 
const T & operator[] (std::size_t idx) const
 
T & operator() (const int x, const int y)
 
const T & operator() (const int x, const int y) const
 
std::size_t size () const
 
int width () const
 
int height () const
 
T * data ()
 
const T * data () const
 

Constructor & Destructor Documentation

◆ Image() [1/2]

template<typename T>
se::Image< T >::Image ( const unsigned  w,
const unsigned  h 
)
inline

◆ Image() [2/2]

template<typename T>
se::Image< T >::Image ( const unsigned  w,
const unsigned  h,
const T &  val 
)
inline

Member Function Documentation

◆ operator[]() [1/2]

template<typename T>
T& se::Image< T >::operator[] ( std::size_t  idx)
inline

◆ operator[]() [2/2]

template<typename T>
const T& se::Image< T >::operator[] ( std::size_t  idx) const
inline

◆ operator()() [1/2]

template<typename T>
T& se::Image< T >::operator() ( const int  x,
const int  y 
)
inline

◆ operator()() [2/2]

template<typename T>
const T& se::Image< T >::operator() ( const int  x,
const int  y 
) const
inline

◆ size()

template<typename T>
std::size_t se::Image< T >::size ( ) const
inline

◆ width()

template<typename T>
int se::Image< T >::width ( ) const
inline

◆ height()

template<typename T>
int se::Image< T >::height ( ) const
inline

◆ data() [1/2]

template<typename T>
T* se::Image< T >::data ( )
inline

◆ data() [2/2]

template<typename T>
const T* se::Image< T >::data ( ) const
inline

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