Little class storing a value. More...
#include <sparse_vector.h>
Public Types | |
| typedef T | value_type |
| type of the value stored More... | |
Public Member Functions | |
| const_value_box () | |
| Default constructor: stores default value. More... | |
| const_value_box (value_type new_value) | |
| Constructor: stores the specified value. More... | |
| this_t & | operator= (value_type) |
| Assignment: the assigned value is ignored. More... | |
| operator value_type () const | |
| Conversion to the basic type: always returns the stored value. More... | |
| operator const value_type & () const | |
Protected Attributes | |
| value_type | value |
| the value stored for delivery More... | |
Private Types | |
| typedef const_value_box< T > | this_t |
Little class storing a value.
| T | type of the stored value |
This class stores a constant value and returns it as conversion to type T. It also acts as a left-value of type T, except that the assigned value is ignored.
Definition at line 42 of file sparse_vector.h.
|
private |
Definition at line 43 of file sparse_vector.h.
| typedef T lar::const_value_box< T >::value_type |
type of the value stored
Definition at line 45 of file sparse_vector.h.
|
inline |
|
inlineexplicit |
Constructor: stores the specified value.
Definition at line 51 of file sparse_vector.h.
|
inline |
Definition at line 59 of file sparse_vector.h.
|
inline |
Conversion to the basic type: always returns the stored value.
Definition at line 58 of file sparse_vector.h.
|
inline |
Assignment: the assigned value is ignored.
Definition at line 54 of file sparse_vector.h.
|
protected |
the value stored for delivery
Definition at line 63 of file sparse_vector.h.
1.8.11