Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
Loading...
Searching...
No Matches
Ult::ResourceName Class Reference

#include <ResourceName.h>

Public Member Functions

 ResourceName ()
 
std::string GetName () const
 
int GetIndex () const
 
void SetName (const std::string &name)
 
void SetIndex (const int index)
 
bool operator== (const ResourceName &resName)
 

Detailed Description

Groups a name and index of a resource. Used in ResourceManager.

Constructor & Destructor Documentation

◆ ResourceName()

Ult::ResourceName::ResourceName ( )
inline

ResourceName constructor.

Member Function Documentation

◆ GetIndex()

int Ult::ResourceName::GetIndex ( ) const
inline

Returns the hash table key of this resource.

◆ GetName()

std::string Ult::ResourceName::GetName ( ) const
inline

Returns the string name of this resource.

◆ operator==()

bool Ult::ResourceName::operator== ( const ResourceName & resName)
inline

Checks if both the name and index of the ResourceName's are equal.

◆ SetIndex()

void Ult::ResourceName::SetIndex ( const int index)
inline

Store the index of this resource.

◆ SetName()

void Ult::ResourceName::SetName ( const std::string & name)
inline

Store the string name of this resource.


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