Lux::Document Class Reference

#include <document.h>

List of all members.

Public Member Functions

 Document (char *id)
 Document (std::string &id)
 Document (const Document &doc)
Documentoperator= (const Document &rhs)
 ~Document (void)
void add (const Field *field)
bool has_next (void)
bool has_next (void) const
const Fieldget_next (void)
const Fieldget_next (void) const
void init_iter (void)
void init_iter (void) const
const std::string get_eid (void)
const std::string get_eid (void) const
void set_id (doc_id_t internal_id)
const doc_id_t get_id (void)
const doc_id_t get_id (void) const
const std::string get_by_name (std::string field_name)


Detailed Description

document passed to indexer


Constructor & Destructor Documentation

Lux::Document::Document ( char *  id  ) 

constructor

Parameters:
id external ID in char *

Lux::Document::Document ( std::string &  id  ) 

constructor

Parameters:
id external ID in std::string

Lux::Document::Document ( const Document doc  ) 

copy constructor

Lux::Document::~Document ( void   ) 

destructor


Member Function Documentation

void Lux::Document::add ( const Field field  ) 

add a field

Parameters:
field pointer to Field

const std::string Lux::Document::get_by_name ( std::string  field_name  ) 

get the field value of the specified field name

const std::string Lux::Document::get_eid ( void   )  const

get the external ID

const std::string Lux::Document::get_eid ( void   ) 

get the external ID

const doc_id_t Lux::Document::get_id ( void   )  const

get the internal ID

const doc_id_t Lux::Document::get_id ( void   ) 

get the internal ID

const Field * Lux::Document::get_next ( void   )  const

get a next pointer to Field

const Field * Lux::Document::get_next ( void   ) 

get a next pointer to Field

bool Lux::Document::has_next ( void   )  const

check if it has a next field

bool Lux::Document::has_next ( void   ) 

check if it has a next field

void Lux::Document::init_iter ( void   )  const

initialize an iterator

void Lux::Document::init_iter ( void   ) 

initialize an iterator

Document & Lux::Document::operator= ( const Document rhs  ) 

assignment operator

void Lux::Document::set_id ( doc_id_t  internal_id  ) 

set a internal ID


The documentation for this class was generated from the following files:
Generated on Fri Feb 5 15:50:30 2010 for Lux by  doxygen 1.4.7