PLearn 0.1
Public Member Functions | Public Attributes
PLearn::HashKeyDataPair< KeyType, DataType > Class Template Reference

#include <Hash.h>

Collaboration diagram for PLearn::HashKeyDataPair< KeyType, DataType >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 HashKeyDataPair ()
 HashKeyDataPair (const KeyType &the_key, const DataType &the_data)
 ~HashKeyDataPair ()

Public Attributes

KeyType * key
DataType * data

Detailed Description

template<class KeyType, class DataType>
class PLearn::HashKeyDataPair< KeyType, DataType >

Definition at line 74 of file Hash.h.


Constructor & Destructor Documentation

template<class KeyType , class DataType >
PLearn::HashKeyDataPair< KeyType, DataType >::HashKeyDataPair ( )

Definition at line 154 of file Hash.h.

    : key(0), data(0)
{
}
template<class KeyType , class DataType >
PLearn::HashKeyDataPair< KeyType, DataType >::HashKeyDataPair ( const KeyType &  the_key,
const DataType &  the_data 
)

Definition at line 160 of file Hash.h.

{
    key = new KeyType(the_key);
    data = new DataType(the_data);
}
template<class KeyType , class DataType >
PLearn::HashKeyDataPair< KeyType, DataType >::~HashKeyDataPair ( )

Definition at line 167 of file Hash.h.

{
    delete key;
    delete data;
}

Member Data Documentation

template<class KeyType, class DataType>
DataType* PLearn::HashKeyDataPair< KeyType, DataType >::data

Definition at line 78 of file Hash.h.

template<class KeyType, class DataType>
KeyType* PLearn::HashKeyDataPair< KeyType, DataType >::key

Definition at line 77 of file Hash.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines