template_obj_table[1] = ::new oid;
template_obj_table[2] = ::new integer;
template_obj_table[3] = ::new pstring;
- template_obj_table[4] = ::new tuple;
+ template_obj_table[4] = ::new mmdb_tuple;
template_obj_table[5] = ::new oid_list;
template_obj_table[6] = ::new fast_mphf;
template_obj_table[7] = ::new inv_lists;
#define MAX_COMPS 50
-tuple::tuple(c_code_t c_cd) : oid_list(c_cd)
+mmdb_tuple::mmdb_tuple(c_code_t c_cd) : oid_list(c_cd)
{
}
-tuple::tuple(int comps, c_code_t c_cd) : oid_list(comps, c_cd)
+mmdb_tuple::mmdb_tuple(int comps, c_code_t c_cd) : oid_list(comps, c_cd)
{
}
-tuple::tuple(tuple& x) : oid_list(x)
+mmdb_tuple::mmdb_tuple(mmdb_tuple& x) : oid_list(x)
{
}
-tuple::~tuple()
+mmdb_tuple::~mmdb_tuple()
{
}
-handler* tuple::get_component(int index)
+handler* mmdb_tuple::get_component(int index)
{
-//MESSAGE(cerr, "in tuple():: get_component()");
+//MESSAGE(cerr, "in mmdb_tuple():: get_component()");
//debug(cerr, index);
//debug(cerr, my_oid());
//debug(cerr, int(storage_ptr));
if (!INRANGE(index, 1, (int) v_sz)) {
- MESSAGE(cerr, "out of range in tuple::get_component()");
+ MESSAGE(cerr, "out of range in mmdb_tuple::get_component()");
throw( boundaryException(1, v_sz, index) );
}
return y;
}
-Boolean tuple::pinned_insert(int index, const oid_t& val)
+Boolean mmdb_tuple::pinned_insert(int index, const oid_t& val)
{
-//MESSAGE(cerr, "in tuple():: pinned_component()");
+//MESSAGE(cerr, "in mmdb_tuple():: pinned_component()");
//debug(cerr, index);
//debug(cerr, val);
return oid_list::update_component(index, val);
}
-io_status tuple::asciiOut(ostream& out)
+io_status mmdb_tuple::asciiOut(ostream& out)
{
out << "OID_T:\n";
my_oid().asciiOut(out);
return done;
}
-io_status tuple::asciiIn(istream& in)
+io_status mmdb_tuple::asciiIn(istream& in)
{
/*
-MESSAGE(cerr, "in tuple asciiIn()");
+MESSAGE(cerr, "in mmdb_tuple asciiIn()");
my_oid().asciiOut(cerr);
MESSAGE(cerr, "\n");
*/
}
if ( comps > (int) v_sz ) {
-MESSAGE(cerr, "tuple asciiIn(): to expand space");
+MESSAGE(cerr, "mmdb_tuple asciiIn(): to expand space");
debug(cerr, comps);
debug(cerr, v_sz);
oid_list::expand_space(comps - v_sz);
return done;
}
-MMDB_BODIES(tuple)
-HANDLER_BODIES(tuple)
+MMDB_BODIES(mmdb_tuple)
+HANDLER_BODIES(mmdb_tuple)
*/
-#ifndef _tuple_h
-#define _tuple_h 1
+#ifndef _mmdb_tuple_h
+#define _mmdb_tuple_h 1
#include "object/oid_list.h"
* tuple class.
****************************************/
-class tuple: public oid_list
+class mmdb_tuple: public oid_list
{
protected:
public:
- tuple(c_code_t = TUPLE_CODE);
- tuple(int num_comps, c_code_t);
- tuple(tuple&);
- virtual ~tuple();
+ mmdb_tuple(c_code_t = TUPLE_CODE);
+ mmdb_tuple(int num_comps, c_code_t);
+ mmdb_tuple(mmdb_tuple&);
+ virtual ~mmdb_tuple();
- MMDB_SIGNATURES(tuple);
+ MMDB_SIGNATURES(mmdb_tuple);
/*
// value comparison functions
virtual io_status asciiIn(istream&) ;
};
-HANDLER_SIGNATURES(tuple)
+HANDLER_SIGNATURES(mmdb_tuple)
#endif
// The doc class
/*************************************/
-class doc : public tuple
+class doc : public mmdb_tuple
{
public:
- doc() : tuple(NUM_DOC_FIELDS, DOC_CODE) {};
+ doc() : mmdb_tuple(NUM_DOC_FIELDS, DOC_CODE) {};
virtual ~doc() {};
MMDB_SIGNATURES(doc);
// The graphic class
/*************************************/
-class graphic : public tuple
+class graphic : public mmdb_tuple
{
public:
- graphic() : tuple(NUM_GRAPHIC_FIELDS, GRAPHIC_CODE) {};
+ graphic() : mmdb_tuple(NUM_GRAPHIC_FIELDS, GRAPHIC_CODE) {};
virtual ~graphic() {};
MMDB_SIGNATURES(graphic);
MMDB_BODIES(olias_locator)
-olias_locator::olias_locator() : tuple(2, LOCATOR_CODE)
+olias_locator::olias_locator() : mmdb_tuple(2, LOCATOR_CODE)
{
}
// The locator class
/*************************************/
-class olias_locator : public tuple
+class olias_locator : public mmdb_tuple
{
public:
#include "oliasdb/mark.h"
-umark::umark() : tuple(2, USER_MARK_CODE)
+umark::umark() : mmdb_tuple(2, USER_MARK_CODE)
{
}
// init tuple part
/////////////////////
- tuple_handler* x = (tuple_handler*)
+ mmdb_tuple_handler* x = (mmdb_tuple_handler*)
(new handler(USER_MARK_CODE, marks_store));
#define mark_smart_ptr user_mark_smart_ptr
#define umark user_mark
-class umark : public tuple
+class umark : public mmdb_tuple
{
public:
// The node class
/*************************************/
-class olias_node : public tuple
+class olias_node : public mmdb_tuple
{
public:
- olias_node() : tuple(NUM_OLIAS_NODE_FIELDS, OLIAS_NODE_CODE) {};
+ olias_node() : mmdb_tuple(NUM_OLIAS_NODE_FIELDS, OLIAS_NODE_CODE) {};
virtual ~olias_node() {};
MMDB_SIGNATURES(olias_node);
#endif
-class pref : public tuple
+class pref : public mmdb_tuple
{
public:
- pref() : tuple(2, USER_CONFIG_CODE) {};
+ pref() : mmdb_tuple(2, USER_CONFIG_CODE) {};
virtual ~pref() {};
MMDB_SIGNATURES(pref);
// The stylesheet class
/*************************************/
-class stylesheet : public tuple
+class stylesheet : public mmdb_tuple
{
public:
- stylesheet() : tuple(NUM_STYLESHEET_FIELDS, STYLESHEET_CODE) {};
+ stylesheet() : mmdb_tuple(NUM_STYLESHEET_FIELDS, STYLESHEET_CODE) {};
virtual ~stylesheet() {};
MMDB_SIGNATURES(stylesheet);
// The toc class
/*************************************/
-class toc : public tuple
+class toc : public mmdb_tuple
{
public:
- toc() : tuple(NUM_TOC_FIELDS, TOC_CODE) {};
+ toc() : mmdb_tuple(NUM_TOC_FIELDS, TOC_CODE) {};
virtual ~toc() {};
MMDB_SIGNATURES(toc);