A.I.M.S


Texture< T > Class Template Reference

#include <aims/mesh/surfaceOperation.h>

Public Member Functions

 Texture ()
 
 Texture (size_t n)
 
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 ()
 

Protected Attributes

std::vector< T > _data
 

Friends

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

Detailed Description

template<typename T>
class Texture< T >

Definition at line 53 of file surfaceOperation.h.

Constructor & Destructor Documentation

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

Definition at line 65 of file texture.h.

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

Definition at line 66 of file texture.h.

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

Definition at line 67 of file texture.h.

Member Function Documentation

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

Definition at line 78 of file texture.h.

References Texture< T >::_data.

Referenced by aims::TexWriter< T >::write().

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

Definition at line 79 of file texture.h.

References Texture< T >::_data.

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

Definition at line 81 of file texture.h.

References Texture< T >::_data.

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

Definition at line 71 of file texture.h.

References Texture< T >::_data.

Referenced by aims::Tex2Graph< T >::makeGraph().

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

Definition at line 74 of file texture.h.

References Texture< T >::_data.

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

Definition at line 69 of file texture.h.

References Texture< T >::_data.

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

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

Definition at line 72 of file texture.h.

References Texture< T >::_data.

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

Definition at line 73 of file texture.h.

References Texture< T >::_data.

template<typename T>
void Texture< T >::push_back ( const T &  item)
inline
template<typename T>
void Texture< T >::reserve ( size_t  size)
inline

Friends And Related Function Documentation

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

Definition at line 94 of file texture.h.

Member Data Documentation

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

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