MatchLib
Public Types | List of all members
nvhls::UIntOrEmpty< W > Class Template Reference

The UIntOrEmpty class is used to define a bitvector that can have a bitwidth of 0. More...

#include <UIntOrEmpty.h>

Public Types

typedef UIntOrEmptywCheck<(W > 0), W >::T T
 

Detailed Description

template<int W>
class nvhls::UIntOrEmpty< W >

The UIntOrEmpty class is used to define a bitvector that can have a bitwidth of 0.

Template Parameters
WThe width of the bitfield (can be 0).
Overview
UIntOrEmpty allows fields to be elided entirely from a struct in the case that they are not used. If W=0, an EmptyField is instantiated instead of an NVUINT. EmptyField is ignored by the Marshaller and overloads some common operators so that code using it does not need to be special-cased for zero-width parameterizations.

Definition at line 93 of file UIntOrEmpty.h.


The documentation for this class was generated from the following file: