aimsdata 6.0.0
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()
 
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.

Referenced by operator<<, and operator==().

◆ Texture() [2/3]

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

Definition at line 66 of file texture.h.

References _data.

◆ Texture() [3/3]

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

Definition at line 67 of file texture.h.

References _data.

◆ ~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 _data.

◆ data() [2/2]

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

Definition at line 81 of file texture.h.

References _data.

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

◆ erase()

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

Definition at line 84 of file texture.h.

References _data.

◆ item() [1/2]

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

Definition at line 77 of file texture.h.

References _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 _data.

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

◆ 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 85 of file texture.h.

References _data, data(), and Texture().

◆ operator[]() [1/2]

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

Definition at line 76 of file texture.h.

References _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 _data.

◆ push_back()

template<class T>
void Texture< T >::push_back ( const T & item)
inline

◆ reserve()

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

Definition at line 79 of file texture.h.

References _data, and size().

Referenced by carto::RawConverter< TimeTexture< INP >, TimeTexture< OUTP > >::convert().

◆ size()

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

alias for nItem()

Definition at line 72 of file texture.h.

References _data.

Referenced by reserve().

Friends And Related Symbol Documentation

◆ operator<<

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

Definition at line 98 of file texture.h.

References item(), nItem(), and Texture().

Member Data Documentation

◆ _data

template<class T>
std::vector< T > Texture< T >::_data
protected

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