ArrayTransformWrapper::ArrayTransformWrapper(
   FABRIC_GC_OBJECT_CLASS_PARAM,
   RC::ConstHandle<ArrayProducerWrapper> const &inputArrayProducer,
   RC::ConstHandle<KLC::ArrayTransformOperatorWrapper> const &operator_,
   RC::ConstHandle<ValueProducerWrapper> const &sharedValueProducer
   )
   : ArrayProducerWrapper( FABRIC_GC_OBJECT_CLASS_ARG )
   , m_inputArrayProducer( inputArrayProducer )
   , m_operator( operator_ )
   , m_sharedValueProducer( sharedValueProducer )
   , m_unwrapped(
     ArrayTransform::Create(
       inputArrayProducer->getUnwrapped(),
       operator_->getUnwrapped(),
       sharedValueProducer? sharedValueProducer->getUnwrapped(): RC::ConstHandle<ValueProducer>()
       )
     )
 {
 }
Пример #2
0
 ArrayCacheWrapper::ArrayCacheWrapper(
   FABRIC_GC_OBJECT_CLASS_PARAM,
   RC::ConstHandle<ArrayProducerWrapper> const &inputArrayProducer
   )
   : ArrayProducerWrapper( FABRIC_GC_OBJECT_CLASS_ARG )
   , m_inputArrayProducer( inputArrayProducer )
   , m_unwrapped(
     ArrayCache::Create(
       inputArrayProducer->getUnwrapped()
       )
     )
 {
 }