ADTF
Loading...
Searching...
No Matches
codec_factory.h File Reference
Include dependency graph for codec_factory.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ddl::codec::CodecFactory
 

Namespaces

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

Functions

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

Detailed Description

Implementation of new CodecFactory based on CodecIndex.

Function Documentation

◆ getDecoderOrFactoryElementCount() [1/5]

template<>
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

◆ getDecoderOrFactoryElementCount() [2/5]

template<>
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

◆ getDecoderOrFactoryElementCount() [3/5]

template<>
size_t ddl::codec::detail::getDecoderOrFactoryElementCount ( const ddl::codec::StaticCodec & static_codec)
inline

Get the StaticCodec leaf element count for a ddl::codec::StaticCodec.

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

◆ getDecoderOrFactoryElementCount() [4/5]

template<>
size_t ddl::codec::detail::getDecoderOrFactoryElementCount ( const ddl::codec::StaticDecoder & static_decoder)
inline

Get the StaticDecoder leaf element count for a ddl::codec::StaticDecoder.

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

◆ getDecoderOrFactoryElementCount() [5/5]

template<typename T>
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