Thread portable class


Gate portable class


Timer class


Pool class


Terimber 2.0


About C++


Downloads Products & Services Support Clients Open Source About



Home / Open source / Terimber 2.0

main_map_key Class Reference

template map class has to expose the interface for exact match "less", "greater", and so on exact match comparision and optionaly "like" for partial match comparision class creates the wrappper around var_value for string resources More...

#include <varmap.h>

List of all members.

Public Member Functions

 main_map_key (const main_map_key &x)
 copy constructor
 main_map_key (vt_types type, const var_value &val, variant_factory *factory)
 constuctor with memory reallocation ordinary value constructor factory can be null for temporary objects
 main_map_key (const char *val, variant_factory *factory)
 constuctor with memory reallocation for partial match only
 main_map_key (size_t fuzzyident, const char *val, variant_factory *factory)
 constructor with memory reallocation for fuzzy match only
bool operator< (const main_map_key &x) const
 less operator
bool partial_match (const main_map_key &x) const
 compare only x.length() chars

Public Attributes

var_key _var_res

Private Member Functions

main_map_keyoperator= (const main_map_key &x)
 hidden assign operator


Detailed Description

template map class has to expose the interface for exact match "less", "greater", and so on exact match comparision and optionaly "like" for partial match comparision class creates the wrappper around var_value for string resources

Definition at line 46 of file varmap.h.


Constructor & Destructor Documentation

main_map_key::main_map_key ( const main_map_key x  ) 

copy constructor

Definition at line 145 of file varmap.cpp.

References _var_res.

BEGIN_TERIMBER_NAMESPACE main_map_key::main_map_key ( vt_types  type,
const var_value val,
variant_factory factory 
)

constuctor with memory reallocation ordinary value constructor factory can be null for temporary objects

Parameters:
type  variant type
val  input variant value
factory  optional pointer to variant factory

Definition at line 40 of file varmap.cpp.

References var_key::_val, _var_res, and variant_factory::clone().

main_map_key::main_map_key ( const char *  val,
variant_factory factory 
)

constuctor with memory reallocation for partial match only

Parameters:
val  string pointer
factory  memory factory

Definition at line 55 of file varmap.cpp.

References var_key::_key, var_value::_not_null, var_string_searchable_key::_offsets, var_string_searchable_key::_res, var_value::_value, _var_res, _terimber_xml_value_::bufVal, variant_factory::clone(), variant_factory::create(), _terimber_xml_value_::strVal, vt_numeric, and vt_string.

main_map_key::main_map_key ( size_t  fuzzyident,
const char *  val,
variant_factory factory 
)

constructor with memory reallocation for fuzzy match only

Parameters:
fuzzyident  fuzzy ident
val  string pointer
factory  memory factory

Definition at line 123 of file varmap.cpp.

References var_string_fuzzy_key::_fuzzy_key, var_key::_key, var_key::_ngram, var_value::_not_null, var_string_searchable_key::_res, var_string_fuzzy_key::_res, var_value::_value, _var_res, variant_factory::clone(), _terimber_xml_value_::strVal, and vt_string.


Member Function Documentation

main_map_key& main_map_key::operator= ( const main_map_key x  )  [private]

hidden assign operator

BEGIN_TERIMBER_NAMESPACE bool main_map_key::operator< ( const main_map_key x  )  const [inline]

bool main_map_key::partial_match ( const main_map_key x  )  const [inline]

compare only x.length() chars

Definition at line 46 of file varmap.hpp.

References var_key::_key, var_string_searchable_key::_res, _var_res, str_template::strlen(), and str_template::strnocasecmp().


Member Data Documentation


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


© Copyright Terimber 2003-.