aimsdata  5.1.2
Neuroimaging data handling
Texture< T > Class Template Reference

#include <aims/mesh/texture.h>

Public Member Functions

 Texture ()
 
 Texture (size_t n)
 
 Texture (size_t n, const T &value)
 
virtual ~Texture ()
 
size_t nItem () const
 
size_t size () const
 alias for nItem() More...
 
const T & item (int n) const
 
const T & operator[] (int n) const
 
T & operator[] (int n)
 
T & item (int n)
 
void reserve (size_t size)
 
void push_back (const T &item)
 
const std::vector< T > & data () const
 
std::vector< T > & data ()
 
void erase ()
 
bool operator== (const Texture< T > &x) const
 

Protected Attributes

std::vector< T > _data
 

Friends

std::ostream & operator<< (std::ostream &out, const Texture< T > &thing)
 

Detailed Description

template<class T>
class Texture< T >

Definition at line 62 of file texture.h.

Constructor & Destructor Documentation

◆ Texture() [1/3]

template<class T >
Texture< T >::Texture ( )
inline

Definition at line 65 of file texture.h.

◆ Texture() [2/3]

template<class T >
Texture< T >::Texture ( size_t  n)
inline

Definition at line 66 of file texture.h.

◆ Texture() [3/3]

template<class T >
Texture< T >::Texture ( size_t  n,
const T &  value 
)
inline

Definition at line 67 of file texture.h.

◆ ~Texture()

template<class T >
virtual Texture< T >::~Texture ( )
inlinevirtual

Definition at line 68 of file texture.h.

Member Function Documentation

◆ data() [1/2]

template<class T >
std::vector<T>& Texture< T >::data ( )
inline

Definition at line 82 of file texture.h.

References Texture< T >::_data.

◆ data() [2/2]

template<class T >
const std::vector<T>& Texture< T >::data ( ) const
inline

◆ erase()

template<class T >
void Texture< T >::erase ( )
inline

Definition at line 84 of file texture.h.

References Texture< T >::_data.

◆ item() [1/2]

template<class T >
T& Texture< T >::item ( int  n)
inline

Definition at line 77 of file texture.h.

References Texture< T >::_data.

◆ item() [2/2]

template<class T >
const T& Texture< T >::item ( int  n) const
inline

Definition at line 74 of file texture.h.

References Texture< T >::_data.

Referenced by aims::Tex2Graph< T >::makeGraph(), and Texture< T >::push_back().

◆ nItem()

template<class T >
size_t Texture< T >::nItem ( ) const
inline

Definition at line 70 of file texture.h.

References Texture< T >::_data.

Referenced by aims::Tex2Graph< T >::makeGraph(), and aims::TexWriter< T >::write().

◆ operator==()

template<class T >
bool Texture< T >::operator== ( const Texture< T > &  x) const
inline

Definition at line 85 of file texture.h.

References Texture< T >::_data, and Texture< T >::data().

◆ operator[]() [1/2]

template<class T >
T& Texture< T >::operator[] ( int  n)
inline

Definition at line 76 of file texture.h.

References Texture< T >::_data.

◆ operator[]() [2/2]

template<class T >
const T& Texture< T >::operator[] ( int  n) const
inline

Definition at line 75 of file texture.h.

References Texture< T >::_data.

◆ push_back()

◆ reserve()

template<class T >
void Texture< T >::reserve ( size_t  size)
inline

◆ size()

template<class T >
size_t Texture< T >::size ( ) const
inline

Friends And Related Function Documentation

◆ operator<<

template<class T >
std::ostream& operator<< ( std::ostream &  out,
const Texture< T > &  thing 
)
friend

Definition at line 98 of file texture.h.

Member Data Documentation

◆ _data


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