Atoms Crowd  4.1.0
AtomsCore::TypedArrayMetadata< T > Class Template Reference

Metadata template class. More...

#include <TypedArrayMetadata.h>

Inheritance diagram for AtomsCore::TypedArrayMetadata< T >:
AtomsCore::BaseTypedArrayMetadata AtomsCore::Metadata

Public Types

typedef std::vector< T > valueType
 value type
 

Public Member Functions

bool equalWithAbsError (const T &a, const T &b) const
 
std::string typeStr () const
 Type string.
 
unsigned int typeId () const
 Type id.
 
std::string basicTypeStr () const
 Type string.
 
 TypedArrayMetadata ()
 Default constructor.
 
 TypedArrayMetadata (const std::vector< T > &value)
 Constructor.
 
 TypedArrayMetadata (const TypedArrayMetadata< T > &other)
 Copy constructor.
 
 ~TypedArrayMetadata ()
 Destructor.
 
TypedArrayMetadataoperator= (const TypedArrayMetadata< T > &other)
 Assign operator.
 
virtual void copy (Metadata *other)
 copy value
 
virtual AtomsPtr< Metadataclone () const
 clone object
 
virtual size_t memSize () const
 Memory size.
 
std::vector< T > value () const
 Get value.
 
std::vector< T > & get ()
 Get reference.
 
const std::vector< T > & get () const
 Get reference.
 
void set (const std::vector< T > &value)
 Set value.
 
AtomsPtr< MetadatagetBasicTypeMetadata (size_t index) const
 
void getBasicTypeMetadataInPlace (size_t index, AtomsPtr< Metadata > &OutMeta) const
 
getBasicTypeValue (size_t index) const
 
getBlendedBasicTypeValue (size_t index1, size_t index2, const double weight) const
 
AtomsPtr< MetadatagetBlendedBasicTypeMetadata (size_t index1, size_t index2, const double weight) const
 
void getBlendedBasicTypeMetadataInPlace (size_t index1, size_t index2, const double weight, AtomsPtr< Metadata > &OutMeta) const
 
virtual AtomsPtr< MetadatagetDoubleBlendedBasicTypeMetadata (size_t index11, size_t index12, const double weight1, size_t index21, size_t index22, const double weight2, const double finalWeight) const
 
virtual void getDoubleBlendedBasicTypeMetadataInPlace (size_t index11, size_t index12, const double weight1, size_t index21, size_t index22, const double weight2, const double finalWeight, AtomsPtr< Metadata > &OutMeta) const
 
virtual T getDoubleBlendedBasicTypeMetadataValue (size_t index11, size_t index12, const double weight1, size_t index21, size_t index22, const double weight2, const double finalWeight) const
 
virtual void hash (MurmurHash3 &hasher) const
 Hash function.
 
virtual size_t size () const
 
virtual void reverse ()
 Revers the vector.
 
virtual bool isStatic () const
 Return true if the vector contains the same value for each entry.
 
virtual bool serialise (Archive &outStream) const
 Serialise.
 
virtual bool deserialise (Archive &inStream)
 Deserialise.
 
virtual void toString (std::stringstream &ss) const
 String conversion.
 
bool equalWithAbsError (const AtomsCore::Box2 &a, const AtomsCore::Box2 &b) const
 
ATOMSCORE_EXPORT void toString (std::stringstream &ss) const
 String conversion.
 
bool equalWithAbsError (const AtomsCore::Box2f &a, const AtomsCore::Box2f &b) const
 
ATOMSCORE_EXPORT void toString (std::stringstream &ss) const
 String conversion.
 
ATOMSCORE_EXPORT void toString (std::stringstream &ss) const
 String conversion.
 
bool equalWithAbsError (const AtomsCore::Box3 &a, const AtomsCore::Box3 &b) const
 
ATOMSCORE_EXPORT void toString (std::stringstream &ss) const
 String conversion.
 
