Open CASCADE Technology  7.6.0
Public Member Functions

Graphic3d_ValueInterface Struct Referenceabstract

Interface for generic variable value. More...

#include <Graphic3d_ShaderVariable.hxx>

Inheritance diagram for Graphic3d_ValueInterface:
Inheritance graph
[legend]

Public Member Functions

virtual ~Graphic3d_ValueInterface ()
 Releases memory resources of variable value. More...
 
virtual Standard_Size TypeID () const =0
 Returns unique identifier of value type. More...
 
template<class T >
T & As ()
 Returns variable value casted to specified type. More...
 
template<class T >
const T & As () const
 Returns variable value casted to specified type. More...
 

Detailed Description

Interface for generic variable value.

Constructor & Destructor Documentation

◆ ~Graphic3d_ValueInterface()

virtual Graphic3d_ValueInterface::~Graphic3d_ValueInterface ( )
virtual

Releases memory resources of variable value.

Member Function Documentation

◆ As() [1/2]

template<class T >
T& Graphic3d_ValueInterface::As ( )

Returns variable value casted to specified type.

◆ As() [2/2]

template<class T >
const T& Graphic3d_ValueInterface::As ( ) const

Returns variable value casted to specified type.

◆ TypeID()

virtual Standard_Size Graphic3d_ValueInterface::TypeID ( ) const
pure virtual

Returns unique identifier of value type.

Implemented in Graphic3d_UniformValue< T >.


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