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

#include <flag_base.h>

Public Member Functions

T ForIndex (const size_t index) const
 
bool IsDefault () const
 
bool IsDefaultForIndex (const size_t index) const
 
size_t Size () const
 
const std::vector< T > & AsVector () const
 

Protected Member Functions

 FlagBase (std::vector< T > flag_values, bool is_default, std::vector< bool > is_default_values={})
 
virtual ~FlagBase ()=0
 

Private Attributes

std::vector< T > values_
 
bool is_default_
 
std::vector< bool > is_default_values_
 

Constructor & Destructor Documentation

◆ FlagBase()

template<typename T >
cuttlefish::FlagBase< T >::FlagBase ( std::vector< T >  flag_values,
bool  is_default,
std::vector< bool >  is_default_values = {} 
)
inlineexplicitprotected

◆ ~FlagBase()

template<typename T >
cuttlefish::FlagBase< T >::~FlagBase
protectedpure virtual

Member Function Documentation

◆ AsVector()

template<typename T >
const std::vector< T > & cuttlefish::FlagBase< T >::AsVector ( ) const
inline

◆ ForIndex()

template<typename T >
T cuttlefish::FlagBase< T >::ForIndex ( const size_t  index) const
inline

◆ IsDefault()

template<typename T >
bool cuttlefish::FlagBase< T >::IsDefault ( ) const
inline

◆ IsDefaultForIndex()

template<typename T >
bool cuttlefish::FlagBase< T >::IsDefaultForIndex ( const size_t  index) const
inline

◆ Size()

template<typename T >
size_t cuttlefish::FlagBase< T >::Size ( ) const
inline

Member Data Documentation

◆ is_default_

template<typename T >
bool cuttlefish::FlagBase< T >::is_default_
private

◆ is_default_values_

template<typename T >
std::vector<bool> cuttlefish::FlagBase< T >::is_default_values_
private

◆ values_

template<typename T >
std::vector<T> cuttlefish::FlagBase< T >::values_
private

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