H3D::TypedFieldTypeCheck::AnyNumber< Type > Struct Template Reference

The AnyNumber template can be used in the OptionalArgTypes argument of a TypedField template instantiation. More...

#include <TypedFieldCheck.h>

List of all members.

Static Public Member Functions

static void checkTemplateArguments ()
 Check that the template arguments are on the correct form, i.e.
static void checkType (Field *f, int index)
 Check that a field is of the correct type.


Detailed Description

template<class Type>
struct H3D::TypedFieldTypeCheck::AnyNumber< Type >

The AnyNumber template can be used in the OptionalArgTypes argument of a TypedField template instantiation.

It defines that there can be an unlimited number of routes of the type given to the template. An AnyNumber template can contain Field types, Any <> template and Types <> template instantiations.

Examples:
AnyNumber< SFInt32 > means any number of SFInt32 routes.
AnyNumber< Any< SFInt32, MFInt32 > > means any number of SFInt32 or MFInt32 routes.


Member Function Documentation

template<class Type>
static void H3D::TypedFieldTypeCheck::AnyNumber< Type >::checkTemplateArguments  )  [inline, static]
 

Check that the template arguments are on the correct form, i.e.

only contains the a single type or valid Any <> template or Types <> template instantiations.

Exceptions:
InvalidTemplateArguments 

template<class Type>
static void H3D::TypedFieldTypeCheck::AnyNumber< Type >::checkType Field f,
int  index
[inline, static]
 

Check that a field is of the correct type.

Parameters:
f The field to check the type of
index The index of the field in the template types specified in Type.
Exceptions:
InvalidType 


Generated on Thu Aug 24 12:40:35 2006 for H3D API by  doxygen 1.4.5