NVIDIA Iray API Home  Up
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mi::neuraylib::Identifier< name, Int_type > Class Template Reference

Handle class for type-safety. More...

Inheritance diagram for mi::neuraylib::Identifier< name, Int_type >:
Inheritance graph
[legend]

Public Member Functions

  Identifier ()
  Default constructor. Initializes handle with invalid value. More...
 
  Identifier (Int_type h)
  Constructor. Initializes handle with given integer value. More...
 
  Identifier (Identifier_struct< name, Int_type > h)
  Constructor from underlying storage type. More...
 
  operator Int_type () const
  Conversion operator to underlying integer type. More...
 
Int_type  operator* () const
  Dereferences the handle. Returns its integer value. More...
 
bool  is_valid () const
  Returns whether the handle is valid. More...
 
Identifier operator++ ()
  Pre-increment operator. More...
 
Identifier  operator++ (int)
  Post-increment operator. More...
 
Identifier operator-- ()
  Pre-decrement operator. More...
 
Identifier  operator-- (int)
  Post-decrement operator. More...
 
bool  operator< (const Identifier &other) const
  Less-than operator. More...
 
bool  operator<= (const Identifier &other) const
  Less-than-or-equal-to operator. More...
 
bool  operator> (const Identifier &other) const
  Greater-than operator. More...
 
bool  operator>= (const Identifier &other) const
  Greater-than-or-equal-to operator. More...
 

Additional Inherited Members

- Public Attributes inherited from mi::neuraylib::Identifier_struct< name, Int_type >
Int_type  m_id
  The handle ID. More...
 

Detailed Description

template<Identifier_name name, typename Int_type = Uint32>
class mi::neuraylib::Identifier< name, Int_type >

Handle class for type-safety.

See Also
the underlying POD type mi::neuraylib::Identifier_struct.