mxnet
Public Member Functions | Static Public Member Functions | List of all members
mxnet::ext::Registry< T > Class Template Reference

Registry class to registers things (ops, properties) Singleton class. More...

#include <lib_api.h>

Collaboration diagram for mxnet::ext::Registry< T >:
Collaboration graph

Public Member Functions

T & add (const char *name)
 add a new entry More...
 
int size ()
 
T & get (int idx)
 

Static Public Member Functions

static Registryget () PRIVATE_SYMBOL
 get singleton pointer to class More...
 

Detailed Description

template<class T>
class mxnet::ext::Registry< T >

Registry class to registers things (ops, properties) Singleton class.

Member Function Documentation

◆ add()

template<class T >
T& mxnet::ext::Registry< T >::add ( const char *  name)
inline

add a new entry

Returns
new object associated with registered name

◆ get() [1/2]

template<class T >
static Registry* mxnet::ext::Registry< T >::get ( )
inlinestatic

get singleton pointer to class

Returns
pointer to class

◆ get() [2/2]

template<class T >
T& mxnet::ext::Registry< T >::get ( int  idx)
inline

◆ size()

template<class T >
int mxnet::ext::Registry< T >::size ( )
inline

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