ucc::named_value< T, O > Class Template Reference

Templated value class to embed data structure into a named list. More...

#include <linked.h>

Inheritance diagram for ucc::named_value< T, O >:

Inheritance graph
[legend]
Collaboration diagram for ucc::named_value< T, O >:

Collaboration graph
[legend]

Public Member Functions

 named_value (LinkedObject **root, char *name)
 Construct embedded named object on a linked list.
void operator= (const T &typed_value)
 Assign embedded value from related type.

Static Public Member Functions

static named_value find (named_value *first, const char *name)
 Find embedded object in chain by name.

Detailed Description

template<class T, class O = NamedObject>
class ucc::named_value< T, O >

Templated value class to embed data structure into a named list.

This is used to form a class which can be searched by name and that contains a member value object. Most of the core logic for this template is found in and derived from the object_value template.

Author:
David Sugar <dyfet@gnutelephony.org>

Definition at line 885 of file linked.h.


Constructor & Destructor Documentation

template<class T , class O = NamedObject>
ucc::named_value< T, O >::named_value ( LinkedObject **  root,
char *  name 
) [inline]

Construct embedded named object on a linked list.

Parameters:
root node or pointer for list.
name of our object.

Definition at line 893 of file linked.h.


Member Function Documentation

template<class T , class O = NamedObject>
static named_value ucc::named_value< T, O >::find ( named_value< T, O > *  first,
const char *  name 
) [inline, static]

Find embedded object in chain by name.

Parameters:
first object in list to search from.
name to search for.
Returns:
composite object found by name or NULL if not found.

Definition at line 909 of file linked.h.

template<class T , class O = NamedObject>
void ucc::named_value< T, O >::operator= ( const T &  typed_value  )  [inline]

Assign embedded value from related type.

Parameters:
typed_value to assign.

Reimplemented from ucc::object_value< T, O >.

Definition at line 900 of file linked.h.


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

Generated on Tue Jul 28 21:43:28 2009 for UCommon by  doxygen 1.5.9