Android-cuttlefish cvd tool
Public Member Functions | Private Member Functions | Private Attributes | List of all members
cuttlefish::ReturningSetupFeature< T > Class Template Referenceabstract

#include <feature.h>

Inheritance diagram for cuttlefish::ReturningSetupFeature< T >:
Inheritance graph
[legend]
Collaboration diagram for cuttlefish::ReturningSetupFeature< T >:
Collaboration graph
[legend]

Public Member Functions

 ReturningSetupFeature ()
 
template<typename S = T>
std::enable_if_t<!std::is_void_v< S >, S & > operator* ()
 
template<typename S = T>
std::enable_if_t<!std::is_void_v< S >, const S & > operator* () const
 
template<typename S = T>
std::enable_if_t<!std::is_void_v< S >, S * > operator-> ()
 
template<typename S = T>
std::enable_if_t<!std::is_void_v< S >, const S * > operator-> () const
 
template<typename S = T>
std::enable_if_t<!std::is_void_v< S >, S > Move ()
 
- Public Member Functions inherited from cuttlefish::SetupFeature
virtual ~SetupFeature ()
 
virtual bool Enabled () const
 
- Public Member Functions inherited from cuttlefish::Feature< SetupFeature >
virtual ~Feature ()=default
 
virtual std::string Name () const=0
 

Private Member Functions

Result< void > ResultSetup () override final
 
virtual Result< T > Calculate ()=0
 

Private Attributes

std::conditional_t< std::is_void_v< T >, bool, std::optional< T > > calculated_
 

Additional Inherited Members

- Static Public Member Functions inherited from cuttlefish::SetupFeature
static Result< void > RunSetup (const std::vector< SetupFeature * > &features)
 
- Static Public Member Functions inherited from cuttlefish::Feature< SetupFeature >
static Result< void > TopologicalVisit (const std::unordered_set< SetupFeature * > &features, const std::function< Result< void >(SetupFeature *)> &callback)
 

Constructor & Destructor Documentation

◆ ReturningSetupFeature()

template<typename T >
cuttlefish::ReturningSetupFeature< T >::ReturningSetupFeature ( )
inline

Member Function Documentation

◆ Calculate()

template<typename T >
virtual Result< T > cuttlefish::ReturningSetupFeature< T >::Calculate ( )
privatepure virtual

◆ Move()

template<typename T >
template<typename S = T>
std::enable_if_t<!std::is_void_v< S >, S > cuttlefish::ReturningSetupFeature< T >::Move ( )
inline

◆ operator*() [1/2]

template<typename T >
template<typename S = T>
std::enable_if_t<!std::is_void_v< S >, S & > cuttlefish::ReturningSetupFeature< T >::operator* ( )
inline

◆ operator*() [2/2]

template<typename T >
template<typename S = T>
std::enable_if_t<!std::is_void_v< S >, const S & > cuttlefish::ReturningSetupFeature< T >::operator* ( ) const
inline

◆ operator->() [1/2]

template<typename T >
template<typename S = T>
std::enable_if_t<!std::is_void_v< S >, S * > cuttlefish::ReturningSetupFeature< T >::operator-> ( )
inline

◆ operator->() [2/2]

template<typename T >
template<typename S = T>
std::enable_if_t<!std::is_void_v< S >, const S * > cuttlefish::ReturningSetupFeature< T >::operator-> ( ) const
inline

◆ ResultSetup()

template<typename T >
Result< void > cuttlefish::ReturningSetupFeature< T >::ResultSetup ( )
inlinefinaloverrideprivatevirtual

Member Data Documentation

◆ calculated_

template<typename T >
std::conditional_t<std::is_void_v<T>, bool, std::optional<T> > cuttlefish::ReturningSetupFeature< T >::calculated_
private

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