
Public Types | |
| typedef Ch | char_type |
Public Member Functions | |
| int_impl (Ch i) | |
| void | output (ostream &ss) |
| Outputs to a narrow stream. | |
| void | output (wostream &os) |
| Outputs to a wide stream. | |
| int | as_int () |
| Converts to an integer (default=0). | |
| double | as_double () |
| Converts to a double (default=0). | |
| var | op_mul (const var &v) |
| Multiplication operator. | |
| var | op_div (const var &v) |
| Division operator. | |
| var | op_mod (const var &v) |
| Modulus operator. | |
| var_cmp_index | comparison_index () |
| Returns the comparison index (type identified) of the var. | |
| var_cmp_result | compare2 (const var &v) |
| Compares two objects of the same comparison_index(). | |
| void | op_inc () |
| Increment operator. | |
| void | op_dec () |
| Decrement operator. | |
| var | op_and (const var &a) |
| Bitwisze and operator. | |
| var | op_or (const var &a) |
| Bitwise or operator. | |
| var | op_xor (const var &a) |
| Bitwise xor operator. | |
| var | op_inv () |
| Bitwise inverse operator. | |
| bool | as_bool () |
| Converts to a bool (default=false). | |
| void | copy_to (void *dest) const |
| Copies the value to another location (in-place copy). | |
| var | op_lshift (const var &a) |
| Left-shift operator. | |
| var | op_rshift (const var &a) |
| Right-shift operator. | |
| var | op_neg () |
| Unary minus. | |
| void | assign_add (const var &a) |
| Add with assignment. | |
| void | assign_sub (const var &a) |
| Subtract with assignment. | |
| void | assign_mul (const var &a) |
| Multiplication with assignment. | |
| void | assign_div (const var &a) |
| Division with assign. | |
| void | assign_mod (const var &a) |
| Modulus with assign. | |
| void | assign_lshift (const var &a) |
| Left shift with assign. | |
| void | assign_rshift (const var &a) |
| Right shift with assign. | |
| void | assign_and (const var &a) |
| Bitwise and with assign. | |
| void | assign_or (const var &a) |
| Bitwise or with assign. | |
| void | assign_xor (const var &a) |
| Bitwise xor with assign. | |
| void | unpickle (unpickler &u) |
| Unpickle the object. | |
| std::string | class_name () |
| Return the class name. | |
| var | op_add (const var &v) |
| Addition operator. | |
| var | op_sub (const var &v) |
| Subtraction operator. | |
| var | as_root () |
| Convert the object to a root object. | |
| var | as_nonroot () |
| Convert this object to a non-root object. | |
| void | pickle (pickler &p) |
| Pickle the object. | |
| void | get_range (std::size_t container_size, std::pair< std::size_t, std::size_t > &out) |
| Obtains the range represented by this object (default=0). | |
| Ch | is the represented type. |
Definition at line 77 of file integer.cpp.
| var dynamic::types::int_impl< Ch >::as_root | ( | ) | [inline, virtual] |
Convert the object to a root object.
TODO: change this mechanism
Reimplemented from dynamic::var_impl.
Definition at line 268 of file integer.cpp.
| void dynamic::types::int_impl< Ch >::pickle | ( | pickler & | ) | [inline, virtual] |
Pickle the object.
Reimplemented from dynamic::var_impl.
Definition at line 278 of file integer.cpp.
References dynamic::pickler::write_int(), and dynamic::pickler::write_object_type().
| void dynamic::types::int_impl< Ch >::unpickle | ( | unpickler & | ) | [inline, virtual] |
Unpickle the object.
Reimplemented from dynamic::var_impl.
Definition at line 248 of file integer.cpp.
References dynamic::unpickler::read_int().
1.5.7.1