summaryrefslogtreecommitdiff
path: root/indra/llprimitive/llmaterialid.h
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2024-05-15 09:07:21 -0400
committerNat Goodspeed <nat@lindenlab.com>2024-05-15 09:07:21 -0400
commit5d43bc166d011e911e0492579b2f4f8bf015b48f (patch)
treeccc4cda5c2c2c3a5689f4a33dcfda2a896f21b8c /indra/llprimitive/llmaterialid.h
parenta3f2cacf542e1d770698ef6c7e6ea1c0a5cd3368 (diff)
parente7eced3c87310b15ac20cc3cd470d67686104a14 (diff)
Merge commit 'e7eced3' into release/luau-scripting: whitespace fix.
Diffstat (limited to 'indra/llprimitive/llmaterialid.h')
-rw-r--r--indra/llprimitive/llmaterialid.h84
1 files changed, 42 insertions, 42 deletions
diff --git a/indra/llprimitive/llmaterialid.h b/indra/llprimitive/llmaterialid.h
index 5eb463b0fd..bd6256d961 100644
--- a/indra/llprimitive/llmaterialid.h
+++ b/indra/llprimitive/llmaterialid.h
@@ -1,4 +1,4 @@
-/**
+/**
* @file llmaterialid.h
* @brief Header file for llmaterialid
* @author Stinson@lindenlab.com
@@ -35,70 +35,70 @@
class LLMaterialID
{
public:
- LLMaterialID();
- LLMaterialID(const LLSD& pMaterialID);
- LLMaterialID(const LLSD::Binary& pMaterialID);
- LLMaterialID(const void* pMemory);
- LLMaterialID(const LLMaterialID& pOtherMaterialID);
- LLMaterialID(const LLUUID& lluid);
- ~LLMaterialID();
+ LLMaterialID();
+ LLMaterialID(const LLSD& pMaterialID);
+ LLMaterialID(const LLSD::Binary& pMaterialID);
+ LLMaterialID(const void* pMemory);
+ LLMaterialID(const LLMaterialID& pOtherMaterialID);
+ LLMaterialID(const LLUUID& lluid);
+ ~LLMaterialID();
- bool operator == (const LLMaterialID& pOtherMaterialID) const;
- bool operator != (const LLMaterialID& pOtherMaterialID) const;
+ bool operator == (const LLMaterialID& pOtherMaterialID) const;
+ bool operator != (const LLMaterialID& pOtherMaterialID) const;
- bool operator < (const LLMaterialID& pOtherMaterialID) const;
- bool operator <= (const LLMaterialID& pOtherMaterialID) const;
- bool operator > (const LLMaterialID& pOtherMaterialID) const;
- bool operator >= (const LLMaterialID& pOtherMaterialID) const;
+ bool operator < (const LLMaterialID& pOtherMaterialID) const;
+ bool operator <= (const LLMaterialID& pOtherMaterialID) const;
+ bool operator > (const LLMaterialID& pOtherMaterialID) const;
+ bool operator >= (const LLMaterialID& pOtherMaterialID) const;
- LLMaterialID& operator = (const LLMaterialID& pOtherMaterialID);
+ LLMaterialID& operator = (const LLMaterialID& pOtherMaterialID);
- bool isNull() const;
+ bool isNull() const;
- const U8* get() const;
- void set(const void* pMemory);
- void clear();
+ const U8* get() const;
+ void set(const void* pMemory);
+ void clear();
- LLSD asLLSD() const;
- std::string asString() const;
+ LLSD asLLSD() const;
+ std::string asString() const;
LLUUID asUUID() const;
- friend std::ostream& operator<<(std::ostream& s, const LLMaterialID &material_id);
+ friend std::ostream& operator<<(std::ostream& s, const LLMaterialID &material_id);
- static const LLMaterialID null;
+ static const LLMaterialID null;
- // Returns a 64 bits digest of the material Id, by XORing its two 64 bits
- // long words. HB
- inline U64 getDigest64() const
- {
- U64* tmp = (U64*)mID;
- return tmp[0] ^ tmp[1];
- }
+ // Returns a 64 bits digest of the material Id, by XORing its two 64 bits
+ // long words. HB
+ inline U64 getDigest64() const
+ {
+ U64* tmp = (U64*)mID;
+ return tmp[0] ^ tmp[1];
+ }
private:
- void parseFromBinary(const LLSD::Binary& pMaterialID);
- void copyFromOtherMaterialID(const LLMaterialID& pOtherMaterialID);
- int compareToOtherMaterialID(const LLMaterialID& pOtherMaterialID) const;
+ void parseFromBinary(const LLSD::Binary& pMaterialID);
+ void copyFromOtherMaterialID(const LLMaterialID& pOtherMaterialID);
+ int compareToOtherMaterialID(const LLMaterialID& pOtherMaterialID) const;
- U8 mID[MATERIAL_ID_SIZE];
+ U8 mID[MATERIAL_ID_SIZE];
} ;
// std::hash implementation for LLMaterialID
namespace std
{
- template<> struct hash<LLMaterialID>
- {
- inline size_t operator()(const LLMaterialID& id) const noexcept
- {
- return (size_t)id.getDigest64();
- }
- };
+ template<> struct hash<LLMaterialID>
+ {
+ inline size_t operator()(const LLMaterialID& id) const noexcept
+ {
+ return (size_t)id.getDigest64();
+ }
+ };
}
// For use with boost containers.
inline size_t hash_value(const LLMaterialID& id) noexcept
{
- return (size_t)id.getDigest64();
+ return (size_t)id.getDigest64();
}
#endif // LL_LLMATERIALID_H