libMesh::TypeTensorColumn< T > Class Template Reference

#include <type_tensor.h>

List of all members.

Public Member Functions

 TypeTensorColumn (TypeTensor< T > &tensor, unsigned int j)
T & operator() (const unsigned int i)
T & slice (const unsigned int i)
TypeTensorColumn< T > & operator= (const TypeVector< T > &rhs)

Private Attributes

TypeTensor< T > * _tensor
const unsigned int _j

Detailed Description

template<typename T>
class libMesh::TypeTensorColumn< T >

Definition at line 358 of file type_tensor.h.


Constructor & Destructor Documentation

template<typename T>
libMesh::TypeTensorColumn< T >::TypeTensorColumn ( TypeTensor< T > &  tensor,
unsigned int  j 
) [inline]

Definition at line 362 of file type_tensor.h.

00363                                    :
00364      _tensor(&tensor), _j(j) {}


Member Function Documentation

template<typename T>
T& libMesh::TypeTensorColumn< T >::operator() ( const unsigned int  i  )  [inline]

Return a writeable reference to the $ i,this $ element of the tensor.

Definition at line 370 of file type_tensor.h.

References libMesh::TypeTensorColumn< T >::_j, and libMesh::TypeTensorColumn< T >::_tensor.

00371     { return (*_tensor)(i,_j); }

template<typename T>
TypeTensorColumn<T>& libMesh::TypeTensorColumn< T >::operator= ( const TypeVector< T > &  rhs  )  [inline]

Assign values to this column of the tensor.

Definition at line 379 of file type_tensor.h.

00380     { 
00381       for (unsigned int i=0; i != LIBMESH_DIM; ++i)
00382         (*this)(i) = rhs(i);
00383       return *this;
00384     }

template<typename T>
T& libMesh::TypeTensorColumn< T >::slice ( const unsigned int  i  )  [inline]

Definition at line 373 of file type_tensor.h.

References libMesh::TypeTensorColumn< T >::_j, and libMesh::TypeTensorColumn< T >::_tensor.

00374     { return (*_tensor)(i,_j); }


Member Data Documentation

template<typename T>
const unsigned int libMesh::TypeTensorColumn< T >::_j [private]
template<typename T>
TypeTensor<T>* libMesh::TypeTensorColumn< T >::_tensor [private]

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

Site Created By: libMesh Developers
Last modified: February 05 2013 19:55:42 UTC

Hosted By:
SourceForge.net Logo