NLMISC::CTraits< T > Struct Template Reference

#include <traits_nl.h>


Detailed Description

template<class T>
struct NLMISC::CTraits< T >

Class that gives informations about a type. Useful to do some optimization in templates functions / class This class is intended to be specialized and taylored for each type of interest

Author:
Nicolas Vizerie

Nevrax France

Date:
2004

Definition at line 43 of file traits_nl.h.

Public Types

enum  { HasTrivialCtor = false }
enum  { HasTrivialDtor = false }
enum  { SupportRawCopy = false }


Member Enumeration Documentation

template<class T>
anonymous enum
 

Enumeration values:
HasTrivialCtor 

Definition at line 45 of file traits_nl.h.

00045 { HasTrivialCtor = false };     // if true, the default ctor does nothing useful (example  : built-in types or Plain Old Datas structs)

template<class T>
anonymous enum
 

Enumeration values:
HasTrivialDtor 

Definition at line 46 of file traits_nl.h.

00046 { HasTrivialDtor = false };     // the dtor does nothing useful and is not worth calling. Useful to optimize containers clean-up

template<class T>
anonymous enum
 

Enumeration values:
SupportRawCopy 

Definition at line 47 of file traits_nl.h.

00047 { SupportRawCopy = false };     // the object supports raw copy with memcpy


The documentation for this struct was generated from the following file:
Generated on Tue Mar 16 13:37:35 2004 for NeL by doxygen 1.3.6