UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Member Functions | List of all members
AssocAr Class Reference
Inheritance diagram for AssocAr:
SortedAr DynAr

Public Member Functions

 AssocAr (const AssocAr &pArray)
 
 AssocAr (unsigned quant=AssocArQuant, unsigned volume=AssocArVolume)
 
unsigned key_to_index (AssocKeyType key) const
 
AssocKeyType index_to_key (unsigned index) const
 
virtual Compar compare (const char *ptr1, const char *ptr2) const
 
AssocItemType & assoc_fetch (AssocKeyType key)
 
AssocItemType assoc_get (AssocKeyType key) const
 
AssocItemType & operator[] (AssocKeyType key)
 
AssocItemType operator() (AssocKeyType key) const
 
void add (const AssocItemType &val)
 
void put (const AssocItemType &val)
 
int add (int val_n, const AssocItemType *vals)
 
void put (int val_n, const AssocItemType *vals)
 
Logic known_key (AssocKeyType key) const
 
AssocItemType & fetch (unsigned i)
 
AssocItemType get (unsigned i) const
 
- Public Member Functions inherited from SortedAr
 SortedAr (const SortedAr &sortedar)
 
 SortedAr (unsigned size, unsigned quant, unsigned volume)
 
virtual void sort (Compar order)
 
virtual int quick_find_ascent (const char *item) const
 
virtual int quick_find_descent (const char *item) const
 
virtual int slow_find (const char *item) const
 
virtual Compar find_range_ascent (const char *value, unsigned &L, unsigned &R) const
 
virtual Compar find_range_descent (const char *value, unsigned &L, unsigned &R) const
 
- Public Member Functions inherited from DynAr
 DynAr (const DynAr &dynar)
 
 DynAr (unsigned size, unsigned quant, unsigned volume)
 
char * item_ptr (unsigned i) const
 
char * start_ptr () const
 
void clean ()
 
void clear_up ()
 
void pack ()
 
unsigned count () const
 
void reserve (unsigned n)
 
void insert (unsigned i)
 
void insertn (unsigned i, unsigned n)
 
void insert (unsigned i, const DynAr &dynar)
 
void insert (unsigned i, const char *item)
 
void addh ()
 
void addl ()
 
void addh (const char *item)
 
void addl (const char *item)
 
void addh (const DynAr &dynar)
 
void addl (const DynAr &dynar)
 
void addhn (unsigned n)
 
void addln (unsigned n)
 
void remove (unsigned i)
 
void removen (unsigned i, unsigned n)
 
DynArassign (const DynAr &dynar)
 
virtual void exchange (unsigned i1, unsigned i2)
 
virtual void print_item (unsigned i) const
 
virtual void print_contents () const
 

Protected Member Functions

AssocItemType & ref (unsigned i) const
 
- Protected Member Functions inherited from SortedAr
void quick_sort (Compar order, unsigned L, unsigned R)
 
int quick_find (const char *item, Compar order, unsigned L, unsigned R) const
 
- Protected Member Functions inherited from DynAr
void extend_to (unsigned new_volume)
 
void extend_by (int add_volume)
 
void copy_from (const DynAr &dynar, unsigned i1, unsigned cnt)
 
void shift_by (unsigned i1, int offset)
 
virtual void destruct_item (char *)
 

Additional Inherited Members

- Protected Attributes inherited from DynAr
char * tar
 
unsigned tSize
 
unsigned tCount
 
unsigned tVolume
 
unsigned tQuant
 

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