Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
StringIntKey Class Reference

#include <unit_const_cache.h>

Public Member Functions

 StringIntKey (std::string k, int f)
 
bool operator== (const StringIntKey &b) const
 
bool operator< (const StringIntKey &b) const
 
 operator size_t () const
 

Friends

class ConstHasher
 

Detailed Description

Definition at line 9 of file unit_const_cache.h.

Constructor & Destructor Documentation

StringIntKey::StringIntKey ( std::string  k,
int  f 
)
inline

Definition at line 14 of file unit_const_cache.h.

14  : StringIntKey( std::string k, int f )
15  {
16  key = k;
17  fac = f;
18  }

Member Function Documentation

StringIntKey::operator size_t ( ) const
inline

Definition at line 29 of file unit_const_cache.h.

29  {
31  }
bool StringIntKey::operator< ( const StringIntKey b) const
inline

Definition at line 23 of file unit_const_cache.h.

24  {
25  if (fac != b.fac)
26  return fac < b.fac;
27  return key < b.key;
28  }
bool StringIntKey::operator== ( const StringIntKey b) const
inline

Definition at line 19 of file unit_const_cache.h.

20  {
21  return fac == b.fac && key == b.key;
22  }

Friends And Related Function Documentation

friend class ConstHasher
friend

Definition at line 11 of file unit_const_cache.h.


The documentation for this class was generated from the following file: