ADTF  3.18.2
workspace/conan/dev_essential/1.3.3/dw/stable/package/37682420cd166e229516a41c8d6a139a0b13e1e1/include/ddl/codec/codec_factory.h File Reference

Implementation of new CodecFactory based on CodecIndex. More...

Go to the source code of this file.

Classes

class  CodecFactory
 Factory class for ddl codecs. More...
 

Namespaces

 ddl
 definition of the ddl namespace
 
 ddl::codec
 Namespace for the new faster CodecFactory/Decoder/Codec implementation.
 

Functions

template<typename T >
size_t getDecoderOrFactoryElementCount (const T &decoder_or_factory)
 Get the Decoder or Factory leaf element count. More...
 
template<>
size_t getDecoderOrFactoryElementCount (const ddl::codec::Decoder &decoder)
 Get the Decoders leaf element count for a ddl::codec::Decoder. More...
 
template<>
size_t getDecoderOrFactoryElementCount (const ddl::codec::Codec &codec)
 Get the Codecs leaf element count for a ddl::codec::Codec. More...
 
template<typename T >
std::vector< CodecIndex > getCodecIndices (const T &decoder_or_factory)
 Retrieves all codec indices for the given codec of type T. More...
 
template<typename T >
std::vector< LeafCodecIndex > getLeafCodecIndices (const T &decoder_or_factory, ddl::DataRepresentation rep)
 Get the leaf indices object. More...
 

Detailed Description

Implementation of new CodecFactory based on CodecIndex.

Definition in file workspace/conan/dev_essential/1.3.3/dw/stable/package/37682420cd166e229516a41c8d6a139a0b13e1e1/include/ddl/codec/codec_factory.h.

Function Documentation

◆ getDecoderOrFactoryElementCount() [1/3]

size_t ddl::codec::detail::getDecoderOrFactoryElementCount ( const ddl::codec::Codec codec)
inline

Get the Codecs leaf element count for a ddl::codec::Codec.

Parameters
codecthe decoder to retrieve the element count
Returns
size_t the (leaf) element count value

Definition at line 309 of file workspace/conan/dev_essential/1.3.3/dw/stable/package/37682420cd166e229516a41c8d6a139a0b13e1e1/include/ddl/codec/codec_factory.h.

References ddl::codec::detail::getDecoderOrFactoryElementCount(), and StaticDecoder::getElementCount().

◆ getDecoderOrFactoryElementCount() [2/3]

size_t ddl::codec::detail::getDecoderOrFactoryElementCount ( const ddl::codec::Decoder decoder)
inline

Get the Decoders leaf element count for a ddl::codec::Decoder.

Parameters
decoderthe decoder to retrieve the element count
Returns
size_t the (leaf) element count value

Definition at line 298 of file workspace/conan/dev_essential/1.3.3/dw/stable/package/37682420cd166e229516a41c8d6a139a0b13e1e1/include/ddl/codec/codec_factory.h.

References ddl::codec::detail::getDecoderOrFactoryElementCount(), and StaticDecoder::getElementCount().

◆ getDecoderOrFactoryElementCount() [3/3]

size_t ddl::codec::detail::getDecoderOrFactoryElementCount ( const T &  decoder_or_factory)

Get the Decoder or Factory leaf element count.

Template Parameters
TThe decoder or factory type
Parameters
decoder_or_factorythe decoder or factory
Returns
size_t the (leaf) element count value

Definition at line 287 of file workspace/conan/dev_essential/1.3.3/dw/stable/package/37682420cd166e229516a41c8d6a139a0b13e1e1/include/ddl/codec/codec_factory.h.

References ddl::codec::detail::getDecoderOrFactoryElementCount().

Referenced by ddl::codec::detail::getDecoderOrFactoryElementCount().