Open 3D Engine AzNetworking API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AzNetworking::QuantizedValues< NUM_ELEMENTS, NUM_BYTES, MIN_VALUE, MAX_VALUE > Class Template Reference

Public Types

using SelfType = QuantizedValues< NUM_ELEMENTS, NUM_BYTES, MIN_VALUE, MAX_VALUE >
 
using SimdTypef = typename QuantizedValuesHelper< NUM_ELEMENTS >::SimdType::FloatType
 
using SimdTypei = typename QuantizedValuesHelper< NUM_ELEMENTS >::SimdType::Int32Type
 
using ValueType = typename QuantizedValuesHelper< NUM_ELEMENTS >::ValueType
 

Public Member Functions

 QuantizedValues ()
 Default constructor.
 
 QuantizedValues (const SelfType &value)
 
 QuantizedValues (const ValueType &value)
 
SelfTypeoperator= (const SelfType &rhs)
 
SelfTypeoperator= (const ValueType &rhs)
 
 operator ValueType () const
 
ValueType operator+ (const ValueType &value) const
 
ValueType operator- (const ValueType &value) const
 
ValueType operator* (const ValueType &value) const
 
ValueType operator/ (const ValueType &value) const
 
SelfTypeoperator+= (const ValueType &value)
 
SelfTypeoperator-= (const ValueType &value)
 
SelfTypeoperator*= (const ValueType &value)
 
SelfTypeoperator/= (const ValueType &value)
 
bool operator== (const SelfType &rhs) const
 
bool operator== (const ValueType &rhs) const
 
bool operator!= (const SelfType &rhs) const
 
bool operator!= (const ValueType &rhs) const
 
const uint32_t * GetQuantizedIntegralValues () const
 
bool Serialize (ISerializer &serializer)
 

Friends

template<AZStd::size_t NUM_ELEMENTS2, AZStd::size_t NUM_BYTES2, int32_t MIN_VALUE2, int32_t MAX_VALUE2>
struct QuantizedValuesConversionHelper
 

Constructor & Destructor Documentation

◆ QuantizedValues() [1/2]

template<AZStd::size_t NUM_ELEMENTS, AZStd::size_t NUM_BYTES, int32_t MIN_VALUE, int32_t MAX_VALUE>
AzNetworking::QuantizedValues< NUM_ELEMENTS, NUM_BYTES, MIN_VALUE, MAX_VALUE >::QuantizedValues ( const SelfType value)
inline

Copy construct from same type.

Parameters
valueinstance to construct from

◆ QuantizedValues() [2/2]

template<AZStd::size_t NUM_ELEMENTS, AZStd::size_t NUM_BYTES, int32_t MIN_VALUE, int32_t MAX_VALUE>
AzNetworking::QuantizedValues< NUM_ELEMENTS, NUM_BYTES, MIN_VALUE, MAX_VALUE >::QuantizedValues ( const ValueType &  value)
inlineexplicit

Copy construct from float.

Parameters
valuevector value to construct from

Member Function Documentation

◆ GetQuantizedIntegralValues()

template<AZStd::size_t NUM_ELEMENTS, AZStd::size_t NUM_BYTES, int32_t MIN_VALUE, int32_t MAX_VALUE>
const uint32_t * AzNetworking::QuantizedValues< NUM_ELEMENTS, NUM_BYTES, MIN_VALUE, MAX_VALUE >::GetQuantizedIntegralValues
inline

Retrieves the quantized integral value used during serialization of this QuantizedValues instance.

Returns
the quantized integral value used during serialization of this QuantizedValues instance

◆ operator ValueType()

template<AZStd::size_t NUM_ELEMENTS, AZStd::size_t NUM_BYTES, int32_t MIN_VALUE, int32_t MAX_VALUE>
AzNetworking::QuantizedValues< NUM_ELEMENTS, NUM_BYTES, MIN_VALUE, MAX_VALUE >::operator ValueType
inline

Const underlying type operator.

Returns
underlying value

◆ operator!=() [1/2]

