aitools::invertedindex::Record< Value > Class Template Reference

#include <Record.hpp>

List of all members.

Public Member Functions

 Record ()
 Record (const std::string &key, const Value &value)
 Record (const Record< Value > &record)
 ~Record ()
std::string & key ()
const std::string & key () const
bool operator== (const Record< Value > &record) const
bool operator!= (const Record< Value > &record) const
Record< Value > & operator= (const Record< Value > &record)
void parse (std::istream &is)
void print (std::ostream &os) const
void to_generic (GenericRecord &record) const
Valuevalue ()
const Valuevalue () const

Static Public Attributes

static const std::string empty_key
static const char separator = '\t'

Private Attributes

std::string key_
Value value_

Detailed Description

template<typename Value>
class aitools::invertedindex::Record< Value >

A class template to represent a key value pair.

Author:
martin.trenkmann@uni-weimar.de

Created on Jun 22, 2008

Id
Record.hpp,v 1.19 2010/05/11 23:41:08 trenkman Exp

Definition at line 22 of file Record.hpp.


Constructor & Destructor Documentation

template<typename Value >
aitools::invertedindex::Record< Value >::Record (  )  [inline]

Definition at line 75 of file Record.hpp.

template<typename Value >
aitools::invertedindex::Record< Value >::Record ( const std::string &  key,
const Value value 
) [inline]

Definition at line 79 of file Record.hpp.

template<typename Value >
aitools::invertedindex::Record< Value >::Record ( const Record< Value > &  record  )  [inline]

Definition at line 85 of file Record.hpp.

template<typename Value >
aitools::invertedindex::Record< Value >::~Record (  )  [inline]

Definition at line 91 of file Record.hpp.


Member Function Documentation

template<typename Value >
const std::string & aitools::invertedindex::Record< Value >::key (  )  const [inline]

Definition at line 103 of file Record.hpp.

References aitools::invertedindex::Record< Value >::key_.

template<typename Value >
std::string & aitools::invertedindex::Record< Value >::key (  )  [inline]
template<typename Value >
bool aitools::invertedindex::Record< Value >::operator!= ( const Record< Value > &  record  )  const [inline]

Definition at line 117 of file Record.hpp.

template<typename Value >
Record< Value > & aitools::invertedindex::Record< Value >::operator= ( const Record< Value > &  record  )  [inline]
template<typename Value >
bool aitools::invertedindex::Record< Value >::operator== ( const Record< Value > &  record  )  const [inline]
template<typename Value >
void aitools::invertedindex::Record< Value >::parse ( std::istream &  is  )  [inline]

Definition at line 133 of file Record.hpp.

References aitools::invertedindex::Record< Value >::key_, and aitools::invertedindex::Record< Value >::value_.

Referenced by std::operator>>().

Here is the caller graph for this function:

template<typename Value >
void aitools::invertedindex::Record< Value >::print ( std::ostream &  os  )  const [inline]
template<typename Value >
void aitools::invertedindex::Record< Value >::to_generic ( GenericRecord< Value > &  record  )  const [inline]
template<typename Value >
const Value & aitools::invertedindex::Record< Value >::value (  )  const [inline]

Definition at line 162 of file Record.hpp.

References aitools::invertedindex::Record< Value >::value_.

template<typename Value >
Value & aitools::invertedindex::Record< Value >::value (  )  [inline]

Member Data Documentation

template<typename Value>
const std::string aitools::invertedindex::Record< Value >::empty_key [inline, static]

Definition at line 26 of file Record.hpp.

Referenced by aitools::invertedindex::Record< Value >::print().

template<typename Value>
std::string aitools::invertedindex::Record< Value >::key_ [private]
template<typename Value>
const char aitools::invertedindex::Record< Value >::separator = '\t' [static]

Definition at line 27 of file Record.hpp.

Referenced by aitools::invertedindex::Record< Value >::print().

template<typename Value>
Value aitools::invertedindex::Record< Value >::value_ [private]

The documentation for this class was generated from the following file:
Generated on Wed May 30 15:07:35 2012 by  doxygen 1.6.3