Atoms Crowd  7.0.0
AtomsCore::MetadataImpl< T > Class Template Reference

Metadata template class. More...

#include <MetadataImpl.h>

Inheritance diagram for AtomsCore::MetadataImpl< T >:
AtomsCore::Metadata

Public Types

typedef T valueType
 value type
 

Public Member Functions

std::string typeStr () const
 Type string.
 
unsigned int typeId () const
 Type id.
 
 MetadataImpl ()
 Default constructor.
 
 MetadataImpl (const T &value)
 Constructor.
 
 MetadataImpl (const MetadataImpl &other)
 Copy constructor.
 
 ~MetadataImpl ()
 Destructor.
 
MetadataImploperator= (const MetadataImpl &other)
 Assign operator.
 
virtual void copy (Metadata *other)
 copy value
 
virtual AtomsPtr< Metadataclone () const
 clone object
 
virtual size_t memSize () const
 Memory size.
 
value () const
 Get value.
 
T & get ()
 Get reference.
 
const T & get () const
 Get reference.
 
void set (const T &value)
 Set value.
 
virtual bool setWithValuesAndWeights (const std::vector< AtomsPtr< Metadata >> &values, const std::vector< double > &weights)
 Set with weighted values.
 
virtual bool setWithValuesAndWeights (const std::vector< Metadata * > &values, const std::vector< double > &weights)
 
virtual void hash (MurmurHash3 &hasher) const
 Hash function.
 
virtual bool isEqual (Metadata *right, double err=0.0) const
 Equal function.
 
virtual bool isGreater (Metadata *right) const
 Is greater then.
 
virtual bool isLess (Metadata *right) const
 Is less then.
 
virtual void * dataPtr ()
 
bool serialise (Archive &outArchive) const
 Binary Serialise.
 
bool deserialise (Archive &inStream)
 Binary Deserialise.
 
virtual void toString (std::stringstream &ss) const
 String conversion.
 
ATOMSCORE_EXPORT void toString (std::stringstream &outStream) const
 String conversion.
 
ATOMSCORE_EXPORT void toString (std::stringstream &outStream) const
 String conversion.
 
ATOMSCORE_EXPORT void toString (std::stringstream &outStream) const
 String conversion.
 
ATOMSCORE_EXPORT void toString (std::stringstream &outStream) const
 String conversion.
 
ATOMSCORE_EXPORT void toString (std::stringstream &outStream) const
 String conversion.
 
ATOMSCORE_EXPORT void toString (std::stringstream &outStream) const
 String conversion.
 
ATOMSCORE_EXPORT bool serialise (Archive &outStream) const
 Serialise.
 
ATOMSCORE_EXPORT bool deserialise (Archive &inStream)
 Deserialise.
 
ATOMSCORE_EXPORT void toString (std::stringstream &outStream) const
 String conversion.
 
ATOMSCORE_EXPORT size_t memSize () const
 Memory size. More...
 
ATOMSCORE_EXPORT void hash (MurmurHash3 &hasher) const
 Hash function.
 
ATOMSCORE_EXPORT bool isEqual (Metadata *right, double err) const
 Equal function.
 
ATOMSCORE_EXPORT void toString (std::stringstream &outStream) const
 String conversion.
 
ATOMSCORE_EXPORT bool serialise (Archive &outStream) const
 Serialise.
 
ATOMSCORE_EXPORT bool deserialise (Archive &inStream)
 Deserialise.
 
ATOMSCORE_EXPORT void toString (std::stringstream &outStream) const
 String conversion.
 
ATOMSCORE_EXPORT size_t memSize () const
 Memory size. More...
 
ATOMSCORE_EXPORT void hash (MurmurHash3 &hasher) const
 Hash function.
 
ATOMSCORE_EXPORT bool isEqual (Metadata *right, double err) const
 Equal function.
 
ATOMSCORE_EXPORT void toString (std::stringstream &ss) const
 String conversion.
 
ATOMSCORE_EXPORT void toString (std::stringstream &ss) const
 String conversion.
 
ATOMSCORE_EXPORT bool serialise (Archive &outStream) const
 Serialise.
 
ATOMSCORE_EXPORT bool deserialise (Archive &inStream)
 Deserialise.
 
