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

#include <Cloning.hpp>

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

Public Types

typedef Parameter Type
 
typedef boost::shared_ptr< TypePointer
 

Public Member Functions

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

Definition at line 2242 of file Cloning.hpp.

Member Typedef Documentation

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

Definition at line 2246 of file Cloning.hpp.

Definition at line 2245 of file Cloning.hpp.

Constructor & Destructor Documentation

Definition at line 2273 of file Cloning.hpp.

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

Definition at line 2276 of file Cloning.hpp.

2276  {
2277  }

Member Function Documentation

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

Definition at line 2248 of file Cloning.hpp.

2249  {
2250  mFactory = inFactory;
2251  inSource->accept(*this);
2252  return mReturnVal;
2253  }
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 Parameter >::visit ( SingleParameter inParameter)
throw (Error
)
inline

Definition at line 2255 of file Cloning.hpp.

2255  {
2256  try {
2257  copyObject(inParameter, mFactory, mReturnVal);
2258  } catch(Error& e) {
2259  e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
2260  throw;
2261  }
2262  }
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 Parameter >::visit ( ParameterArray inParameter)
throw (Error
)
inline

Definition at line 2264 of file Cloning.hpp.

2264  {
2265  try {
2266  copyObject(inParameter, mFactory, mReturnVal);
2267  } catch(Error& e) {
2268  e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
2269  throw;
2270  }
2271  }
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 2280 of file Cloning.hpp.

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

Definition at line 2281 of file Cloning.hpp.


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