|
cisst-saw
|
Declaration of cmnRequiresDeepCopy. More...
#include <cisstCommon/cmnPortability.h>#include <cisstCommon/cmnThrow.h>#include <string.h>#include <string>Go to the source code of this file.
Macros | |
| #define | _cmnRequiresDeepCopy_h |
Functions | |
| template<class _elementType> | |
| bool | cmnRequiresDeepCopy (void) |
| template<> | |
| bool | cmnRequiresDeepCopy< float > (void) |
| template<> | |
| bool | cmnRequiresDeepCopy< double > (void) |
| template<> | |
| bool | cmnRequiresDeepCopy< long double > (void) |
| template<> | |
| bool | cmnRequiresDeepCopy< bool > (void) |
| template<> | |
| bool | cmnRequiresDeepCopy< char > (void) |
| template<> | |
| bool | cmnRequiresDeepCopy< unsigned char > (void) |
| template<> | |
| bool | cmnRequiresDeepCopy< short > (void) |
| template<> | |
| bool | cmnRequiresDeepCopy< unsigned short > (void) |
| template<> | |
| bool | cmnRequiresDeepCopy< int > (void) |
| template<> | |
| bool | cmnRequiresDeepCopy< unsigned int > (void) |
| template<> | |
| bool | cmnRequiresDeepCopy< long long int > (void) |
| template<> | |
| bool | cmnRequiresDeepCopy< unsigned long long int > (void) |
| template<class _elementType> | |
| void | cmnMemcpy (_elementType *destination, const _elementType *source, const size_t size) |
| template<> | |
| void | cmnMemcpy< std::string > (std::string *, const std::string *, size_t) |
Declaration of cmnRequiresDeepCopy.
| #define _cmnRequiresDeepCopy_h |
| void cmnMemcpy | ( | _elementType * | destination, |
| const _elementType * | source, | ||
| const size_t | size ) |
|
inline |
| bool cmnRequiresDeepCopy | ( | void | ) |
Templated global function used to determine if a type/class requires deep copy or not. To be safe, the assumption is that all types require deep copy. To avoid deep copies, the user must specialize this function for any new type.
|
inline |
|
inline |
|
inline |
|
inline |
Template specialization for native C/C++ types. The assumption is that native types don't need deep copy.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |