Nebula
Loading...
Searching...
No Matches
stringatomtablebase.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
28#include "util/array.h"
29
30//------------------------------------------------------------------------------
31namespace Util
32{
34{
35public:
40
41protected:
42 friend class StringAtom;
43
45 const char* Find(const char* str) const;
46
49 {
51 bool operator==(const StaticString& rhs) const;
53 bool operator!=(const StaticString& rhs) const;
55 bool operator<(const StaticString& rhs) const;
57 bool operator>(const StaticString& rhs) const;
58
59 char* ptr;
60 };
61
63};
64
65} // namespace Util
66//------------------------------------------------------------------------------
67
Nebula's dynamic array class.
Definition array.h:60
A StringAtom.
Definition stringatom.h:22
This implements the base class for thread-local and global string atom table classes.
Definition stringatomtablebase.h:34
Util::Array< StaticString > table
Definition stringatomtablebase.h:62
const char * Find(const char *str) const
find a string pointer in the atom table
Definition stringatomtablebase.cc:34
StringAtomTableBase()
constructor
Definition stringatomtablebase.cc:17
~StringAtomTableBase()
destructor
Definition stringatomtablebase.cc:25
A pinned array is an array which manages its own virtual memory.
Definition String.cs:6
a static string class for sorting the array
Definition stringatomtablebase.h:49
bool operator>(const StaticString &rhs) const
greater-then operator
Definition stringatomtablebase.cc:81
bool operator==(const StaticString &rhs) const
equality operator
Definition stringatomtablebase.cc:54
bool operator!=(const StaticString &rhs) const
inequality operator
Definition stringatomtablebase.cc:63
char * ptr
Definition stringatomtablebase.h:59
bool operator<(const StaticString &rhs) const
less-then operator
Definition stringatomtablebase.cc:72