template<AZStd::size_t NUM_ELEMENTS, AZStd::size_t NUM_BYTES, int32_t MIN_VALUE, int32_t MAX_VALUE>
bool AzNetworking::QuantizedValues< NUM_ELEMENTS, NUM_BYTES, MIN_VALUE, MAX_VALUE >::operator!= ( const SelfType rhs) const
inline

Inequality operator.

Parameters
rhsbase type value to compare against
Returns
boolean true if this != rhs

◆ operator!=() [2/2]

template<AZStd::size_t NUM_ELEMENTS, AZStd::size_t NUM_BYTES, int32_t MIN_VALUE, int32_t MAX_VALUE>
bool AzNetworking::QuantizedValues< NUM_ELEMENTS, NUM_BYTES, MIN_VALUE, MAX_VALUE >::operator!= ( const ValueType &  rhs) const
inline

Inequality operator.

Parameters
rhsbase type value to compare against
Returns
boolean true if this != rhs

◆ operator*()

template<AZStd::size_t NUM_ELEMENTS, AZStd::size_t NUM_BYTES, int32_t MIN_VALUE, int32_t MAX_VALUE>
QuantizedValues< NUM_ELEMENTS, NUM_BYTES, MIN_VALUE, MAX_VALUE >::ValueType AzNetworking::QuantizedValues< NUM_ELEMENTS, NUM_BYTES, MIN_VALUE, MAX_VALUE >::operator* ( const ValueType &  value) const
inline

Product operator.

Parameters
valuesecond operand
Returns
result of operation

◆ operator*=()

template<AZStd::size_t NUM_ELEMENTS, AZStd::size_t NUM_BYTES, int32_t MIN_VALUE, int32_t MAX_VALUE>
QuantizedValues< NUM_ELEMENTS, NUM_BYTES, MIN_VALUE, MAX_VALUE > & AzNetworking::QuantizedValues< NUM_ELEMENTS, NUM_BYTES, MIN_VALUE, MAX_VALUE >::operator*= ( const ValueType &  value)
inline

Product operator.

Parameters
valuesecond operand
Returns
result of operation

◆ operator+()

template<AZStd::size_t NUM_ELEMENTS, AZStd::size_t NUM_BYTES, int32_t MIN_VALUE, int32_t MAX_VALUE>
QuantizedValues< NUM_ELEMENTS, NUM_BYTES, MIN_VALUE, MAX_VALUE >::ValueType AzNetworking::QuantizedValues< NUM_ELEMENTS, NUM_BYTES, MIN_VALUE, MAX_VALUE >::operator+ ( const ValueType &  value) const
inline

Sum operator.

Parameters
valuesecond operand
Returns
result of operation

◆ operator+=()

template<AZStd::size_t NUM_ELEMENTS, AZStd::size_t NUM_BYTES, int32_t MIN_VALUE, int32_t MAX_VALUE>
QuantizedValues< NUM_ELEMENTS, NUM_BYTES, MIN_VALUE, MAX_VALUE > & AzNetworking::QuantizedValues< NUM_ELEMENTS, NUM_BYTES, MIN_VALUE, MAX_VALUE >::operator+= ( const ValueType &  value)
inline

Sum operator.

Parameters
valuesecond operand
Returns
result of operation

◆ operator-()

template<AZStd::size_t NUM_ELEMENTS, AZStd::size_t NUM_BYTES, int32_t MIN_VALUE, int32_t MAX_VALUE>
QuantizedValues< NUM_ELEMENTS, NUM_BYTES, MIN_VALUE, MAX_VALUE >::ValueType AzNetworking::QuantizedValues< NUM_ELEMENTS, NUM_BYTES, MIN_VALUE, MAX_VALUE >::operator- ( const ValueType &  value) const
inline

Difference operator.

Parameters
valuesecond operand
Returns
result of operation

◆ operator-=()

template<AZStd::size_t NUM_ELEMENTS, AZStd::size_t NUM_BYTES, int32_t MIN_VALUE, int32_t MAX_VALUE>
QuantizedValues< NUM_ELEMENTS, NUM_BYTES, MIN_VALUE, MAX_VALUE > & AzNetworking::QuantizedValues< NUM_ELEMENTS, NUM_BYTES, MIN_VALUE, MAX_VALUE >::operator-= ( const ValueType &  value)
inline

