H3D::TypedFieldTypeCheck::Any<> Struct Template Reference

The Any template can be used in the RequiredArgTypes or OptionalArgTypes arguments of a TypedField template instantiation. More...

#include <TypedFieldAnyTmpl.h>

List of all members.

Static Public Member Functions

static void checkTemplateArguments ()
 Checks that the template arguments is of valid form.
static void checkType (Field *f)
 Check that a field is of the correct type.


Detailed Description

template<H3D_ANY_TEMPLATE_SPEC>
struct H3D::TypedFieldTypeCheck::Any<>

The Any template can be used in the RequiredArgTypes or OptionalArgTypes arguments of a TypedField template instantiation.

It defines that a routed Field can be any of the types specified in the template. An Any template can contain Field types, No AnyNumber <> template and Types <> template instantiations are allowed.

Examples:
Any< SFInt32, MFInt32 > means that the route should be either a SFInt32 or a MFInt32
Any< SFInt32, MFInt32, SFFloat, MFFloat > means that the route should have any of the Field types listed


Member Function Documentation

template<H3D_ANY_TEMPLATE_SPEC >
static void H3D::TypedFieldTypeCheck::Any<>::checkTemplateArguments  )  [inline, static]
 

Checks that the template arguments is of valid form.

Exceptions:
InvalidTemplateArguments 

template<H3D_ANY_TEMPLATE_SPEC >
static void H3D::TypedFieldTypeCheck::Any<>::checkType Field f  )  [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