All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Typedefs | Functions
Eegeo::Helpers Namespace Reference

Miscellaneous utility types and functions. More...

Classes

class  ArrayAllocator
 
class  CallbackCollectionBase
 
class  CallbackCollection0
 
class  CallbackCollection1
 
class  CallbackCollection2
 
class  CallbackCollection3
 
struct  CubeFaceFileNames
 
class  CubeTextureName
 
class  GenericEventProxy
 
struct  EnumHash
 
class  IGenericEventProvider
 
class  IMortonKeyBasedEventProvider
 
class  MortonKeyEventProxy
 
class  ICallback0
 
class  TCallback0
 
class  ICallback1
 
class  TCallback1
 
class  ICallback2
 
class  TCallback2
 
class  ICallback3
 
class  TCallback3
 
class  IEventBase
 
class  IEvent0
 
class  IEvent1
 
class  TEventBase
 
class  TEvent0
 
class  TEvent1
 
class  TSingleObserverEventBase
 
class  TSingleObserverEvent0
 
class  TSingleObserverEvent1
 
struct  FileStat
 
class  IFileIO
 
class  IHttpCache
 
class  IIdentity
 
class  IIdentityProvider
 
class  IdentityProvider
 
class  ITextureFileLoader
 
class  ITimeProvider
 
class  IUpdater
 
class  MD5
 
class  ObservableVector
 
class  PendingItemsContainer
 
class  RouletteWheelSelector
 A roulette wheel selector for making weighted random choices. http://en.wikipedia.org/wiki/Fitness_proportionate_selection http://stackoverflow.com/a/3995038 <- this is a clear explanation of how it works. More...
 
class  SerializableUrlHash
 
class  TimeProvider
 
class  Timer
 

Typedefs

typedef unsigned long long CacheSize_t
 
typedef int TIdentity
 

Functions

v3 MakeColorRGB (u8 r, u8 g, u8 b)
 
v4 MakeColorRGBA (u8 r, u8 g, u8 b, u8 a)
 
v4 RGBA32ToColor (u32 rgba)
 
v4 ARGB32ToColor (u32 argb)
 
u32 MakeColorRGBA32 (u8 r, u8 g, u8 b, u8 a)
 
u32 MakeColorUnityColor32 (u8 r, u8 g, u8 b, u8 a)
 
v4 ToFloatColorRange (double r, double g, double b, double a)
 
void ParseToBuffers (Helpers::IFileIO &fileIO, const CubeTextureName &textureName, std::vector< const std::vector< Byte > * > &buffers)
 
bool operator== (const IIdentity &lhs, const IIdentity &rhs)
 
bool operator!= (const IIdentity &lhs, const IIdentity &rhs)
 
template<typename T , size_t N>
T * end (T(&array)[N])
 
template<typename T , size_t N>
std::vector< T > makeVector (const T(&array)[N])
 
std::ostream & operator<< (std::ostream &out, MD5 md5)
 
std::string md5 (const std::string str)
 
bool TryGetStringValueFromSerializedJson (const std::string &serializedJson, const std::string &field, std::string &out_value)
 
bool TryGetDoubleValueFromSerializedJson (const std::string &serializedJson, const std::string &field, double &out_value)
 
bool CaseInsensitiveStringEquals (const std::string &a, const std::string &b)
 
std::string ToLower (const std::string &str)
 
size_t Split (const std::string &s, char delim, std::vector< std::string > &out_elems)
 
std::string TrimRight (const std::string &str, const std::string &charsToTrim)
 
bool TryParseLatLong (const std::string &latString, const std::string &lonString, Eegeo::Space::LatLong &out_LatLon)
 
bool TryParseDouble (const std::string &string, double &out_double)
 
bool TryParseInt (const std::string &string, int &out_int)
 
void SearchReplace (std::string &in_out_originalString, const std::string &searchTerm, const std::string &replaceTerm)
 
bool Contains (std::string &originalString, const std::string &searchTerm)
 
void PadRight (std::stringstream &stream, const std::string &string, int lineLengthToPadTo)
 
void PadLeftRight (std::stringstream &stream, const std::string &string, int leftPadding, int lineLengthToPadTo)
 
std::string FloatingPointToString (float v, int decimalPlaces)
 
std::string FloatingPointToString (double v, int decimalPlaces)
 
std::string Join (const std::vector< std::string > &tokens, const std::string separator)
 
std::string CamelCaseToSnakeCase (const std::string &camelCase)
 
template<typename T >
std::string Join (const std::vector< T > &values, const std::string &seperator)
 

Detailed Description

Miscellaneous utility types and functions.