LLVM API Documentation

llvm::FoldingSetTrait< T > Struct Template Reference

#include <FoldingSet.h>

List of all members.

Static Public Member Functions

static void Profile (const T &X, FoldingSetNodeID &ID)
static void Profile (T &X, FoldingSetNodeID &ID)


Detailed Description

template<typename T>
struct llvm::FoldingSetTrait< T >

FoldingSetTrait - This trait class is used to define behavior of how to "profile" (in the FoldingSet parlance) an object of a given type. The default behavior is to invoke a 'Profile' method on an object, but through template specialization the behavior can be tailored for specific types. Combined with the FoldingSetNodeWrapper classs, one can add objects to FoldingSets that were not originally designed to have that behavior.

Definition at line 195 of file FoldingSet.h.


Member Function Documentation

template<typename T>
static void llvm::FoldingSetTrait< T >::Profile ( const T &  X,
FoldingSetNodeID &  ID 
) [inline, static]

Definition at line 196 of file FoldingSet.h.

template<typename T>
static void llvm::FoldingSetTrait< T >::Profile ( T &  X,
FoldingSetNodeID &  ID 
) [inline, static]

Definition at line 197 of file FoldingSet.h.


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