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

#include <Cloning.hpp>

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

Public Types

typedef Instance Type
 
typedef boost::shared_ptr< TypePointer
 

Public Member Functions

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

Definition at line 2199 of file Cloning.hpp.

Member Typedef Documentation

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

Definition at line 2203 of file Cloning.hpp.

Definition at line 2202 of file Cloning.hpp.

Constructor & Destructor Documentation

Definition at line 2230 of file Cloning.hpp.

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

Definition at line 2233 of file Cloning.hpp.

2233  {
2234  }

Member Function Documentation

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

Definition at line 2205 of file Cloning.hpp.

2206  {
2207  mFactory = inFactory;
2208  inSource->accept(*this);
2209  return mReturnVal;
2210  }
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 Instance >::visit ( SingleInstance inInstance)
throw (Error
)
inline

Definition at line 2212 of file Cloning.hpp.

2212  {
2213  try {
2214  copyObject(inInstance, mFactory, mReturnVal);
2215  } catch(Error& e) {
2216  e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
2217  throw;
2218  }
2219  }
void copyObject(ScalarPort &inPort, ObjectFactorySharedPtr &inFactory, _PointerType &outPointer)
Definition: Cloning.hpp:993

+ Here is the call graph for this function:

void torc::generic::_impl::Copier< class Instance >::visit ( InstanceArray inInstance)
throw (Error
)
inline

Definition at line 2221 of file Cloning.hpp.

2221  {
2222  try {
2223  copyObject(inInstance, mFactory, mReturnVal);
2224  } catch(Error& e) {
2225  e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
2226  throw;
2227  }
2228  }
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 2237 of file Cloning.hpp.

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

Definition at line 2238 of file Cloning.hpp.


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