bool equalWithAbsError (const AtomsCore::Box3f &a, const AtomsCore::Box3f &b) const
 
ATOMSCORE_EXPORT void toString (std::stringstream &ss) const
 String conversion.
 
ATOMSCORE_EXPORT void toString (std::stringstream &ss) const
 String conversion.
 
ATOMSCORE_EXPORT size_t memSize () const
 Memory size.
 
ATOMSCORE_EXPORT bool serialise (Archive &outStream) const
 Serialise.
 
ATOMSCORE_EXPORT bool deserialise (Archive &inStream)
 Deserialise.
 
ATOMSCORE_EXPORT void toString (std::stringstream &ss) const
 String conversion.
 
ATOMSCORE_EXPORT AtomsUtils::Curve getDoubleBlendedBasicTypeMetadataValue (size_t index11, size_t index12, const double weight1, size_t index21, size_t index22, const double weight2, const double finalWeight) const
 
ATOMSCORE_EXPORT AtomsUtils::Curve getBlendedBasicTypeValue (size_t index1, size_t index2, const double weight) const
 
ATOMSCORE_EXPORT void hash (MurmurHash3 &hasher) const
 Hash function.
 
ATOMSCORE_EXPORT bool equalWithAbsError (const AtomsUtils::Curve &a, const AtomsUtils::Curve &b) const
 
bool equalWithAbsError (const double &a, const double &b) const
 
bool equalWithAbsError (const AtomsCore::Euler &a, const AtomsCore::Euler &b) const
 
bool equalWithAbsError (const AtomsCore::Eulerf &a, const AtomsCore::Eulerf &b) const
 
bool equalWithAbsError (const float &a, const float &b) const
 
bool equalWithAbsError (const AtomsCore::Matrix &a, const AtomsCore::Matrix &b) const
 
ATOMSCORE_EXPORT void toString (std::stringstream &ss) const
 String conversion.
 
bool equalWithAbsError (const AtomsCore::Matrixf &a, const AtomsCore::Matrixf &b) const
 
ATOMSCORE_EXPORT size_t memSize () const
 Memory size.
 
ATOMSCORE_EXPORT bool serialise (Archive &outStream) const
 Serialise.
 
ATOMSCORE_EXPORT bool deserialise (Archive &inStream)
 Deserialise.
 
ATOMSCORE_EXPORT void toString (std::stringstream &ss) const
 String conversion.
 
ATOMSCORE_EXPORT AtomsUtils::Mesh getDoubleBlendedBasicTypeMetadataValue (size_t index11, size_t index12, const double weight1, size_t index21, size_t index22, const double weight2, const double finalWeight) const
 
ATOMSCORE_EXPORT AtomsUtils::Mesh getBlendedBasicTypeValue (size_t index1, size_t index2, const double weight) const
 
ATOMSCORE_EXPORT void hash (MurmurHash3 &hasher) const
 Hash function.
 
ATOMSCORE_EXPORT bool equalWithAbsError (const AtomsUtils::Mesh &a, const AtomsUtils::Mesh &b) const
 
ATOMSCORE_EXPORT size_t memSize () const
 Memory size.
 
ATOMSCORE_EXPORT bool serialise (Archive &outStream) const
 Serialise.
 
ATOMSCORE_EXPORT bool deserialise (Archive &inStream)
 Deserialise.
 
ATOMSCORE_EXPORT void toString (std::stringstream &ss) const
 String conversion.
 
ATOMSCORE_EXPORT AtomsCore::Pose getDoubleBlendedBasicTypeMetadataValue (size_t index11, size_t index12, const double weight1, size_t index21, size_t index22, const double weight2, const double finalWeight) const
 
ATOMSCORE_EXPORT AtomsCore::Pose getBlendedBasicTypeValue (size_t index1, size_t index2, const double weight) const
 
ATOMSCORE_EXPORT void hash (MurmurHash3 &hasher) const
 Hash function.
 
