ColSizeHolder< S > Struct Template Reference
[TooN internals]

#include <allocator.hh>

Inheritance diagram for ColSizeHolder< S >:

SizeHolder< S >

List of all members.

Public Member Functions

 ColSizeHolder (int i)
template<typename Op >
 ColSizeHolder (const Operator< Op > &op)
int num_cols () const


Detailed Description

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

For internal use only.

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


Constructor & Destructor Documentation

ColSizeHolder ( 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.

ColSizeHolder ( 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_cols (  )  const

Return the number of columns.


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