VTK  9.4.20241121
Classes | Typedefs | Functions
vtkTryDowncast.h File Reference
#include "vtkDenseArray.h"
#include "vtkSmartPointer.h"
#include "vtkSparseArray.h"
#include <boost/mpl/for_each.hpp>
#include <boost/mpl/joint_view.hpp>
#include <boost/mpl/vector.hpp>
Include dependency graph for vtkTryDowncast.h:

Go to the source code of this file.

Classes

class  vtkTryDowncastHelper1< TargetT, FunctorT >
 
class  vtkTryDowncastHelper2< TargetT, FunctorT >
 
class  vtkTryDowncastHelper3< TargetT, FunctorT >
 

Typedefs

typedef boost::mpl::vector< vtkTypeUInt8, vtkTypeInt8, vtkTypeUInt16, vtkTypeInt16, vtkTypeUInt32, vtkTypeInt32, vtkTypeUInt64, vtkTypeInt64, vtkIdTypevtkIntegerTypes
 
typedef boost::mpl::vector< vtkTypeFloat32, vtkTypeFloat64 > vtkFloatingPointTypes
 
typedef boost::mpl::joint_view< vtkIntegerTypes, vtkFloatingPointTypesvtkNumericTypes
 
typedef boost::mpl::vector< vtkStdStringvtkStringTypes
 
typedef boost::mpl::joint_view< vtkNumericTypes, vtkStringTypesvtkAllTypes
 

Functions

template<template< typename > class TargetT, typename TypesT , typename FunctorT >
bool vtkTryDowncast (vtkObject *source1, FunctorT functor)
 
template<template< typename > class TargetT, typename TypesT , typename FunctorT >
bool vtkTryDowncast (vtkObject *source1, vtkObject *source2, FunctorT functor)
 
template<template< typename > class TargetT, typename TypesT , typename FunctorT >
bool vtkTryDowncast (vtkObject *source1, vtkObject *source2, vtkObject *source3, FunctorT functor)
 

Typedef Documentation

◆ vtkIntegerTypes

typedef boost::mpl::vector<vtkTypeUInt8, vtkTypeInt8, vtkTypeUInt16, vtkTypeInt16, vtkTypeUInt32, vtkTypeInt32, vtkTypeUInt64, vtkTypeInt64, vtkIdType> vtkIntegerTypes

Definition at line 24 of file vtkTryDowncast.h.

◆ vtkFloatingPointTypes

typedef boost::mpl::vector<vtkTypeFloat32, vtkTypeFloat64> vtkFloatingPointTypes

Definition at line 27 of file vtkTryDowncast.h.

◆ vtkNumericTypes

typedef boost::mpl::joint_view<vtkIntegerTypes, vtkFloatingPointTypes> vtkNumericTypes

Definition at line 30 of file vtkTryDowncast.h.

◆ vtkStringTypes

typedef boost::mpl::vector<vtkStdString> vtkStringTypes

Definition at line 33 of file vtkTryDowncast.h.

◆ vtkAllTypes

typedef boost::mpl::joint_view<vtkNumericTypes, vtkStringTypes> vtkAllTypes

Definition at line 36 of file vtkTryDowncast.h.

Function Documentation

◆ vtkTryDowncast() [1/3]

template<template< typename > class TargetT, typename TypesT , typename FunctorT >
bool vtkTryDowncast ( vtkObject source1,
FunctorT  functor 
)

Definition at line 149 of file vtkTryDowncast.h.

◆ vtkTryDowncast() [2/3]

template<template< typename > class TargetT, typename TypesT , typename FunctorT >
bool vtkTryDowncast ( vtkObject source1,
vtkObject source2,
FunctorT  functor 
)

Definition at line 158 of file vtkTryDowncast.h.

◆ vtkTryDowncast() [3/3]

template<template< typename > class TargetT, typename TypesT , typename FunctorT >
bool vtkTryDowncast ( vtkObject source1,
vtkObject source2,
vtkObject source3,
FunctorT  functor 
)

Definition at line 167 of file vtkTryDowncast.h.