mi::shader_v3::Map_element Class Reference

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

#include <shader_map.h>

List of all members.


Public Member Functions

  Map_element ()
  smart pointer to a new empty map element, without a declaration attached.
  Map_element (const Map_declaration &declaration)
  smart pointer to a new map element which has the given declaration.
  Map_element (const Map_element &other)
  copy constructor.
  ~Map_element ()
  destructor, deletes the element.
Map_element operator= (const Map_element &other)
  copy assignment operator.
Map_element_base operator-> ()
  dereference operator.
const Map_element_base operator-> () const
  const dereference operator.

Detailed Description

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

Constructor & Destructor Documentation

mi::shader_v3::Map_element::Map_element (  )  [inline]

smart pointer to a new empty map element, without a declaration attached.

Map_element wrapper class.

mi::shader_v3::Map_element::Map_element ( const Map_declaration declaration  )  [inline]

smart pointer to a new map element which has the given declaration.

Parameters:
declaration  is the declaration of the new map element

mi::shader_v3::Map_element::Map_element ( const Map_element other  )  [inline]

copy constructor.

Parameters:
other  is the element to copy

References m_map_element.


Member Function Documentation

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

copy assignment operator.

Parameters:
other  is the element to copy

References m_map_element, and mi::shader_v3::Map_element_base::release().

Map_element_base * mi::shader_v3::Map_element::operator-> (  )  [inline]

dereference operator.

Returns:
the map element object

const Map_element_base * mi::shader_v3::Map_element::operator-> (  )  const [inline]

const dereference operator.

Returns:
the map element object

Copyright © 1986-2010 by mental images GmbH