RowSizeHolder< S > Struct Template Reference
[TooN internals]

#include <allocator.hh>

Inheritance diagram for RowSizeHolder< S >:

SizeHolder< S >

List of all members.

Public Member Functions

 RowSizeHolder (int i)
template<typename Op >
 RowSizeHolder (const Operator< Op > &op)
int num_rows () const


Detailed Description

template<int S>
struct TooN::Internal::RowSizeHolder< S >

For internal use only.

This struct holds the number of rows, only allocating space if necessary.


Constructor & Destructor Documentation

RowSizeHolder ( int  i  ) 

Construct from an int to provide a run time size if necessary.

Parameters:
i The size, which is discarded for the static case.

RowSizeHolder ( const Operator< Op > &  op  ) 

Construct from an Operator, taking the size from the operator.

The size is only used in the dynamic case.

Parameters:
op Operator from which to determine the size.


Member Function Documentation

int num_rows (  )  const

Return the number of rows.


Generated on Tue Oct 27 16:09:25 2009 for TooN by  doxygen 1.5.9