MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
DtDeepCopyByPointerMap< T, Y > Class Template Reference

Deep copy a map pointer entry into the provided target map. More...

+ Collaboration diagram for DtDeepCopyByPointerMap< T, Y >:

Public Member Functions

 DtDeepCopyByPointerMap (std::map< T *, Y > &targetMap)
 Constructor. More...
 
void operator() (const std::pair< T *const, Y > element)
 Function operator. More...
 

Private Attributes

std::map< T *, Y > & myMap
 

Detailed Description

template<class T, class Y>
class DtDeepCopyByPointerMap< T, Y >

Deep copy a map pointer entry into the provided target map.

This helper functor is used in for_each to deep copy a map of types for_each(orig.begin(), orig.end(), DtDeepCopyByPointerMap<T, Y>(target)); NOTE: only the T class is dynamically allocated, the Y class is assumed to be built in / non pointer.

Constructor & Destructor Documentation

template<class T , class Y >
DtDeepCopyByPointerMap< T, Y >::DtDeepCopyByPointerMap ( std::map< T *, Y > &  targetMap)
inline

Member Function Documentation

template<class T , class Y >
void DtDeepCopyByPointerMap< T, Y >::operator() ( const std::pair< T *const, Y >  element)
inline

Function operator.

References DtDeepCopyByPointerMap< T, Y >::myMap.

Member Data Documentation

template<class T , class Y >
std::map<T*, Y>& DtDeepCopyByPointerMap< T, Y >::myMap
private

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

Document ID: Generated on Sun Jul 20 16:15:30 EDT 2025 from SVN revision 277985
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)