Difference operator.

Parameters
valuesecond operand
Returns
result of operation

◆ operator/()

template<AZStd::size_t NUM_ELEMENTS, AZStd::size_t NUM_BYTES, int32_t MIN_VALUE, int32_t MAX_VALUE>
QuantizedValues< NUM_ELEMENTS, NUM_BYTES, MIN_VALUE, MAX_VALUE >::ValueType AzNetworking::QuantizedValues< NUM_ELEMENTS, NUM_BYTES, MIN_VALUE, MAX_VALUE >::operator/ ( const ValueType &  value) const
inline

Division operator.

Parameters
valuesecond operand
Returns
result of operation

◆ operator/=()

template<AZStd::size_t NUM_ELEMENTS, AZStd::size_t NUM_BYTES, int32_t MIN_VALUE, int32_t MAX_VALUE>
QuantizedValues< NUM_ELEMENTS, NUM_BYTES, MIN_VALUE, MAX_VALUE > & AzNetworking::QuantizedValues< NUM_ELEMENTS, NUM_BYTES, MIN_VALUE, MAX_VALUE >::operator/= ( const ValueType &  value)
inline

Division operator.

Parameters
valuesecond operand
Returns
result of operation

◆ operator=() [1/2]

template<AZStd::size_t NUM_ELEMENTS, AZStd::size_t NUM_BYTES, int32_t MIN_VALUE, int32_t MAX_VALUE>
QuantizedValues< NUM_ELEMENTS, NUM_BYTES, MIN_VALUE, MAX_VALUE > & AzNetworking::QuantizedValues< NUM_ELEMENTS, NUM_BYTES, MIN_VALUE, MAX_VALUE >::operator= ( const SelfType rhs)
inline

Assignment from same type.

Parameters
rhsinstance to assign from

◆ operator=() [2/2]

template<AZStd::size_t NUM_ELEMENTS, AZStd::size_t NUM_BYTES, int32_t MIN_VALUE, int32_t MAX_VALUE>
QuantizedValues< NUM_ELEMENTS, NUM_BYTES, MIN_VALUE, MAX_VALUE > & AzNetworking::QuantizedValues< NUM_ELEMENTS, NUM_BYTES, MIN_VALUE, MAX_VALUE >::operator= ( const ValueType &  rhs)
inline

Assignment from value value.

Parameters
rhsvalue to assign from

◆ operator==() [1/2]

template<AZStd::size_t NUM_ELEMENTS, AZStd::size_t NUM_BYTES, int32_t MIN_VALUE, int32_t MAX_VALUE>
bool AzNetworking::QuantizedValues< NUM_ELEMENTS, NUM_BYTES, MIN_VALUE, MAX_VALUE >::operator== ( const SelfType rhs) const
inline

Equality operator.

Parameters
rhsbase type value to compare against
Returns
boolean true if this == rhs

◆ operator==() [2/2]

template<AZStd::size_t NUM_ELEMENTS, AZStd::size_t NUM_BYTES, int32_t MIN_VALUE, int32_t MAX_VALUE>
bool AzNetworking::QuantizedValues< NUM_ELEMENTS, NUM_BYTES, MIN_VALUE, MAX_VALUE >::operator== ( const ValueType &  rhs) const
inline

Equality operator.

Parameters
rhsbase type value to compare against
Returns
boolean true if this == rhs

◆ Serialize()

template<AZStd::size_t NUM_ELEMENTS, AZStd::size_t NUM_BYTES, int32_t MIN_VALUE, int32_t MAX_VALUE>
bool AzNetworking::QuantizedValues< NUM_ELEMENTS, NUM_BYTES, MIN_VALUE, MAX_VALUE >::Serialize ( ISerializer serializer)
inline

Base serialize method for all serializable structures or classes to implement.

Parameters
serializerISerializer instance to use for serialization
Returns
boolean true for success, false for serialization failure

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