CACAO
Public Member Functions | Private Member Functions | Private Attributes | Friends
NameValuePair< Value > Struct Template Reference

Public Member Functions

 NameValuePair ()
 
 NameValuePair (Utf8String name, Value v)
 
Utf8String name () const
 
Valuevalue ()
 
const Valuevalue () const
 

Private Member Functions

size_t hash () const
 Interface to HashTable. More...
 
bool is_empty () const
 
bool is_deleted () const
 
bool is_occupied () const
 
void set_empty ()
 
void set_deleted ()
 
void set_occupied (const NameValuePair &n)
 
bool operator== (Utf8String u) const
 
bool operator== (const NameValuePair &n) const
 

Private Attributes

Utf8String _name
 
Value _value
 

Friends

template<typename T , typename A >
struct HashTable
 

Detailed Description

template<typename Value>
struct NameValuePair< Value >

Definition at line 583 of file hashtable.hpp.

Constructor & Destructor Documentation

template<typename Value >
NameValuePair< Value >::NameValuePair ( )
inline

Definition at line 584 of file hashtable.hpp.

template<typename Value >
NameValuePair< Value >::NameValuePair ( Utf8String  name,
Value  v 
)
inline

Definition at line 585 of file hashtable.hpp.

Member Function Documentation

template<typename Value >
size_t NameValuePair< Value >::hash ( ) const
inlineprivate

Interface to HashTable.

Definition at line 596 of file hashtable.hpp.

template<typename Value >
bool NameValuePair< Value >::is_deleted ( ) const
inlineprivate

Definition at line 599 of file hashtable.hpp.

template<typename Value >
bool NameValuePair< Value >::is_empty ( ) const
inlineprivate

Definition at line 598 of file hashtable.hpp.

template<typename Value >
bool NameValuePair< Value >::is_occupied ( ) const
inlineprivate

Definition at line 600 of file hashtable.hpp.

template<typename Value >
Utf8String NameValuePair< Value >::name ( ) const
inline

Definition at line 587 of file hashtable.hpp.

template<typename Value >
bool NameValuePair< Value >::operator== ( Utf8String  u) const
inlineprivate

Definition at line 606 of file hashtable.hpp.

template<typename Value >
bool NameValuePair< Value >::operator== ( const NameValuePair< Value > &  n) const
inlineprivate

Definition at line 607 of file hashtable.hpp.

template<typename Value >
void NameValuePair< Value >::set_deleted ( )
inlineprivate

Definition at line 603 of file hashtable.hpp.

template<typename Value >
void NameValuePair< Value >::set_empty ( )
inlineprivate

Definition at line 602 of file hashtable.hpp.

template<typename Value >
void NameValuePair< Value >::set_occupied ( const NameValuePair< Value > &  n)
inlineprivate

Definition at line 604 of file hashtable.hpp.

template<typename Value >
Value& NameValuePair< Value >::value ( )
inline

Definition at line 588 of file hashtable.hpp.

template<typename Value >
const Value& NameValuePair< Value >::value ( ) const
inline

Definition at line 589 of file hashtable.hpp.

Friends And Related Function Documentation

template<typename Value >
template<typename T , typename A >
friend struct HashTable
friend

Definition at line 610 of file hashtable.hpp.

Field Documentation

template<typename Value >
Utf8String NameValuePair< Value >::_name
private

Definition at line 591 of file hashtable.hpp.

template<typename Value >
Value NameValuePair< Value >::_value
private

Definition at line 592 of file hashtable.hpp.


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