mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | Friends
m::OptField< Condition, T > Struct Template Reference

#include <OptField.hpp>

Collaboration diagram for m::OptField< Condition, T >:
[legend]

Public Member Functions

 OptField ()=default
 
template<typename U >
requires std::convertible_to<U, T>
 OptField (U &&value)
 
 operator T& ()
 
 operator const T & () const
 
template<typename U >
requires std::convertible_to<U, T>
OptFieldoperator= (U &&value)
 
Toperator* ()
 
const Toperator* () const
 
Toperator-> ()
 
const Toperator-> () const
 

Private Attributes

T value_
 

Friends

std::ostream & operator<< (std::ostream &out, const OptField &F)
 

Detailed Description

template<bool Condition, typename T>
struct m::OptField< Condition, T >

Definition at line 11 of file OptField.hpp.

Constructor & Destructor Documentation

◆ OptField() [1/2]

template<bool Condition, typename T >
m::OptField< Condition, T >::OptField ( )
default

◆ OptField() [2/2]

template<bool Condition, typename T >
template<typename U >
requires std::convertible_to<U, T>
m::OptField< Condition, T >::OptField ( U &&  value)
inline

Definition at line 21 of file OptField.hpp.

Member Function Documentation

◆ operator const T &()

template<bool Condition, typename T >
m::OptField< Condition, T >::operator const T & ( ) const
inline

Definition at line 24 of file OptField.hpp.

◆ operator T&()

template<bool Condition, typename T >
m::OptField< Condition, T >::operator T& ( )
inline

Definition at line 23 of file OptField.hpp.

◆ operator*() [1/2]

template<bool Condition, typename T >
T & m::OptField< Condition, T >::operator* ( )
inline

Definition at line 33 of file OptField.hpp.

References m::T(), and m::OptField< Condition, T >::value_.

◆ operator*() [2/2]

template<bool Condition, typename T >
const T & m::OptField< Condition, T >::operator* ( ) const
inline

Definition at line 34 of file OptField.hpp.

References m::T(), and m::OptField< Condition, T >::value_.

◆ operator->() [1/2]

template<bool Condition, typename T >
T * m::OptField< Condition, T >::operator-> ( )
inline

Definition at line 36 of file OptField.hpp.

References m::T(), and m::OptField< Condition, T >::value_.

◆ operator->() [2/2]

template<bool Condition, typename T >
const T * m::OptField< Condition, T >::operator-> ( ) const
inline

Definition at line 37 of file OptField.hpp.

References m::T(), and m::OptField< Condition, T >::value_.

◆ operator=()

template<bool Condition, typename T >
template<typename U >
requires std::convertible_to<U, T>
OptField & m::OptField< Condition, T >::operator= ( U &&  value)
inline

Definition at line 28 of file OptField.hpp.

References m::T(), and m::OptField< Condition, T >::value_.

Friends And Related Function Documentation

◆ operator<<

template<bool Condition, typename T >
std::ostream & operator<< ( std::ostream &  out,
const OptField< Condition, T > &  F 
)
friend

Definition at line 39 of file OptField.hpp.

Field Documentation

◆ value_

template<bool Condition, typename T >
T m::OptField< Condition, T >::value_
private

The documentation for this struct was generated from the following file: