Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
stringatomtablebase.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
28
#include "
util/array.h
"
29
30
//------------------------------------------------------------------------------
31
namespace
Util
32
{
33
class
StringAtomTableBase
34
{
35
public
:
37
StringAtomTableBase
();
39
~StringAtomTableBase
();
40
41
protected
:
42
friend
class
StringAtom
;
43
45
const
char
*
Find
(
const
char
* str)
const
;
46
48
struct
StaticString
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
62
Util::Array<StaticString>
table
;
63
};
64
65
}
// namespace Util
66
//------------------------------------------------------------------------------
67
array.h
Util::Array
Nebula's dynamic array class.
Definition
array.h:61
Util::StringAtomTableBase::table
Util::Array< StaticString > table
Definition
stringatomtablebase.h:62
Util::StringAtomTableBase::Find
const char * Find(const char *str) const
find a string pointer in the atom table
Definition
stringatomtablebase.cc:34
Util::StringAtomTableBase::StringAtomTableBase
StringAtomTableBase()
constructor
Definition
stringatomtablebase.cc:17
Util::StringAtomTableBase::StringAtom
friend class StringAtom
Definition
stringatomtablebase.h:42
Util::StringAtomTableBase::~StringAtomTableBase
~StringAtomTableBase()
destructor
Definition
stringatomtablebase.cc:25
Util
A quad tree designed to return regions of free 2D space.
Definition
String.cs:6
Util::StringAtomTableBase::StaticString
a static string class for sorting the array
Definition
stringatomtablebase.h:49
Util::StringAtomTableBase::StaticString::operator>
bool operator>(const StaticString &rhs) const
greater-then operator
Definition
stringatomtablebase.cc:81
Util::StringAtomTableBase::StaticString::operator==
bool operator==(const StaticString &rhs) const
equality operator
Definition
stringatomtablebase.cc:54
Util::StringAtomTableBase::StaticString::operator!=
bool operator!=(const StaticString &rhs) const
inequality operator
Definition
stringatomtablebase.cc:63
Util::StringAtomTableBase::StaticString::ptr
char * ptr
Definition
stringatomtablebase.h:59
Util::StringAtomTableBase::StaticString::operator<
bool operator<(const StaticString &rhs) const
less-then operator
Definition
stringatomtablebase.cc:72
code
foundation
util
stringatomtablebase.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.