Flutter Engine
android::key_value_pair_t< KEY, VALUE > Struct Template Reference

#include <TypeHelpers.h>

Public Types

typedef KEY key_t
 
typedef VALUE value_t
 

Public Member Functions

 key_value_pair_t ()
 
 key_value_pair_t (const key_value_pair_t &o)
 
key_value_pair_toperator= (const key_value_pair_t &o)
 
 key_value_pair_t (const KEY &k, const VALUE &v)
 
 key_value_pair_t (const KEY &k)
 
bool operator< (const key_value_pair_t &o) const
 
const KEY & getKey () const
 
const VALUE & getValue () const
 

Public Attributes

KEY key
 
VALUE value
 

Detailed Description

template<typename KEY, typename VALUE>
struct android::key_value_pair_t< KEY, VALUE >

Definition at line 281 of file TypeHelpers.h.

Member Typedef Documentation

◆ key_t

template<typename KEY , typename VALUE >
typedef KEY android::key_value_pair_t< KEY, VALUE >::key_t

Definition at line 282 of file TypeHelpers.h.

◆ value_t

template<typename KEY , typename VALUE >
typedef VALUE android::key_value_pair_t< KEY, VALUE >::value_t

Definition at line 283 of file TypeHelpers.h.

Constructor & Destructor Documentation

◆ key_value_pair_t() [1/4]

template<typename KEY , typename VALUE >
android::key_value_pair_t< KEY, VALUE >::key_value_pair_t ( )
inline

Definition at line 287 of file TypeHelpers.h.

287 {}

◆ key_value_pair_t() [2/4]

template<typename KEY , typename VALUE >
android::key_value_pair_t< KEY, VALUE >::key_value_pair_t ( const key_value_pair_t< KEY, VALUE > &  o)
inline

Definition at line 288 of file TypeHelpers.h.

288 : key(o.key), value(o.value) {}

◆ key_value_pair_t() [3/4]

template<typename KEY , typename VALUE >
android::key_value_pair_t< KEY, VALUE >::key_value_pair_t ( const KEY &  k,
const VALUE &  v 
)
inline

Definition at line 294 of file TypeHelpers.h.

◆ key_value_pair_t() [4/4]

template<typename KEY , typename VALUE >
android::key_value_pair_t< KEY, VALUE >::key_value_pair_t ( const KEY &  k)
inlineexplicit

Definition at line 295 of file TypeHelpers.h.

295 : key(k) {}

Member Function Documentation

◆ getKey()

template<typename KEY , typename VALUE >
const KEY& android::key_value_pair_t< KEY, VALUE >::getKey ( ) const
inline

Definition at line 299 of file TypeHelpers.h.

299 { return key; }

◆ getValue()

template<typename KEY , typename VALUE >
const VALUE& android::key_value_pair_t< KEY, VALUE >::getValue ( ) const
inline

Definition at line 300 of file TypeHelpers.h.

References android::trait_trivial_ctor< T >::value.

300 { return value; }

◆ operator<()

template<typename KEY , typename VALUE >
bool android::key_value_pair_t< KEY, VALUE >::operator< ( const key_value_pair_t< KEY, VALUE > &  o) const
inline

Definition at line 296 of file TypeHelpers.h.

References android::key_value_pair_t< KEY, VALUE >::key, and android::strictly_order_type().

296  {
297  return strictly_order_type(key, o.key);
298  }
int strictly_order_type(const TYPE &lhs, const TYPE &rhs)
Definition: TypeHelpers.h:149

◆ operator=()

template<typename KEY , typename VALUE >
key_value_pair_t& android::key_value_pair_t< KEY, VALUE >::operator= ( const key_value_pair_t< KEY, VALUE > &  o)
inline

Definition at line 289 of file TypeHelpers.h.

References android::key_value_pair_t< KEY, VALUE >::key, and android::key_value_pair_t< KEY, VALUE >::value.

289  {
290  key = o.key;
291  value = o.value;
292  return *this;
293  }

Member Data Documentation

◆ key

template<typename KEY , typename VALUE >
KEY android::key_value_pair_t< KEY, VALUE >::key

◆ value

template<typename KEY , typename VALUE >
VALUE android::key_value_pair_t< KEY, VALUE >::value

Definition at line 286 of file TypeHelpers.h.

Referenced by android::key_value_pair_t< KEY, VALUE >::operator=().


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