MDL SDK API nvidia_logo_transpbg.gif Up
mi::mdl::DAG_DbgInfo Class Reference

The debug info type for DAG nodes. More...

#include <mdl_generated_dag.h>

Public Member Functions

 DAG_DbgInfo ()
 Default Constructor of the invalid debug info. More...
 
 DAG_DbgInfo (unsigned file_id, unsigned line, unsigned column)
 Constructor. More...
 
bool empty () const
 Returns true if this debug info is empty, aka invalid. More...
 
 operator bool () const
 Check if the info is invalid. More...
 
bool operator== (DAG_DbgInfo other)
 Check if two debug info entries are equal. More...
 
bool operator!= (DAG_DbgInfo other)
 Check if two debug info entries are not equal. More...
 
unsigned get_file_id () const
 Get the file id. More...
 
unsigned get_line () const
 Get the line. More...
 
unsigned get_column () const
 Get the column. More...
 

Static Public Attributes

static const DAG_DbgInfo generated
 The "generated" debug info. More...
 
static const DAG_DbgInfo builtin
 The "builtin" debug info. More...
 

Detailed Description

The debug info type for DAG nodes.

Constructor & Destructor Documentation

 DAG_DbgInfo() [1/2]

mi::mdl::DAG_DbgInfo::DAG_DbgInfo ( )
inline

Default Constructor of the invalid debug info.

 DAG_DbgInfo() [2/2]

mi::mdl::DAG_DbgInfo::DAG_DbgInfo ( unsigned  file_id,
unsigned  line,
unsigned  column 
)
inline

Constructor.

Parameters
file_idthe file id of a source file registered by the owning DAG_unit
linesource line
columnsource column

Member Function Documentation

 empty()

bool mi::mdl::DAG_DbgInfo::empty ( ) const
inline

Returns true if this debug info is empty, aka invalid.

 get_column()

unsigned mi::mdl::DAG_DbgInfo::get_column ( ) const
inline

Get the column.

 get_file_id()

unsigned mi::mdl::DAG_DbgInfo::get_file_id ( ) const
inline

Get the file id.

Note
The returned ID is only meaningful in the context of the owning DAG_unit

 get_line()

unsigned mi::mdl::DAG_DbgInfo::get_line ( ) const
inline

Get the line.

 operator bool()

mi::mdl::DAG_DbgInfo::operator bool ( ) const
inline

Check if the info is invalid.

 operator!=()

bool mi::mdl::DAG_DbgInfo::operator!= ( DAG_DbgInfo  other)
inline

Check if two debug info entries are not equal.

 operator==()

bool mi::mdl::DAG_DbgInfo::operator== ( DAG_DbgInfo  other)
inline

Check if two debug info entries are equal.

Member Data Documentation

 builtin

const DAG_DbgInfo mi::mdl::DAG_DbgInfo::builtin
static

The "builtin" debug info.

 generated

const DAG_DbgInfo mi::mdl::DAG_DbgInfo::generated
static

The "generated" debug info.