|
xorp
|
32bit signed integer. More...
#include <element.hh>
Public Member Functions | |
| ElemInt32 (const char *c_str) | |
| Construct via c-style string. | |
| ElemInt32 (const int32_t val) | |
| string | str () const |
| int32_t | val () const |
| const char * | type () const |
Static Public Attributes | |
| static const char * | id = "i32" |
| The identifier [type] of the element. | |
| static Hash | _hash = HASH_ELEM_INT32 |
Private Attributes | |
| int32_t | _val |
32bit signed integer.
| ElemInt32::ElemInt32 | ( | const char * | c_str | ) | [inline] |
Construct via c-style string.
This is necessary in order to create elements via the ElementFactory. If c_str is null, then the element is assigned a default value. Null c_str is used by the semantic checker, to obtain "dummy" elements for validity checks.
| c_str | initialize via string, or assign default value if null. |
| string ElemInt32::str | ( | ) | const [inline, virtual] |
Implements Element.
| const char* ElemInt32::type | ( | ) | const [inline, virtual] |
Implements Element.
| int32_t ElemInt32::val | ( | ) | const [inline] |