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

Deep copy a map of pointer entries into the provided target map. More...

+ Collaboration diagram for DtDeepCopyToPointerMap< T, Y >:

Public Member Functions

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

Private Attributes

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

Detailed Description

template<class T, class Y>
class DtDeepCopyToPointerMap< T, Y >

Deep copy a map of pointer entries 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(), DtDeepCopyToPointerMap<T, Y>(target)); NOTE: only the Y class is dynamically allocated, the T class is assumed to be built in / non pointer.

Constructor & Destructor Documentation

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

Constructor.

References DtDeleteToPointerMap().

Member Function Documentation

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

Function operator.

References DtDeepCopyToPointerMap< T, Y >::myMap.

Member Data Documentation

template<class T , class Y >
std::map<T, Y*>& DtDeepCopyToPointerMap< 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)