torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
torc::generic::_impl::Copier< class PortBundleReference > Class Template Referenceabstract

#include <Cloning.hpp>

+ Inheritance diagram for torc::generic::_impl::Copier< class PortBundleReference >:
+ Collaboration diagram for torc::generic::_impl::Copier< class PortBundleReference >:

Public Types

typedef PortBundleReference Type
 
typedef boost::shared_ptr< TypePointer
 

Public Member Functions

Pointer operator() (const Pointer &inSource, const ObjectFactorySharedPtr &inFactory) throw (Error)
 
void visit (PortBundleReference &inPort) throw (Error)
 
 Copier ()
 
 ~Copier () throw ()
 
virtual void visit (_Tp &client)=0 throw (Error)
 

Private Attributes

ObjectFactorySharedPtr mFactory
 
Pointer mReturnVal
 

Detailed Description

template<>
class torc::generic::_impl::Copier< class PortBundleReference >

Definition at line 1383 of file Cloning.hpp.

Member Typedef Documentation

typedef boost::shared_ptr<Type> torc::generic::_impl::Copier< class PortBundleReference >::Pointer

Definition at line 1386 of file Cloning.hpp.

Constructor & Destructor Documentation

Definition at line 1404 of file Cloning.hpp.

torc::generic::_impl::Copier< class PortBundleReference >::~Copier ( )
throw (
)
inline

Definition at line 1407 of file Cloning.hpp.

1407  {
1408  }

Member Function Documentation

Pointer torc::generic::_impl::Copier< class PortBundleReference >::operator() ( const Pointer inSource,
const ObjectFactorySharedPtr inFactory 
)
throw (Error
)
inline

Definition at line 1388 of file Cloning.hpp.

1389  {
1390  mFactory = inFactory;
1391  inSource->accept(*this);
1392  return mReturnVal;
1393  }
template<typename _Tp >
virtual void torc::generic::VisitorType< _Tp >::visit ( _Tp &  client)
throw (Error
)
pure virtualinherited

Visit the target object. This will typically be a derived leaf type.

Parameters
[in,out]clientA reference to the target object
Exceptions
ErrorException generated by any of the functions called from inside visit()

+ Here is the caller graph for this function:

void torc::generic::_impl::Copier< class PortBundleReference >::visit ( PortBundleReference inPort)
throw (Error
)
inline

Definition at line 1395 of file Cloning.hpp.

1395  {
1396  try {
1397  copyObject(inPort, mFactory, mReturnVal);
1398  } catch(Error& e) {
1399  e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
1400  throw;
1401  }
1402  }
void copyObject(ScalarPort &inPort, ObjectFactorySharedPtr &inFactory, _PointerType &outPointer)
Definition: Cloning.hpp:993

+ Here is the call graph for this function:

Field Documentation

Definition at line 1411 of file Cloning.hpp.

Definition at line 1412 of file Cloning.hpp.


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