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

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

#include <lib_api.h>

Collaboration diagram for 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 Registry< T >

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

Member Function Documentation

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

add a new entry

Returns
new object associated with registered name
template<class T >
static Registry* Registry< T >::get ( )
inlinestatic

get singleton pointer to class

Returns
pointer to class
template<class T >
T& Registry< T >::get ( int  idx)
inline
template<class T >
int Registry< T >::size ( )
inline

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