Documentation
Urho3D::PListValueMap Class Reference
PList value map. More...
#include <PListFile.h>
Inheritance diagram for Urho3D::PListValueMap:
Collaboration diagram for Urho3D::PListValueMap:
Public Member Functions | |
PListValue & | operator[] (const String &key) |
const PListValue & | operator[] (const String &key) const |
Public Member Functions inherited from Urho3D::HashMap< String, PListValue > | |
HashMap () | |
Construct empty. | |
HashMap (const HashMap< String, PListValue > &map) | |
Construct from another hash map. | |
~HashMap () | |
Destruct. | |
HashMap & | operator= (const HashMap< String, PListValue > &rhs) |
Assign a hash map. | |
HashMap & | operator+= (const Pair< String, PListValue > &rhs) |
Add-assign a pair. | |
HashMap & | operator+= (const HashMap< String, PListValue > &rhs) |
Add-assign a hash map. | |
bool | operator== (const HashMap< String, PListValue > &rhs) const |
Test for equality with another hash map. | |
bool | operator!= (const HashMap< String, PListValue > &rhs) const |
Test for inequality with another hash map. | |
PListValue & | operator[] (const String &key) |
Index the map. Create a new pair if key not found. | |
Iterator | Insert (const Pair< String, PListValue > &pair) |
Insert a pair. Return an iterator to it. | |
void | Insert (const HashMap< String, PListValue > &map) |
Insert a map. | |
Iterator | Insert (const ConstIterator &it) |
Insert a pair by iterator. Return iterator to the value. | |
void | Insert (const ConstIterator &start, const ConstIterator &end) |
Insert a range by iterators. | |
bool | Erase (const String &key) |
Erase a pair by key. Return true if was found. | |
Iterator | Erase (const Iterator &it) |
Erase a pair by iterator. Return iterator to the next pair. | |
void | Clear () |
Clear the map. | |
void | Sort () |
Sort pairs. After sorting the map can be iterated in order until new elements are inserted. | |
bool | Rehash (unsigned numBuckets) |
Rehash to a specific bucket count, which must be a power of two. Return true if successful. | |
Iterator | Find (const String &key) |
Return iterator to the pair with key, or end iterator if not found. | |
ConstIterator | Find (const String &key) const |
Return const iterator to the pair with key, or end iterator if not found. | |
bool | Contains (const String &key) const |
Return whether contains a pair with key. | |
Vector< String > | Keys () const |
Return all the keys. | |
Vector< PListValue > | Values () const |
Return all the values. | |
Iterator | Begin () |
Return iterator to the beginning. | |
ConstIterator | Begin () const |
Return iterator to the beginning. | |
Iterator | End () |
Return iterator to the end. | |
ConstIterator | End () const |
Return iterator to the end. | |
const String & | Front () const |
Return first key. | |
const String & | Back () const |
Return last key. | |
Public Member Functions inherited from Urho3D::HashBase | |
HashBase () | |
Construct. | |
void | Swap (HashBase &rhs) |
Swap with another hash set or map. | |
unsigned | Size () const |
Return number of elements. | |
unsigned | NumBuckets () const |
Return number of buckets. | |
bool | Empty () const |
Return whether has no elements. | |
Additional Inherited Members | |
Public Types inherited from Urho3D::HashMap< String, PListValue > | |
typedef String | KeyType |
typedef PListValue | ValueType |
Static Public Attributes inherited from Urho3D::HashBase | |
static const unsigned | MIN_BUCKETS = 8 |
Initial amount of buckets. | |
static const unsigned | MAX_LOAD_FACTOR = 4 |
Maximum load factor. | |
Protected Member Functions inherited from Urho3D::HashBase | |
void | AllocateBuckets (unsigned size, unsigned numBuckets) |
Allocate bucket head pointers + room for size and bucket count variables. | |
void | ResetPtrs () |
Reset bucket head pointers. | |
void | SetSize (unsigned size) |
Set new size. | |
HashNodeBase ** | Ptrs () const |
Return bucket head pointers. | |
Protected Attributes inherited from Urho3D::HashBase | |
HashNodeBase * | head_ |
List head node pointer. | |
HashNodeBase * | tail_ |
List tail node pointer. | |
HashNodeBase ** | ptrs_ |
Bucket head pointers. | |
AllocatorBlock * | allocator_ |
Node allocator. | |
Detailed Description
PList value map.
The documentation for this class was generated from the following files:
- /home/travis/build/urho3d/Urho3D/Source/Urho3D/Resource/PListFile.h
- /home/travis/build/urho3d/Urho3D/Source/Urho3D/Resource/PListFile.cpp