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

#include <Cloning.hpp>

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

Public Types

typedef PortBundle Type
 
typedef boost::shared_ptr< TypePointer
 

Public Member Functions

Pointer operator() (const Pointer &inSource, const ObjectFactorySharedPtr &inFactory) throw (Error)
 
void visit (PortBundle &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 PortBundle >

Definition at line 1326 of file Cloning.hpp.

Member Typedef Documentation

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

Definition at line 1329 of file Cloning.hpp.

Definition at line 1328 of file Cloning.hpp.

Constructor & Destructor Documentation

Definition at line 1347 of file Cloning.hpp.

1347  : Type::Visitor(), mFactory(), mReturnVal() {
1348  }
torc::generic::_impl::Copier< class PortBundle >::~Copier ( )
throw (
)
inline

Definition at line 1350 of file Cloning.hpp.

1350  {
1351  }

Member Function Documentation

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

Definition at line 1331 of file Cloning.hpp.

1332  {
1333  mFactory = inFactory;
1334  inSource->accept(*this);
1335  return mReturnVal;
1336  }
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 PortBundle >::visit ( PortBundle inPort)
throw (Error
)
inline

Definition at line 1338 of file Cloning.hpp.

1338  {
1339  try {
1340  copyObject(inPort, mFactory, mReturnVal);
1341  } catch(Error& e) {
1342  e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
1343  throw;
1344  }
1345  }
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 1354 of file Cloning.hpp.

Pointer torc::generic::_impl::Copier< class PortBundle >::mReturnVal
private

Definition at line 1355 of file Cloning.hpp.


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