LLVM API Documentation

llvm::PointerLikeTypeTraits< T * > Class Template Reference

#include <PointerLikeTypeTraits.h>

List of all members.

Public Types

enum  { NumLowBitsAvailable = 2 }

Static Public Member Functions

static void * getAsVoidPointer (T *P)
static T * getFromVoidPointer (void *P)


Detailed Description

template<typename T>
class llvm::PointerLikeTypeTraits< T * >

Definition at line 34 of file PointerLikeTypeTraits.h.


Member Enumeration Documentation

template<typename T>
anonymous enum

Note, we assume here that malloc returns objects at least 8-byte aligned. However, this may be wrong, or pointers may be from something other than malloc. In this case, you should specialize this template to reduce this.

All clients should use assertions to do a run-time check to ensure that this is actually true.

Enumerator:
NumLowBitsAvailable 

Definition at line 47 of file PointerLikeTypeTraits.h.


Member Function Documentation

template<typename T>
static void* llvm::PointerLikeTypeTraits< T * >::getAsVoidPointer ( T *  P  )  [inline, static]

Definition at line 36 of file PointerLikeTypeTraits.h.

template<typename T>
static T* llvm::PointerLikeTypeTraits< T * >::getFromVoidPointer ( void *  P  )  [inline, static]

Definition at line 37 of file PointerLikeTypeTraits.h.

References T.


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