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

nvutil::MemFunTbl< T > Class Template Reference

Member Function Table template. More...

#include <MemFunTbl.h>

Inheritance diagram for nvutil::MemFunTbl:

Inheritance graph
[legend]
List of all members.

Public Methods

 MemFunTbl (size_t size)
 reserve 'size' table entries, to avoid frequend allocations. More...

PMFN operator[] (size_t i) const
 read-only access the function pointer stored at index i; behavior is undefined for invalid indices. More...

template<typename U> void addEntry (size_t i, U pmfn)
 register function pointer pmfn at index i; former entry at i will by overridden. More...

bool testEntry (size_t i) const
 test if entry at i is valid. More...


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:20:44 2005 for NVSGSDK by NVIDIA