Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

CP Class Reference

#include <CP.h>

List of all members.

Public Member Functions

 CP (ptr< CPViewDescription > cp_desc)
 constructor
 ~CP ()
 destructor
void setStartPointer (string view_id, char *start)
 change the start_pointer for the given view_id
void setEndPointer (string view_id, char *end)
 change the end_pointer for the given view_id
void setPointers (string view_id, char *start, char *end)
 set the start and end pointers for view_id
ptr< CPViewcreateImplictView (string base_view_id)
 create a view identical to the one in base_view_id
ptr< CPViewcreateExplicitView (ptr< CPViewDescription > desc)
 create a view with the specifications is desc
void enqueue (const void *tuple)
 enqueue tuple
vector< char * > extract (char *first, char *last)
 return tuples between first and last pointers
vector< char * > extract (char *first, char *last, vector< ptr< Expression > > keys)
char * extract (string tuple_key, vector< ptr< Expression > > keys)
 extract this one tuple with given key
char * extract (int tuple_id)
 extract tuple with the given tuple_id
vector< char * > extract (int start_order_by, int end_order_by, ptr< Expression > order_by_field, bool revisions)
 extracts tuples from start_order_by to end_order_by given by order_by_field bool revisions says whether to include revisions or not
ptr< CPStoragegetStorage ()
ptr< CPViewgetCPView (string view_id)
 retrieve the view from my_cp_views given view_id
map< string, ptr< CPView >,
ltstr
getAllCPViews ()
void removeCPView (string view_id)
 removes CPView, _start_pointers and _end_pointers for view_id
char * findFirstPointerToVal (int val, ptr< Expression > order_by)
 returns the first tuple with val in the order_by field
char * findLastPointerToVal (int val, ptr< Expression > order_by)
 returns the last tuple with val in the order_by field
void setView (string view_id)
void addView (string view_id, ptr< CPView > cp_view)
void discardTuples ()
string as_string () const
bool isLater (char *p1, char *p2)


Constructor & Destructor Documentation

CP::CP ptr< CPViewDescription >  cp_desc  ) 
 

constructor

CP::~CP  ) 
 

destructor


Member Function Documentation

void CP::addView string  view_id,
ptr< CPView cp_view
 

string CP::as_string  )  const
 

ptr< CPView > CP::createExplicitView ptr< CPViewDescription >  desc  ) 
 

create a view with the specifications is desc

ptr< CPView > CP::createImplictView string  base_view_id  ) 
 

create a view identical to the one in base_view_id

void CP::discardTuples  ) 
 

void CP::enqueue const void *  tuple  ) 
 

enqueue tuple

vector< char * > CP::extract int  start_order_by,
int  end_order_by,
ptr< Expression order_by_field,
bool  revisions
 

extracts tuples from start_order_by to end_order_by given by order_by_field bool revisions says whether to include revisions or not

char * CP::extract int  tuple_id  ) 
 

extract tuple with the given tuple_id

char * CP::extract string  tuple_key,
vector< ptr< Expression > >  keys
 

extract this one tuple with given key

vector< char * > CP::extract char *  first,
char *  last,
vector< ptr< Expression > >  keys
 

vector< char * > CP::extract char *  first,
char *  last
 

return tuples between first and last pointers

char * CP::findFirstPointerToVal int  val,
ptr< Expression order_by
 

returns the first tuple with val in the order_by field

char * CP::findLastPointerToVal int  val,
ptr< Expression order_by
 

returns the last tuple with val in the order_by field

map<string, ptr<CPView>, ltstr> CP::getAllCPViews  ) 
 

ptr<CPView> CP::getCPView string  view_id  ) 
 

retrieve the view from my_cp_views given view_id

ptr< CPStorage > CP::getStorage  ) 
 

bool CP::isLater char *  p1,
char *  p2
 

void CP::removeCPView string  view_id  ) 
 

removes CPView, _start_pointers and _end_pointers for view_id

void CP::setEndPointer string  view_id,
char *  end
 

change the end_pointer for the given view_id

void CP::setPointers string  view_id,
char *  start,
char *  end
 

set the start and end pointers for view_id

void CP::setStartPointer string  view_id,
char *  start
 

change the start_pointer for the given view_id

void CP::setView string  view_id  ) 
 


The documentation for this class was generated from the following files:
Generated on Fri Nov 12 15:15:23 2004 for Borealis by doxygen 1.3.8