Anp::DataItem< K, D > Class Template Reference

#include <DataItem.h>

List of all members.

Public Member Functions

 DataItem ()
 DataItem (const K key_, const D data_)
 ~DataItem ()
void Set (const K key_, const D data_)
void SetData (const D data_)
void SetKey (const K key_)
Data () const
Key () const

Private Attributes

key
data

Detailed Description

template<class K, class D>
class Anp::DataItem< K, D >

Definition at line 20 of file DataItem.h.


Constructor & Destructor Documentation

template<class K , class D >
Anp::DataItem< K, D >::DataItem (  )  [inline]

Definition at line 73 of file DataItem.h.

00073 {}

template<class K , class D >
Anp::DataItem< K, D >::DataItem ( const K  key_,
const D  data_ 
) [inline]

Definition at line 74 of file DataItem.h.

00075       :key(key_),
00076        data(data_)
00077    {
00078    }     

template<class K , class D >
Anp::DataItem< K, D >::~DataItem (  )  [inline]

Definition at line 80 of file DataItem.h.

00080 {}


Member Function Documentation

template<class K , class D >
D Anp::DataItem< K, D >::Data (  )  const [inline]

Definition at line 96 of file DataItem.h.

References Anp::DataItem< K, D >::data.

Referenced by Anp::operator<<().

00096 { return data; }

template<class K , class D >
K Anp::DataItem< K, D >::Key (  )  const [inline]

Definition at line 97 of file DataItem.h.

References Anp::DataItem< K, D >::key.

Referenced by Anp::Truth::Add(), Anp::operator<<(), and Anp::operator==().

00097 { return key; }

template<class K , class D >
void Anp::DataItem< K, D >::Set ( const K  key_,
const D  data_ 
) [inline]

Definition at line 82 of file DataItem.h.

References Anp::DataItem< K, D >::data, and Anp::DataItem< K, D >::key.

00083    { 
00084       key  = key_;
00085       data = data_;
00086    }

template<class K , class D >
void Anp::DataItem< K, D >::SetData ( const D  data_  )  [inline]

Definition at line 87 of file DataItem.h.

References Anp::DataItem< K, D >::data.

00088    { 
00089       data = data_;
00090    }

template<class K , class D >
void Anp::DataItem< K, D >::SetKey ( const K  key_  )  [inline]

Definition at line 91 of file DataItem.h.

References Anp::DataItem< K, D >::key.

00092    { 
00093       key  = key_;
00094    }


Member Data Documentation

template<class K, class D>
D Anp::DataItem< K, D >::data [private]
template<class K, class D>
K Anp::DataItem< K, D >::key [private]

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

Generated on 11 Jan 2018 for loon by  doxygen 1.6.1