aitools::invertedindex::Value Class Reference

#include <Value.hpp>

List of all members.

Public Member Functions

 Value ()
virtual ~Value ()
virtual void clear ()=0
virtual double score () const =0
virtual void parse (std::istream &is)=0
virtual void print (std::ostream &os) const =0
virtual void to_bytes (ByteBuffer &buffer) const =0
virtual void wrap (const char *data, size_t size)=0
void wrap (const ByteBuffer &buffer)

Static Protected Attributes

static const size_t sizeof_int8_t = sizeof(int8_t)
static const size_t sizeof_size_t = sizeof(size_t)
static int tmp_int

Detailed Description

An abstract class to represent an indexable value.

Derived classes can wrap and interpret a raw ByteBuffer in a user defined manner, providing getter and setter methods, as well as I/O support.

Author:
martin.trenkmann@uni-weimar.de
Version:
Id
Value.hpp,v 1.5 2010/10/15 17:44:47 trenkman Exp

Definition at line 23 of file Value.hpp.


Constructor & Destructor Documentation

aitools::invertedindex::Value::Value (  )  [inline]

The constructor.

Definition at line 47 of file Value.hpp.

virtual aitools::invertedindex::Value::~Value (  )  [inline, virtual]

The destructor.

Definition at line 52 of file Value.hpp.


Member Function Documentation

virtual void aitools::invertedindex::Value::clear (  )  [pure virtual]
virtual void aitools::invertedindex::Value::parse ( std::istream &  is  )  [pure virtual]
virtual void aitools::invertedindex::Value::print ( std::ostream &  os  )  const [pure virtual]
virtual double aitools::invertedindex::Value::score (  )  const [inline, pure virtual]
virtual void aitools::invertedindex::Value::to_bytes ( ByteBuffer buffer  )  const [pure virtual]
void aitools::invertedindex::Value::wrap ( const ByteBuffer buffer  ) 
virtual void aitools::invertedindex::Value::wrap ( const char *  data,
size_t  size 
) [pure virtual]

Member Data Documentation

const size_t aitools::invertedindex::Value::sizeof_int8_t = sizeof(int8_t) [static, protected]
const size_t aitools::invertedindex::Value::sizeof_size_t = sizeof(size_t) [static, protected]

Size in byte of the size_t type

Definition at line 35 of file Value.hpp.

int aitools::invertedindex::Value::tmp_int [static, protected]

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