Quantum Fog  0.9.3
SET.h
1 #pragma once
2 
3 //******************************************
4 class SET
5 {
6 private:
7  USHORT its_num_of_elems;
8  USHORT its_num_of_comps; //always >= 1
9  LONG * its_array_p;
10 
11 
12 public:
13 
14  VOID clear();
15  VOID copy(const SET & s);
16  VOID empty();
17  VOID resize(USHORT max_num_of_elems);
18  SET();
19  SET(USHORT max_num_of_elems);
20  SET(const SET & s );
21  SET & operator=( const SET & rhs );
22  virtual ~SET();
23 
24  USHORT get_num_of_elems() const;
25  BOOLEAN contains(USHORT elem) const;
26 
27  BOOLEAN extract(USHORT elem);
28 
29  BOOLEAN insert(USHORT elem);
30 
31 #ifdef _mac_gui_app //''''''''''''''''''''''''''''''''''''''''''''\\.
32 
33  friend LStream & operator<<( LStream & out_bd, const SET & set);
34  friend LStream & operator>>( LStream & in_bd, SET & set);
35 #endif //_mac_gui_app \\............................................//
36 
37 
38 };
39 #pragma mark -
40 
41 //******************************************
42 inline
43 USHORT SET::get_num_of_elems() const
44 {
45  return its_num_of_elems;
46 }
47 
Definition: SET.h:4