ReactOS 0.4.16-dev-92-g0c2cdca
ATL::CElementTraitsBase< T > Class Template Reference

#include <atlcoll.h>

Inheritance diagram for ATL::CElementTraitsBase< T >:

Public Types

typedef const TINARGTYPE
 
typedef TOUTARGTYPE
 

Static Public Member Functions

static void CopyElements (_Out_writes_all_(NumElements) T *Dest, _In_reads_(NumElements) const T *Source, _In_ size_t NumElements)
 
static void RelocateElements (_Out_writes_all_(NumElements) T *Dest, _In_reads_(NumElements) T *Source, _In_ size_t NumElements)
 

Detailed Description

template<typename T>
class ATL::CElementTraitsBase< T >

Definition at line 80 of file atlcoll.h.

Member Typedef Documentation

◆ INARGTYPE

template<typename T >
typedef const T& ATL::CElementTraitsBase< T >::INARGTYPE

Definition at line 83 of file atlcoll.h.

◆ OUTARGTYPE

template<typename T >
typedef T& ATL::CElementTraitsBase< T >::OUTARGTYPE

Definition at line 84 of file atlcoll.h.

Member Function Documentation

◆ CopyElements()

template<typename T >
static void ATL::CElementTraitsBase< T >::CopyElements ( _Out_writes_all_(NumElements) T Dest,
_In_reads_(NumElements) const T Source,
_In_ size_t  NumElements 
)
inlinestatic

Definition at line 86 of file atlcoll.h.

90 {
91 for (size_t i = 0; i < NumElements; i++)
92 {
93 Dest[i] = Source[i];
94 }
95 }
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
Definition: ndis.h:3169

◆ RelocateElements()

template<typename T >
static void ATL::CElementTraitsBase< T >::RelocateElements ( _Out_writes_all_(NumElements) T Dest,
_In_reads_(NumElements) T Source,
_In_ size_t  NumElements 
)
inlinestatic

Definition at line 97 of file atlcoll.h.

101 {
102 // A simple memmove works for most of the types.
103 // You'll have to override this for types that have pointers to their
104 // own members.
105
106#if defined(__GNUC__) && __GNUC__ >= 8
107 #pragma GCC diagnostic push
108 #pragma GCC diagnostic ignored "-Wclass-memaccess"
109#endif
110 memmove(Dest, Source, NumElements * sizeof(T));
111#if defined(__GNUC__) && __GNUC__ >= 8
112 #pragma GCC diagnostic pop
113#endif
114 }
#define memmove(s1, s2, n)
Definition: mkisofs.h:881

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