ATOMSCORE_EXPORT void hash (MurmurHash3 &hasher) const
 Hash function.
 
ATOMSCORE_EXPORT bool equalWithAbsError (const AtomsCore::Pose &a, const AtomsCore::Pose &b) const
 
bool equalWithAbsError (const AtomsCore::Quaternion &a, const AtomsCore::Quaternion &b) const
 
bool equalWithAbsError (const AtomsCore::Quaternionf &a, const AtomsCore::Quaternionf &b) const
 
ATOMSCORE_EXPORT size_t memSize () const
 Memory size.
 
ATOMSCORE_EXPORT bool serialise (Archive &outStream) const
 Serialise.
 
ATOMSCORE_EXPORT bool deserialise (Archive &inStream)
 Deserialise.
 
ATOMSCORE_EXPORT void toString (std::stringstream &ss) const
 String conversion.
 
ATOMSCORE_EXPORT AtomsUtils::SampledCurve getDoubleBlendedBasicTypeMetadataValue (size_t index11, size_t index12, const double weight1, size_t index21, size_t index22, const double weight2, const double finalWeight) const
 
ATOMSCORE_EXPORT AtomsUtils::SampledCurve getBlendedBasicTypeValue (size_t index1, size_t index2, const double weight) const
 
ATOMSCORE_EXPORT void hash (MurmurHash3 &hasher) const
 Hash function.
 
ATOMSCORE_EXPORT bool equalWithAbsError (const AtomsUtils::SampledCurve &a, const AtomsUtils::SampledCurve &b) const
 
ATOMSCORE_EXPORT size_t memSize () const
 Memory size.
 
ATOMSCORE_EXPORT bool serialise (Archive &outStream) const
 Serialise.
 
ATOMSCORE_EXPORT bool deserialise (Archive &inStream)
 Deserialise.
 
ATOMSCORE_EXPORT void toString (std::stringstream &ss) const
 String conversion.
 
ATOMSCORE_EXPORT AtomsCore::Skeleton getDoubleBlendedBasicTypeMetadataValue (size_t index11, size_t index12, const double weight1, size_t index21, size_t index22, const double weight2, const double finalWeight) const
 
ATOMSCORE_EXPORT AtomsCore::Skeleton getBlendedBasicTypeValue (size_t index1, size_t index2, const double weight) const
 
ATOMSCORE_EXPORT void hash (MurmurHash3 &hasher) const
 Hash function.
 
ATOMSCORE_EXPORT bool equalWithAbsError (const AtomsCore::Skeleton &a, const AtomsCore::Skeleton &b) const
 
bool equalWithAbsError (const AtomsCore::Vector2 &a, const AtomsCore::Vector2 &b) const
 
bool equalWithAbsError (const AtomsCore::Vector2f &a, const AtomsCore::Vector2f &b) const
 
bool equalWithAbsError (const AtomsCore::Vector3 &a, const AtomsCore::Vector3 &b) const
 
bool equalWithAbsError (const AtomsCore::Vector3f &a, const AtomsCore::Vector3f &b) const
 
bool equalWithAbsError (const AtomsCore::Vector4 &a, const AtomsCore::Vector4 &b) const
 
bool equalWithAbsError (const AtomsCore::Vector4f &a, const AtomsCore::Vector4f &b) const
 

Static Public Member Functions

static std::string staticTypeStr ()
 Class static type string.
 
static unsigned int staticTypeId ()
 Class static type string.
 
static std::string staticBasicTypeStr ()
 Class static base metadata string.
 
static Metadatacreator ()
 Creator function. More...
 

Detailed Description

template<typename T>
class AtomsCore::TypedArrayMetadata< T >

Metadata template class.

Member Function Documentation

◆ creator()

template<class T >
Metadata * AtomsCore::TypedArrayMetadata< T >::creator
static

Creator function.

Needad mainly by the metadata factory

Returns
Return a new allocad metadata object

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