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_base operator-> ()
  dereference operator.
const Map_base operator-> () 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:
tag  is 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:
filename  file name of the map to read
status  a status code

Member Function Documentation

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::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().

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-2010 by mental images GmbH