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

nvsg::DALHost Class Reference

Device Abstraction Link (DAL) Host. More...

#include <DAL.h>

Inheritance diagram for nvsg::DALHost:

Inheritance graph
[legend]
List of all members.

Public Methods

NVSG_API HDAL storeDeviceAbstractionLinkData (unsigned int dataID, DALData *data) const
 Stores Device Abstraction Link Data. More...

NVSG_API void releaseDeviceAbstractionLinkData ()
 Releases Device Abstraction Link Data. More...

NVSG_API bool getDeviceAbstractionLinkData (unsigned int dataID, std::vector< DALData * > &data) const
 Passes back Device Abstraction Link Data. More...

NVSG_API DALDatagetLastRecentlyUsedDeviceAbstractionLinkData () const
 Returns the last recently used Device Abstraction Link Data. More...

NVSG_API void setLastRecentlyUsedDeviceAbstractionLinkData (DALData *lastRecentlyUsed) const
 Sets the last recently used Device Abstraction Link Data. More...


Detailed Description

Device Abstraction Link (DAL) Host.

A DALHost can host arbitrary DALData. DALData can be used to abstract device dependent data that will be linked to device independent data via a Device Abstraction Link (DAL).


Member Function Documentation

HDAL nvsg::DALHost::storeDeviceAbstractionLinkData unsigned int    dataID,
DALData   data
const [inline]
 

Stores Device Abstraction Link Data.

Attaches the data identified by dataID and pointed to by data to the host's internal Device Abstraction Link (DAL).

Note:
It is an error to store the same DALData object twice, even with a different host. Doing so will result in undefined behavior!
Returns:
A handle to the Device Abstraction Link the data was attached to, or DAL_INVALID if the function fails.

void nvsg::DALHost::releaseDeviceAbstractionLinkData   [inline]
 

Releases Device Abstraction Link Data.

Releases the host's internal Device Abstraction link with all DALData atached to it.

bool nvsg::DALHost::getDeviceAbstractionLinkData unsigned int    dataID,
std::vector< DALData * > &    data
const [inline]
 

Passes back Device Abstraction Link Data.

Fills the vector data with pointers to DALData objects that are identified by dataID, and that are attached to the host's internal Device Abstraction Link (DAL).

Returns:
true if any requested data was passed back, false otherwise.

DALData * nvsg::DALHost::getLastRecentlyUsedDeviceAbstractionLinkData   const [inline]
 

Returns the last recently used Device Abstraction Link Data.

Returns:
A pointer to the DALData object that was last set through setLastRecentlyUsedDeviceAbstractionLinkData for this host, or NULL if that data has become invalid in between.

void nvsg::DALHost::setLastRecentlyUsedDeviceAbstractionLinkData DALData   lastRecentlyUsed const [inline]
 

Sets the last recently used Device Abstraction Link Data.

Sets the the last recently used Device Abstraction Link Data attached to this host. This is intended to perform faster DALData lookups.


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