This class provides a type to represent a pointer to an object of some user-defined type and an integer value denoting what actual type is represented.
Declared in <bdld_datumudt.h>
class DatumUdt;
| Name | Description |
|---|---|
DatumUdt [constructor] | Create a DatumUdt object having the specified data and type. Note that the pointer to the data is just copied bitwise. Also note that the memory pointed by data is never accessed by a DatumUdt object. |
data | Return the pointer to the user-defined object. |
print | Write the value of this object to the specified output stream in a human-readable format, and return a reference to the modifyable stream. Optionally specify an initial indentation level, whose absolute value is incremented recursively for nested objects. If level is specified, optionally specify spacesPerLevel, whose absolute value indicates the number of spaces per indentation level for this and all of its nested objects. If level is negative, suppress indentation of the first line. If spacesPerLevel is negative, format the entire output on one line, suppressing all but the initial indentation (as governed by level). If stream is not valid on entry, this operation has no effect. Note that this human-readable format is not fully specified, and can change without notice. |
type | Return the type of the user-defined object. |
operator BloombergLP::bslmf::NestedTraitDeclaration<DatumUdt, HasPrintMethod> | DatumUdt is trivially copyable. |
| Name | Description |
|---|---|
operator!= | Return true if the specified lhs and rhs have different values, and false otherwise. Two DatumUdt objects have different values if they have different data or type values. |
operator< | Return true if value of the specified lhs is less than value of the specified rhs and false otherwise. Value of lhs is less than value of rhs, if data value of lhs is less than data value of rhs, or they have the same data value and type value of lhs is less than type value of rhs. |
operator<= | Return true if value of the specified lhs is less than or equal to value of the specified rhs and false otherwise. Value of lhs is less than or equal to value of rhs, if data value of lhs is less than or equal to data value of rhs, or they have the same data value and type value of lhs is less than or equal to type value of rhs. |
operator== | Return true if the specified lhs and rhs have the same value, and false otherwise. Two DatumUdt objects have the same value if they have the same data and type values. |
operator> | Return true if value of the specified lhs is greater than value of the specified rhs and false otherwise. Value of lhs is greater than value of rhs, if data value of lhs is greater than data value of rhs, or they have the same data value and type value of lhs is greater than type value of rhs. |
operator>= | Return true if value of the specified lhs is greater than or equal to value of the specified rhs and false otherwise. Value of lhs is greater than or equal to value of rhs, if data value of lhs is greater than or equal to data value of rhs, or they have the same data value and type value of lhs is greater than or equal to type value of rhs. |