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

#include <Cloning.hpp>

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

Public Types

typedef VectorPort Type
 
typedef boost::shared_ptr< TypePointer
 

Public Member Functions

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

Definition at line 1184 of file Cloning.hpp.

Member Typedef Documentation

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

Definition at line 1187 of file Cloning.hpp.

Definition at line 1186 of file Cloning.hpp.

Constructor & Destructor Documentation

Definition at line 1205 of file Cloning.hpp.

1205  : Type::Visitor(), mFactory(), mReturnVal() {
1206  }
torc::generic::_impl::Copier< class VectorPort >::~Copier ( )
throw (
)
inline

Definition at line 1208 of file Cloning.hpp.

1208  {
1209  }

Member Function Documentation

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

Definition at line 1189 of file Cloning.hpp.

1190  {
1191  mFactory = inFactory;
1192  inSource->accept(*this);
1193  return mReturnVal;
1194  }
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 VectorPort >::visit ( VectorPort inPort)
throw (Error
)
inline

Definition at line 1196 of file Cloning.hpp.

1196  {
1197  try {
1198  copyObject(inPort, mFactory, mReturnVal);
1199  } catch(Error& e) {
1200  e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
1201  throw;
1202  }
1203  }
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 1212 of file Cloning.hpp.

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

Definition at line 1213 of file Cloning.hpp.


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