Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes
concepts::TColumn< F > Class Template Reference

A column of a T matrix. More...

#include <tmatrix.hh>

Inheritance diagram for concepts::TColumn< F >:
Inheritance graph
[legend]
Collaboration diagram for concepts::TColumn< F >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void append (TColumn< F > *T)
 Appends a linked list of TColumns at the end.
void clear ()
 Deletes all member of the linked list.
virtual TColumn< F > * clone () const
 Returns a copy of itself.
uint index () const
 Returns the index of the column in a matrix.
TColumn< F > * link () const
 Returns the pointer to the next column of the linked list.
uint n () const
 Returns the number of rows.
operator[] (uint i) const
 Returns the ith entry in the column.
F & operator[] (uint i)
 Returns the ith entry in the column.
 TColumn ()
 TColumn (const TColumn< F > &t)
 Copy constructor.
 TColumn (uint n, uint idx, TColumn< F > *lnk=0, F def=0)
 Constructor.
F * values ()
 Returns the array of entries.
const F * values () const
 Returns the array of entries.
virtual ~TColumn ()

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream.
uint successors_ () const
 number of successors

Protected Attributes

Array< F > val_
 The data of the column itself.

Private Attributes

uint idx_
 Index of the column in a matrix.
TColumn< F > * lnk_
 Pointer to the next column in a linked list.
uint n_
 Number of rows.

Detailed Description

template<class F>
class concepts::TColumn< F >

A column of a T matrix.

More than one T column are arranged in a linked list. These columns are inserted into the T matrix.

See also:
TMatrixBase

Definition at line 38 of file tmatrix.hh.


Constructor & Destructor Documentation

template<class F>
concepts::TColumn< F >::TColumn ( ) [inline]
Deprecated:
this constructor does not seem to make sense

Definition at line 42 of file tmatrix.hh.

template<class F>
concepts::TColumn< F >::TColumn ( uint  n,
uint  idx,
TColumn< F > *  lnk = 0,
def = 0 
)

Constructor.

Parameters:
nNumber of rows
idxIndex of the column in a T matrix
lnkPointer to the next column (linked list)
template<class F>
concepts::TColumn< F >::TColumn ( const TColumn< F > &  t)

Copy constructor.

The link to the next element in the linear list (lnk_) is not copied!

template<class F>
virtual concepts::TColumn< F >::~TColumn ( ) [virtual]

Member Function Documentation

template<class F>
void concepts::TColumn< F >::append ( TColumn< F > *  T)

Appends a linked list of TColumns at the end.

template<class F>
void concepts::TColumn< F >::clear ( )

Deletes all member of the linked list.

template<class F>
virtual TColumn<F>* concepts::TColumn< F >::clone ( ) const [virtual]
template<class F>
uint concepts::TColumn< F >::index ( ) const [inline]

Returns the index of the column in a matrix.

Definition at line 67 of file tmatrix.hh.

template<class F>
virtual std::ostream& concepts::TColumn< F >::info ( std::ostream &  os) const [protected, virtual]

Returns information in an output stream.

Reimplemented from concepts::OutputOperator.

Reimplemented in concepts::TColumnTensor< F, dim >, concepts::TColumnBlock< F, dim >, and concepts::TColumnTensor< bool, 2 >.

template<class F>
TColumn<F>* concepts::TColumn< F >::link ( ) const [inline]

Returns the pointer to the next column of the linked list.

Definition at line 70 of file tmatrix.hh.

template<class F>
uint concepts::TColumn< F >::n ( ) const [inline]

Returns the number of rows.

Reimplemented in concepts::TColumnTensor< F, dim >, concepts::TColumnBlock< F, dim >, and concepts::TColumnTensor< bool, 2 >.

Definition at line 79 of file tmatrix.hh.

template<class F>
F concepts::TColumn< F >::operator[] ( uint  i) const [inline]

Returns the ith entry in the column.

Definition at line 57 of file tmatrix.hh.

template<class F>
F& concepts::TColumn< F >::operator[] ( uint  i) [inline]

Returns the ith entry in the column.

Definition at line 59 of file tmatrix.hh.

template<class F>
uint concepts::TColumn< F >::successors_ ( ) const [protected]

number of successors

template<class F>
const F* concepts::TColumn< F >::values ( ) const [inline]

Returns the array of entries.

Definition at line 62 of file tmatrix.hh.

template<class F>
F* concepts::TColumn< F >::values ( ) [inline]

Returns the array of entries.

Definition at line 64 of file tmatrix.hh.


Member Data Documentation

template<class F>
uint concepts::TColumn< F >::idx_ [private]

Index of the column in a matrix.

Definition at line 97 of file tmatrix.hh.

template<class F>
TColumn<F>* concepts::TColumn< F >::lnk_ [private]

Pointer to the next column in a linked list.

Definition at line 91 of file tmatrix.hh.

template<class F>
uint concepts::TColumn< F >::n_ [private]

Number of rows.

Reimplemented in concepts::TColumnTensor< F, dim >, concepts::TColumnBlock< F, dim >, and concepts::TColumnTensor< bool, 2 >.

Definition at line 94 of file tmatrix.hh.

template<class F>
Array<F> concepts::TColumn< F >::val_ [protected]

The data of the column itself.

Definition at line 88 of file tmatrix.hh.


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

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)