mi::shader_v3::Map_lookup Class Reference

Smart pointer to a map lookup. It defines a dereference operator which provides access to the methods of the wrapped Map_lookup_base object. More...

#include <shader_map.h>

List of all members.

Public Member Functions

 Map_lookup (const Access_map &map, Map_status *status=0)
 attaches the lookup to a read-only map.
 Map_lookup (const Map_lookup &other, Map_status *status=0)
 copy constructor.
 ~Map_lookup ()
 destructor, deletes the lookup.
Map_lookupoperator= (const Map_lookup &other)
 copy assignment operator.
Map_lookup_baseoperator-> ()
 dereference operator.


Detailed Description

Smart pointer to a map lookup. It defines a dereference operator which provides access to the methods of the wrapped Map_lookup_base object.

Constructor & Destructor Documentation

mi::shader_v3::Map_lookup::Map_lookup ( const Access_map map,
Map_status status = 0 
) [inline]

attaches the lookup to a read-only map.

Map_lookup wrapper class.

Parameters:
map is the map to attach to
status is a status code

mi::shader_v3::Map_lookup::Map_lookup ( const Map_lookup other,
Map_status status = 0 
) [inline]

copy constructor.

Parameters:
other is the lookup to copy
status is a status code

References m_map_lookup.


Member Function Documentation

Map_lookup & mi::shader_v3::Map_lookup::operator= ( const Map_lookup other  )  [inline]

copy assignment operator.

Parameters:
other is the lookup to copy

References m_map_lookup, and mi::shader_v3::Map_lookup_base::release().

Map_lookup_base * mi::shader_v3::Map_lookup::operator-> (  )  [inline]

dereference operator.

Returns:
the map lookup object

Copyright © 1986-2011 by mental images GmbH