1 // RUN: %clang_cc1 -emit-llvm %s -o -
8 protected:virtual ~ CallbackHandle (void)
12 template < typename Data1
> class CallbackBase_1Data
:public CallbackHandle
19 template < typename _Iterator
, typename _Container
>
20 class __normal_iterator
28 template < typename _Tp
> struct allocator
32 template < typename _InputIterator
,
33 typename _Tp
> inline void find (_InputIterator __last
,
41 template < typename _Tp
, typename _Alloc
> struct _Vector_base
50 template < typename _Tp
, typename _Alloc
= std::allocator
< _Tp
> >
51 class vector
:protected _Vector_base
< _Tp
,_Alloc
>
54 typedef __gnu_cxx::__normal_iterator
< typename
_Alloc::pointer
,
55 vector
< _Tp
, _Alloc
> > iterator
;
65 virtual CallbackHandle
*registerTerminationCallback (CallbackBase_1Data
<
67 virtual void unregisterCallback (CallbackHandle
*);
68 typedef vector
< CallbackBase_1Data
< int >*>PRCallbackMapType
;
69 PRCallbackMapType parallelPreRenderCallbacks
;
72 using namespace Manta
;
74 RTRT::registerTerminationCallback (CallbackBase_1Data
< MantaInterface
* >*cb
)
80 RTRT::unregisterCallback (CallbackHandle
* callback
)
83 typedef CallbackBase_1Data
< int > callback_t
;
84 callback_t
*cb
= static_cast < callback_t
* >(callback
);
85 find (parallelPreRenderCallbacks
.end (), cb
);