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

#include <aims/mesh/surfacemanip.h>

Public Member Functions

 Texture ()
 
 Texture (size_t n)
 
 Texture (size_t n, const T &value)
 
virtual ~Texture ()
 
size_t nItem () const
 
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 50 of file surfacemanip.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>
const std::vector<T>& Texture< T >::data ( ) const
inline

Definition at line 79 of file texture.h.

References Texture< T >::_data.

Referenced by Texture< T >::operator==(), and aims::TexWriter< T >::write().

◆ data() [2/2]

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

Definition at line 80 of file texture.h.

References Texture< T >::_data.

◆ erase()

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

Definition at line 82 of file texture.h.

References Texture< T >::_data.

Referenced by TimeTexture< T >::erase(), and TimeTexture< T >::push_back().

◆ item() [1/2]

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

Definition at line 72 of file texture.h.

References Texture< T >::_data.

Referenced by aims::Tex2Graph< T >::makeGraph(), and TimeTexture< T >::operator==().

◆ item() [2/2]

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

Definition at line 75 of file texture.h.

References Texture< T >::_data.

◆ nItem()

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

◆ operator==()

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

Definition at line 83 of file texture.h.

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

◆ operator[]() [1/2]

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

Definition at line 73 of file texture.h.

References Texture< T >::_data.

◆ operator[]() [2/2]

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

Definition at line 74 of file texture.h.

References Texture< T >::_data.

◆ push_back()

◆ reserve()

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

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 96 of file texture.h.

Member Data Documentation

◆ _data


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