Every element has a unique name that can be used for identifying the element in debug logs.
NvElement
also provides other common functionality, such as keeping track of errors.
Definition at line 63 of file NvElement.h.
Public Member Functions | |
virtual int | isInError () |
Indicates whether the element encountered an error during its operation. More... | |
virtual | ~NvElement () |
void | getProfilingData (NvElementProfiler::NvElementProfilerData &data) |
Gets profiling data for the element. More... | |
void | printProfilingStats (std::ostream &out_stream=std::cout) |
Prints profiling data for the element to an output stream. More... | |
virtual void | enableProfiling () |
Enables profiling for the element. More... | |
bool | isProfilingEnabled () |
Checks whether profiling is enabled for the element. More... | |
Protected Member Functions | |
NvElement (const char *name, NvElementProfiler::ProfilerField=NvElementProfiler::PROFILER_FIELD_NONE) | |
Creates a new NvElement object with name name. More... | |
NvElement (const NvElement &that) | |
Disallows copy constructor. More... | |
void | operator= (NvElement const &) |
Disallows assignment. More... | |
Protected Attributes | |
int | is_in_error |
Indicates if an error was encountered during the operation of the element. More... | |
const char * | comp_name |
Specifies the name of the component, for debugging. More... | |
NvElementProfiler | profiler |
Profiler for the element. More... | |
|
inlinevirtual |
Definition at line 76 of file NvElement.h.
|
protected |
Creates a new NvElement object with name name.
If the name parameter is NULL, this method sets the internal error variable.
[in] | name | If non-NULL, a pointer to the name of the element. |
|
protected |
Disallows copy constructor.
|
virtual |
Enables profiling for the element.
Reimplemented in NvV4l2Element.
void NvElement::getProfilingData | ( | NvElementProfiler::NvElementProfilerData & | data | ) |
Gets profiling data for the element.
|
inlinevirtual |
Indicates whether the element encountered an error during its operation.
Reimplemented in NvV4l2Element.
Definition at line 72 of file NvElement.h.
References is_in_error.
bool NvElement::isProfilingEnabled | ( | ) |
Checks whether profiling is enabled for the element.
|
protected |
Disallows assignment.
void NvElement::printProfilingStats | ( | std::ostream & | out_stream = std::cout | ) |
Prints profiling data for the element to an output stream.
[in] | out_stream | Output stream of type std::ostream to print the data to. It takes the default value std::cout if not specified. |
|
protected |
Specifies the name of the component, for debugging.
Definition at line 122 of file NvElement.h.
|
protected |
Indicates if an error was encountered during the operation of the element.
Definition at line 120 of file NvElement.h.
Referenced by isInError().
|
protected |
Profiler for the element.
Definition at line 124 of file NvElement.h.