Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

d_Association< K, V > Class Template Reference

#include <d_Association.h>

List of all members.

Public Methods

 d_Association ()
 d_Association (const K &iKey, const V &iValue, oDomain *iDomain)
 d_Association (const d_Association< K, V > &iSource)
 ~d_Association ()
void delete_object ()
virtual void toStream (oObjectStream &iBuffer, oInterface *iInterface=0)
virtual void fromStream (oObjectStream &iBuffer, oInterface *iInterface=0)

Public Attributes

key
value
oDynaObject keyDynaObject
oDynaObject valueDynaObject


Detailed Description

template<class K, class V>
class d_Association< K, V >

Express an association between a key and a value.

An association is compound of the couple key and value. Key and value can be of any types.

LOCATION: d_Association.h

USAGE: d_Association< , <value-type> <property-name>;

Where:

<key-type >: Key type. Can be a literal or a user type <value-type >: Value type. Can be a literal or a user type <PROPERTY-NAME>: NAME OF PROPERTY

<key-type> must be an ODMG literal or a user type but with the definition of operator<.

EXAMPLES: * DEFINITION OF A DICTIONARY OF CODE/PRODUCT d_Association< d_String, d_Float > Rates;

SEE ALSO: d_Dictionary

ODMG: Compliant


Constructor & Destructor Documentation

template<class K, class V>
d_Association< K, V >::d_Association  
 

Default Constructor.

ODMG : Compliant

template<class K, class V>
d_Association< K, V >::d_Association const K &    iKey,
const V &    iValue,
oDomain   iDomain
 

Creates and fill a d_Association object.

is the domain of the database where the object will be stored.

Take the database's domain by d_Database::getDomain().

SEE ALSO: d_Database::getDomain() ODMG : Compliant

template<class K, class V>
d_Association< K, V >::d_Association const d_Association< K, V > &    iSource
 

Copy Constructor.

ODMG : Compliant

template<class K, class V>
d_Association< K, V >::~d_Association  
 

Destructor.

ODMG : Compliant


Member Function Documentation

template<class K, class V>
void d_Association< K, V >::delete_object   [inline]
 

template<class K, class V>
virtual void d_Association< K, V >::fromStream oObjectStream &    iBuffer,
oInterface *    iInterface = 0
[virtual]
 

template<class K, class V>
virtual void d_Association< K, V >::toStream oObjectStream &    iBuffer,
oInterface *    iInterface = 0
[virtual]
 


Member Data Documentation

template<class K, class V>
K d_Association< K, V >::key
 

template<class K, class V>
oDynaObject d_Association< K, V >::keyDynaObject
 

template<class K, class V>
V d_Association< K, V >::value
 

template<class K, class V>
oDynaObject d_Association< K, V >::valueDynaObject
 


The documentation for this class was generated from the following file:
Generated on Fri Nov 29 17:12:14 2002 for Orient ODBMS Just Edition v. 2.0e by doxygen1.3-rc1