Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

nvutil::MemFunTbl< T > Class Template Reference

Member Function Table template. More...

#include <MemFunTbl.h>

Inheritance diagram for nvutil::MemFunTbl< T >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 MemFunTbl (size_t size)
 reserve 'size' table entries, to avoid frequend allocations
PMFN operator[] (size_t i) const
 read-only access the function pointer stored at index i; behavior is undefined for invalid indices
template<typename U>
void addEntry (size_t i, U pmfn)
 register function pointer pmfn at index i; former entry at i will by overridden
bool testEntry (size_t i) const
 test if entry at i is valid

Detailed Description

template<typename T>
class nvutil::MemFunTbl< T >

Member Function Table template.


Constructor & Destructor Documentation

template<typename T>
nvutil::MemFunTbl< T >::MemFunTbl size_t  size  )  [inline, explicit]
 

reserve 'size' table entries, to avoid frequend allocations


Member Function Documentation

template<typename T>
MemFunTbl< T >::PMFN nvutil::MemFunTbl< T >::operator[] size_t  i  )  const [inline]
 

read-only access the function pointer stored at index i; behavior is undefined for invalid indices

template<typename T>
template<typename U>
void nvutil::MemFunTbl< T >::addEntry size_t  i,
pmfn
[inline]
 

register function pointer pmfn at index i; former entry at i will by overridden

template<typename T>
bool nvutil::MemFunTbl< T >::testEntry size_t  i  )  const [inline]
 

test if entry at i is valid


The documentation for this class was generated from the following file:
Generated on Tue Mar 1 13:21:13 2005 for NVSGSDK by NVIDIA