TooN 2.1
Public Member Functions
RowSizeHolder< S > Struct Template Reference

#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 >

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:
iThe 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:
opOperator from which to determine the size.