Zero  0.1.0
Public Member Functions | Private Attributes | Friends | List of all members
index_desc_t Class Reference

#include <index_desc.h>

Public Member Functions

 index_desc_t (table_desc_t *table, string name, const int fieldcnt, const unsigned *fields, bool unique=true, bool primary=false, bool rmapholder=false)
 
 ~index_desc_t ()
 
string name () const
 
unsigned field_count () const
 
table_desc_ttable () const
 
bool is_fid_valid () const
 
StoreIDstid ()
 
void set_stid (StoreID const &stid)
 
w_rc_t load_stid (ss_m *db, StoreID cat_stid)
 
bool is_unique () const
 
bool is_primary () const
 
bool is_rmapholder () const
 
int get_keysize ()
 
void set_keysize (const unsigned sz)
 
bool is_key_index (unsigned i)
 
bool matches_name (const char *name)
 
int key_index (const unsigned index) const
 
void print_desc (ostream &os)
 

Private Attributes

table_desc_t_table
 
StoreID _stid
 
string _name
 
unsigned * _key
 
unsigned _field_count
 
bool _unique
 
bool _primary
 
bool _nolock
 
bool _latchless
 
bool _rmapholder
 
unsigned _maxkeysize
 
char _keydesc [MAX_KEYDESC_LEN]
 
tatas_lock _keydesc_lock
 

Friends

class table_desc_t
 

Constructor & Destructor Documentation

§ index_desc_t()

index_desc_t::index_desc_t ( table_desc_t table,
string  name,
const int  fieldcnt,
const unsigned *  fields,
bool  unique = true,
bool  primary = false,
bool  rmapholder = false 
)

§ ~index_desc_t()

index_desc_t::~index_desc_t ( )

Member Function Documentation

§ field_count()

unsigned index_desc_t::field_count ( ) const
inline

§ get_keysize()

int index_desc_t::get_keysize ( )
inline

§ is_fid_valid()

bool index_desc_t::is_fid_valid ( ) const
inline

§ is_key_index()

bool index_desc_t::is_key_index ( unsigned  i)
inline

§ is_primary()

bool index_desc_t::is_primary ( ) const
inline

§ is_rmapholder()

bool index_desc_t::is_rmapholder ( ) const
inline

§ is_unique()

bool index_desc_t::is_unique ( ) const
inline

§ key_index()

int index_desc_t::key_index ( const unsigned  index) const

§ load_stid()

w_rc_t index_desc_t::load_stid ( ss_m db,
StoreID  cat_stid 
)

§ matches_name()

bool index_desc_t::matches_name ( const char *  name)

§ name()

string index_desc_t::name ( ) const
inline

§ print_desc()

void index_desc_t::print_desc ( ostream &  os)

§ set_keysize()

void index_desc_t::set_keysize ( const unsigned  sz)
inline

§ set_stid()

void index_desc_t::set_stid ( StoreID const &  stid)
inline

§ stid()

StoreID& index_desc_t::stid ( )
inline

§ table()

table_desc_t* index_desc_t::table ( ) const
inline

Friends And Related Function Documentation

§ table_desc_t

friend class table_desc_t
friend

Member Data Documentation

§ _field_count

unsigned index_desc_t::_field_count
private

§ _key

unsigned* index_desc_t::_key
private

§ _keydesc

char index_desc_t::_keydesc[MAX_KEYDESC_LEN]
private

§ _keydesc_lock

tatas_lock index_desc_t::_keydesc_lock
private

§ _latchless

bool index_desc_t::_latchless
private

§ _maxkeysize

unsigned index_desc_t::_maxkeysize
private

§ _name

string index_desc_t::_name
private

§ _nolock

bool index_desc_t::_nolock
private

§ _primary

bool index_desc_t::_primary
private

§ _rmapholder

bool index_desc_t::_rmapholder
private

§ _stid

StoreID index_desc_t::_stid
private

§ _table

table_desc_t* index_desc_t::_table
private

§ _unique

bool index_desc_t::_unique
private

The documentation for this class was generated from the following files: