![]() |
Scene Fusion 2 API Reference
|
#include <sfName.h>
Public Member Functions | |
sfName () | |
sfName (const std::string &str) | |
sfName (const char *str) | |
bool | IsValid () const |
const std::string & | operator* () const |
const std::string * | operator-> () const |
bool | operator== (const sfName &name) const |
bool | operator!= (const sfName &name) const |
Stores a pointer to a constant string. Can be dereferenced to access the string. All sfNames constructed with the same string value will point to the same memory address. This is used to reduce memory and provide fast string comparisons.
KS::SceneFusion2::sfName::sfName | ( | ) |
Constructor. Points to nullptr.
KS::SceneFusion2::sfName::sfName | ( | const std::string & | str | ) |
Constructor
const | std::string& str. The string pointed to will be a copy of this string. |
KS::SceneFusion2::sfName::sfName | ( | const char * | str | ) |
Constructor
const | char* str. The string pointed to will be a copy of this string. |
bool KS::SceneFusion2::sfName::IsValid | ( | ) | const |
Checks if this sfName points to a valid string.
|
inline |
Inequality comparison.
const | sfName& name to compare with. |
bool | true if the names are different. |
|
inline |
Dereferences to the constant string.
|
inline |
Deferences to the string pointer.
const | std::string* |
|
inline |
Equality comparison.
const | sfName& name to compare with. |