H3D API  2.4.1
Public Member Functions | Protected Member Functions | List of all members
H3D::TypedRefCountField< RefCountedType, BaseRefCountType > Class Template Reference

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

#include <H3D/FieldTemplates.h>

Inherits BaseRefCountType.

Public Member Functions

virtual RefCountedType * getValue ()
 Get the value casted to the RefCountType.
 

Protected Member Functions

void onAdd (typename BaseRefCountType::value_type n)
 We check that the type of the Node is of the correct type.
 

Detailed Description

template<class RefCountedType, class BaseRefCountType>
class H3D::TypedRefCountField< RefCountedType, BaseRefCountType >

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

Parameters
RefCountedTyoeThe expected RefcountedClass type.
BaseRefCountTypeThe base field type.

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