vat< MSET_PROP, V_Fkk_MINE_PROP, ALLOC, ST > Class Template Reference

Itemset VAT class by partial specialization of the generic VAT class. More...

#include <mset_vat.h>

List of all members.

Public Types

typedef pattern_support< V_Fkk_MINE_PROP > PAT_SUP
typedef vat< MSET_PROP, V_Fkk_MINE_PROP,
ALLOC, ST > 
VAT
typedef ST< pair< int, int >,
ALLOC< pair< int, int > > > 
IDLIST_T
typedef IDLIST_T::const_iterator CONST_IT
typedef IDLIST_T::iterator IT

Public Member Functions

void * operator new (size_t size)
void operator delete (void *p, size_t size)
IT begin ()
CONST_IT begin () const
IT end ()
CONST_IT end () const
bool empty () const
int size ()
void make_empty ()
void push_back (const pair< int, int > &val)
pair< int, int > & operator[] (int n)
void resize (int x)
void clear ()
unsigned long size () const
 Return Vat length.
 vat (const VAT &orig)
const VAToperator= (const VAT &right)
unsigned long int byte_size () const

Static Public Member Functions

template<class PAT>
static VAT ** intersection (const VAT *const &vat_i, const VAT *const &vat_j, PAT_SUP **cand_sups, PAT **, bool &is_l2)
 Vat Intersection for Itemset patterns.

Friends

ostream & operator<< (ostream &, const VAT &)
istream & operator>> (istream &, VAT &)


Detailed Description

template<class PP, class MP, template< typename > class ALLOC, template< typename, typename > class ST>
class vat< MSET_PROP, V_Fkk_MINE_PROP, ALLOC, ST >

Itemset VAT class by partial specialization of the generic VAT class.

In this partial specialization, PP is fixed to no_edges (itemset property), MP is fixed to Fk X Fk and vert_mine (vertical mining with Fk X Fk), ST is the storage type, what needs a base type information, here templatized with P


Constructor & Destructor Documentation

template<class PP, class MP, template< typename > class ALLOC, template< typename, typename > class ST>
vat< MSET_PROP, V_Fkk_MINE_PROP, ALLOC, ST >::vat ( const VAT orig  )  [inline]

read from a file


Member Function Documentation

template<class PP, class MP, template< typename > class ALLOC, template< typename, typename > class ST>
template<class PAT>
static VAT** vat< MSET_PROP, V_Fkk_MINE_PROP, ALLOC, ST >::intersection ( const VAT *const &  vat_i,
const VAT *const &  vat_j,
PAT_SUP **  cand_sups,
PAT **  ,
bool &  is_l2 
) [inline, static]

Vat Intersection for Itemset patterns.

Parameters:
[in] vat_i A pointer to the VAT corresponding to the first pattern.
[in] vat_j A pointer to the VAT corresponding to the second pattern.
[out] cand_sup An array of pointers to pattern_support class instances that is modified in this routine to hold actual support value.
[in] is_l2 A boolean to designate whether current VAT intersection is a Level 2 vat_join.
Returns:
A static array of VAT* to hold the pointer to the new VATs generated through the intersection.
Precondition:
cand_sups array holds pointer to pattern_support instances with NO actual support value associated to it.
Postcondition:
cand_sups array holding pattern_support instances HAS acutal support value associated to it.

template<class PP, class MP, template< typename > class ALLOC, template< typename, typename > class ST>
const VAT& vat< MSET_PROP, V_Fkk_MINE_PROP, ALLOC, ST >::operator= ( const VAT right  )  [inline]

Overloaded = operator; avoids self assignment.

template<class PP, class MP, template< typename > class ALLOC, template< typename, typename > class ST>
pair<int, int>& vat< MSET_PROP, V_Fkk_MINE_PROP, ALLOC, ST >::operator[] ( int  n  )  [inline]

Creating an array operator to work over VAT

template<class PP, class MP, template< typename > class ALLOC, template< typename, typename > class ST>
void vat< MSET_PROP, V_Fkk_MINE_PROP, ALLOC, ST >::push_back ( const pair< int, int > &  val  )  [inline]

Appends new entry into vat

template<class PP, class MP, template< typename > class ALLOC, template< typename, typename > class ST>
void vat< MSET_PROP, V_Fkk_MINE_PROP, ALLOC, ST >::resize ( int  x  )  [inline]

Resizes the vector


Friends And Related Function Documentation

template<class PP, class MP, template< typename > class ALLOC, template< typename, typename > class ST>
ostream& operator<< ( ostream &  ,
const VAT  
) [friend]

Serialize an Itemset Vat to an Output stream void write_file(ostream & output) const { cout<<"writing this:"<<*this; CONST_IT iter; iter =_idlist.begin(); for (;iter!=_idlist.end();iter++){ output.write( reinterpret_cast<const char *>( & (*iter) ), sizeof(T)); output.write( reinterpret_cast<const char *>( & (*iter) ), sizeof(int)); } } // //end write_file

De-Serialize an Itemset Vat from an Input stream void read_file (istream & input, unsigned long int size) { TODO: This should be the element type in the vat. int temp; unsigned long int i; unsigned long int j=size/sizeof(T); unsigned long int j=size/sizeof(int); _idlist.clear(); for ( i=0;i<j;i++){ input.read(reinterpret_cast<char *>( & (temp) ), sizeof(T)); input.read(reinterpret_cast<char *>( & (temp) ), sizeof(int)); _idlist.push_back(temp); } }


The documentation for this class was generated from the following file:
Generated on Wed Jul 26 14:01:09 2006 for DMTL by  doxygen 1.4.7