lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
|
Opaque value class that stores values of the given size & forward-declared type. More...
#include <forward_val.h>
Public Types | |
typedef Value | value_type |
Actual type of the value stored by this wrapper, if fully defined. | |
Public Member Functions | |
forward_val () | |
Constructs an opaque value object from the given value. | |
forward_val (const value_type &value) | |
Constructs an opaque value object from the given value. | |
forward_val (const forward_val &right) | |
Constructs an opaque value object from the given value. | |
~forward_val () | |
Destructor. | |
forward_val & | operator= (const value_type &value) |
Replaces the stored value with the given new value. | |
forward_val & | operator= (const forward_val &right) |
Replaces the stored value with the given new value. | |
LEAN_INLINE value_type * | getptr (void) |
Gets a pointer to the value concealed by this opaque wrapper. | |
LEAN_INLINE const value_type * | getptr (void) const |
Gets a pointer to the value concealed by this opaque wrapper. | |
LEAN_INLINE value_type & | get (void) |
Gets the value concealed by this opaque wrapper. | |
LEAN_INLINE const value_type & | get (void) const |
Gets the value concealed by this opaque wrapper. | |
LEAN_INLINE value_type & | operator* () |
Gets the value concealed by this opaque wrapper. | |
LEAN_INLINE const value_type & | operator* () const |
Gets the value concealed by this opaque wrapper. | |
LEAN_INLINE value_type * | operator-> () |
Gets the value concealed by this opaque wrapper. | |
LEAN_INLINE const value_type * | operator-> () const |
Gets the value concealed by this opaque wrapper. | |
LEAN_INLINE | operator value_type & () |
Gets the value concealed by this opaque wrapper. | |
LEAN_INLINE | operator const value_type & () const |
Gets the value concealed by this opaque wrapper. |
Opaque value class that stores values of the given size & forward-declared type.