Public Member Functions
mi::shader_v3::Access_map Class Reference

Smart pointer (access-only) to a map in the DB or to a map to be read from file. It defines a dereference operator which provides access to the const methods of the wrapped Map_base object. More...

#include <shader_map.h>

List of all members.

Public Member Functions

 Access_map (const miTag tag)
 smart pointer to a map in the DB.
 Access_map (const char *filename, Map_status *status=0)
 smart pointer to a map to be read from file.
 ~Access_map ()
 release resources, unpin DB tag (if in the DB).
const Map_baseoperator-> ()
 dereference operator.
const Map_baseoperator-> () const
 const dereference operator.
miTag get_tag () const
 returns the tag of the map in the DB.
miTag store ()
 stores the map in the DB (if not in the DB already).

Detailed Description

Smart pointer (access-only) to a map in the DB or to a map to be read from file. It defines a dereference operator which provides access to the const methods of the wrapped Map_base object.


Constructor & Destructor Documentation

mi::shader_v3::Access_map::Access_map ( const miTag  tag) [inline]

smart pointer to a map in the DB.

Access_map wrapper class.

Parameters:
tagis the map database tag
mi::shader_v3::Access_map::Access_map ( const char *  filename,
Map_status status = 0 
) [inline]

smart pointer to a map to be read from file.

Parameters:
filenamefile name of the map to read
statusa status code

Member Function Documentation

miTag mi::shader_v3::Access_map::get_tag ( ) const [inline]

returns the tag of the map in the DB.

Returns:
the tag of the map in the DB, or 0 if not in the DB

References mi::shader_v3::Access_map_dbhandle::get_tag().

const Map_base * mi::shader_v3::Access_map::operator-> ( ) [inline]

dereference operator.

Returns:
the map object
const Map_base * mi::shader_v3::Access_map::operator-> ( ) const [inline]

const dereference operator.

Returns:
the map object
miTag mi::shader_v3::Access_map::store ( ) [inline]

stores the map in the DB (if not in the DB already).

Returns:
the tag of the map in the DB

References mi::shader_v3::Access_map_dbhandle::store().

Copyright © 1986, 2015 NVIDIA ARC GmbH. All rights reserved.