libUTL++
StringSet.h
1 #pragma once
2 
4 
5 #include <libutl/RBtree.h>
6 #include <libutl/String.h>
7 
9 
10 UTL_NS_BEGIN;
11 
13 
21 
23 class StringSet : public TRBtree<String>
24 {
26 
27 public:
32  StringSet(bool owner);
33 
39  bool add(const String& str);
40 
46  String* find(const String& key) const;
47 
48 private:
49  void init(bool owner = true);
50  void
51  deInit()
52  {
53  }
54 };
55 
57 
58 UTL_NS_END;
void deInit()
De-initialize UTL++.
#define UTL_CLASS_DECL(DC, BC)
Declaration of standard UTL++ functionality for a non-template class.
Definition: macros.h:688
Character string.
Definition: String.h:31
Template version of RBtree.
Definition: TRBtree.h:25
Set of strings.
Definition: StringSet.h:23
void init()
Initialize UTL++.