ATOMSCORE_EXPORT void toString (std::stringstream &outStream) const
 String conversion.
 
ATOMSCORE_EXPORT size_t memSize () const
 Memory size. More...
 
ATOMSCORE_EXPORT void hash (MurmurHash3 &hasher) const
 Hash function.
 
ATOMSCORE_EXPORT bool isEqual (Metadata *right, double err) const
 Equal function.
 
ATOMSCORE_EXPORT bool serialise (Archive &outStream) const
 Serialise.
 
ATOMSCORE_EXPORT bool deserialise (Archive &inStream)
 Deserialise.
 
ATOMSCORE_EXPORT void toString (std::stringstream &outStream) const
 String conversion.
 
ATOMSCORE_EXPORT size_t memSize () const
 Memory size. More...
 
ATOMSCORE_EXPORT void hash (MurmurHash3 &hasher) const
 Hash function.
 
ATOMSCORE_EXPORT bool isEqual (Metadata *right, double err) const
 Equal function.
 
ATOMSCORE_EXPORT bool serialise (Archive &outStream) const
 Serialise.
 
ATOMSCORE_EXPORT bool deserialise (Archive &inStream)
 Deserialise.
 
ATOMSCORE_EXPORT void toString (std::stringstream &outStream) const
 String conversion.
 
ATOMSCORE_EXPORT size_t memSize () const
 Memory size. More...
 
ATOMSCORE_EXPORT void hash (MurmurHash3 &hasher) const
 Hash function.
 
ATOMSCORE_EXPORT bool isEqual (Metadata *right, double err) const
 Equal function.
 
ATOMSCORE_EXPORT bool serialise (Archive &outStream) const
 Serialise.
 
ATOMSCORE_EXPORT bool deserialise (Archive &inStream)
 Deserialise.
 
ATOMSCORE_EXPORT void toString (std::stringstream &outStream) const
 String conversion.
 
ATOMSCORE_EXPORT size_t memSize () const
 Memory size. More...
 
ATOMSCORE_EXPORT void hash (MurmurHash3 &hasher) const
 Hash function.
 
ATOMSCORE_EXPORT bool isEqual (Metadata *right, double err) const
 Equal function.
 
ATOMSCORE_EXPORT bool isEqual (Metadata *right, double err) const
 Equal function.
 
ATOMSCORE_EXPORT bool isGreater (Metadata *right) const
 
ATOMSCORE_EXPORT bool isLess (Metadata *right) const
 

Static Public Member Functions

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

Detailed Description

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

Metadata template class.

Member Function Documentation

◆ creator()

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

Creator function.

Needad mainly by the metadata factory

Returns
Return a new allocad metadata object

◆ memSize() [1/6]

ATOMSCORE_EXPORT size_t AtomsCore::MetadataImpl< AtomsUtils::Curve >::memSize ( ) const
virtual

Memory size.

Return the memory used when binary serialized

Implements AtomsCore::Metadata.

◆ memSize() [2/6]

ATOMSCORE_EXPORT size_t AtomsCore::MetadataImpl< AtomsUtils::Image >::memSize ( ) const
virtual

Memory size.

Return the memory used when binary serialized

Implements AtomsCore::Metadata.

◆ memSize() [3/6]

ATOMSCORE_EXPORT size_t AtomsCore::MetadataImpl< AtomsUtils::Mesh >::memSize ( ) const
virtual

Memory size.

Return the memory used when binary serialized

Implements AtomsCore::Metadata.

◆ memSize() [4/6]

ATOMSCORE_EXPORT size_t AtomsCore::MetadataImpl< AtomsCore::Pose >::memSize ( ) const
virtual

Memory size.

Return the memory used when binary serialized

Implements AtomsCore::Metadata.

◆ memSize() [5/6]

ATOMSCORE_EXPORT size_t AtomsCore::MetadataImpl< AtomsUtils::SampledCurve >::memSize ( ) const
virtual

Memory size.

Return the memory used when binary serialized

Implements AtomsCore::Metadata.

◆ memSize() [6/6]

ATOMSCORE_EXPORT size_t AtomsCore::MetadataImpl< AtomsCore::Skeleton >::memSize ( ) const
virtual

Memory size.

Return the memory used when binary serialized

Implements AtomsCore::Metadata.


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