LLVM  3.7.0
Public Types | Static Public Member Functions | List of all members
llvm::PointerLikeTypeTraits< T * > Class Template Reference

#include <PointerLikeTypeTraits.h>

Public Types

enum  { NumLowBitsAvailable = 2 }
 Note, we assume here that malloc returns objects at least 4-byte aligned. More...
 

Static Public Member Functions

static void * getAsVoidPointer (T *P)
 
static TgetFromVoidPointer (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 4-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)
inlinestatic

Definition at line 36 of file PointerLikeTypeTraits.h.

References P.

template<typename T >
static T* llvm::PointerLikeTypeTraits< T * >::getFromVoidPointer ( void *  P)
inlinestatic

Definition at line 37 of file PointerLikeTypeTraits.h.

References P.


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