H3D::TypedSFNode< NodeType > Class Template Reference
[Field template modifiers.]

Template to make sure that the Node that is set in a SFNode is of a specified Node type. More...

#include <H3D/SFNode.h>

Inheritance diagram for H3D::TypedSFNode< NodeType >:

Inheritance graph

List of all members.

Public Member Functions

virtual NodeType * getValue (int id=0)
 Get the value casted to the NodeType.
virtual NodeType * getCastedValue (int id=0)
 Get the value casted to the NodeType.

Protected Types

typedef NodeType typed_class_type
 The subclass of value_type of that the TypedSFNode has made sure that the node is of.
typedef NodeType * typed_value_type
 A pointer type to the subclass value_type of that the TypedSFNode has made sure that the node is of.

Protected Member Functions

void onAdd (Node *n)
 We check that the type of the Node is of the correct type.


Detailed Description

template<class NodeType>
class H3D::TypedSFNode< NodeType >

Template to make sure that the Node that is set in a SFNode is of a specified Node type.

Parameters:
NodeType The expected Node type. Must be a subclass of Node.

Member Typedef Documentation

template<class NodeType >
typedef NodeType H3D::TypedSFNode< NodeType >::typed_class_type [protected]

The subclass of value_type of that the TypedSFNode has made sure that the node is of.

Reimplemented from H3D::RefCountSField< RefClass, BaseField >.

template<class NodeType >
typedef NodeType* H3D::TypedSFNode< NodeType >::typed_value_type [protected]

A pointer type to the subclass value_type of that the TypedSFNode has made sure that the node is of.

Reimplemented from H3D::RefCountSField< RefClass, BaseField >.


The documentation for this class was generated from the following file:

Generated on Fri Nov 7 10:30:50 2008 for H3D API by  doxygen 1.5.7