LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
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 | |
Conversion to the basic type: always returns the stored value. More... | |
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 39 of file sparse_vector.h.
|
private |
Definition at line 40 of file sparse_vector.h.
typedef T lar::const_value_box< T >::value_type |
type of the value stored
Definition at line 43 of file sparse_vector.h.
|
inline |
|
inlineexplicit |
Constructor: stores the specified value.
Definition at line 49 of file sparse_vector.h.
|
inline |
Conversion to the basic type: always returns the stored value.
Definition at line 57 of file sparse_vector.h.
References lar::const_value_box< T >::value.
|
inline |
Conversion to the basic type: always returns the stored value.
Definition at line 56 of file sparse_vector.h.
|
inline |
Assignment: the assigned value is ignored.
Definition at line 52 of file sparse_vector.h.
References lar::const_value_box< T >::value.
Referenced by lar::sparse_vector< T >::reference::reference(), and lar::sparse_vector< float >::sparse_vector().
|
protected |
the value stored for delivery
Definition at line 61 of file sparse_vector.h.
Referenced by lar::sparse_vector< float >::back_is_void(), lar::const_value_box< T >::operator const value_type &(), lar::value_const_iterator< T >::operator*(), lar::value_const_iterator< T >::operator+(), lar::value_const_iterator< T >::operator-(), lar::const_value_box< T >::operator=(), and lar::value_const_iterator< T >::operator[]().