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

#include <Cloning.hpp>

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

Public Types

typedef ScalarNet Type
 
typedef boost::shared_ptr< TypePointer
 

Public Member Functions

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

Definition at line 1542 of file Cloning.hpp.

Member Typedef Documentation

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

Definition at line 1545 of file Cloning.hpp.

Definition at line 1544 of file Cloning.hpp.

Constructor & Destructor Documentation

Definition at line 1563 of file Cloning.hpp.

1563  : Type::Visitor(), mFactory(), mReturnVal() {
1564  }
torc::generic::_impl::Copier< class ScalarNet >::~Copier ( )
throw (
)
inline

Definition at line 1566 of file Cloning.hpp.

1566  {
1567  }

Member Function Documentation

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

Definition at line 1547 of file Cloning.hpp.

1548  {
1549  mFactory = inFactory;
1550  inSource->accept(*this);
1551  return mReturnVal;
1552  }
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 ScalarNet >::visit ( ScalarNet inPort)
throw (Error
)
inline

Definition at line 1554 of file Cloning.hpp.

1554  {
1555  try {
1556  copyObject(inPort, mFactory, mReturnVal);
1557  } catch(Error& e) {
1558  e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
1559  throw;
1560  }
1561  }
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 1570 of file Cloning.hpp.

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

Definition at line 1571 of file Cloning.hpp.


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