InfiniSQL  v0.1.2-alpha
Massive Scale Transaction Processing
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
api.cc File Reference

API for creating stored procedures. Pg objects also inherit from this class, because they perform the same types of transactional activities as a stored procedure. More...

#include "gch.h"
#include "Transaction.h"
#include "infinisql.h"
#include "Asts.h"
Include dependency graph for api.cc:

Go to the source code of this file.

Functions

size_t hash_value (uuRecord_s const &uur)
 
bool operator== (uuRecord_s const &uur1, uuRecord_s const &uur2)
 

Detailed Description

API for creating stored procedures. Pg objects also inherit from this class, because they perform the same types of transactional activities as a stored procedure.

Author
mtrav.nosp@m.is15.nosp@m.432+s.nosp@m.rc@g.nosp@m.mail..nosp@m.com
Date
Tue Dec 17 13:01:05 2013

Definition in file api.cc.

Function Documentation

size_t hash_value ( uuRecord_s const &  uur)

Definition at line 841 of file api.cc.

References uuRecord_s::engineid, uuRecord_s::rowid, and uuRecord_s::tableid.

842 {
843  std::size_t seed = 0;
844  boost::hash_combine(seed, uur.rowid);
845  boost::hash_combine(seed, uur.tableid);
846  boost::hash_combine(seed, uur.engineid);
847 
848  return seed;
849 }
bool operator== ( uuRecord_s const &  uur1,
uuRecord_s const &  uur2 
)

Definition at line 851 of file api.cc.

References uuRecord_s::engineid, uuRecord_s::rowid, and uuRecord_s::tableid.

852 {
853  return (uur1.rowid==uur2.rowid) && (uur1.tableid==uur2.tableid) &&
854  (uur1.engineid==uur2.engineid);
855 }