NVIDIA DeepStream SDK API Reference

9.2 Release
ds3d::GuardDataLoader Class Reference

Detailed Description

GuardDataLoader is the safe access entry for abiDataLoader.

Applications can use it to make C-based APIs safer. it would manage abiRefDataLoader automatically. with that, App user do not need to refCopy_i or destroy abiRefDataLoader manually.

For example: abiRefDataLoader* rawRefLoader = creator(); GuardDataLoader guardLoader(rawRefLoader, true); // take the ownership of rawRefLoader guardLoader.setUserData(userdata, [](void*){ ...free... }); guardLoader.setErrorCallback([](ErrCode c, const char* msg){ stderr << msg; }); ErrCode c = guardLoader.start(config, path); DS_ASSERT(isGood(c)); c = guardLoader.start(config, path); // invoke abiDataLoader::start_i(...) GuardDataMap data; c = guardLoader.read(data); // invoke abiDataLoader::read_i(...) DS_ASSERT(isGood(c)); DS_ASSERT(data); ... // access data c = guardLoader.stop(); // invoke abiDataLoader::stop_i(...) guardLoader.reset(); // destroy abiRefDataLoader, when all reference // destroyed, abiDataLoader would be freed.

Definition at line 50 of file includes/ds3d/common/hpp/dataloader.hpp.

Inheritance diagram for ds3d::GuardDataLoader:
Collaboration diagram for ds3d::GuardDataLoader:

Public Types

using abiRefType = abiRefT< abiDataLoader >
 
using abiRefType = abiRefT< abiDataLoader >
 
using abiRefType = abiRefT< abiDataLoader >
 
using abiRefType = abiRefT< abiDataLoader >
 

Public Member Functions

template<typename... Args>
 GuardDataLoader (Args &&... args)
 
 ~GuardDataLoader ()=default
 
std::string getOutputCaps ()
 
ErrCode readData (GuardDataMap &datamap)
 
ErrCode readDataAsync (abiOnDataCB::CppFunc dataReadyCB)
 
template<typename... Args>
 GuardDataLoader (Args &&... args)
 
 ~GuardDataLoader ()=default
 
std::string getOutputCaps ()
 
ErrCode readData (GuardDataMap &datamap)
 
ErrCode readDataAsync (abiOnDataCB::CppFunc dataReadyCB)
 
template<typename... Args>
 GuardDataLoader (Args &&... args)
 
 ~GuardDataLoader ()=default
 
std::string getOutputCaps ()
 
ErrCode readData (GuardDataMap &datamap)
 
ErrCode readDataAsync (abiOnDataCB::CppFunc dataReadyCB)
 
template<typename... Args>
 GuardDataLoader (Args &&... args)
 
 ~GuardDataLoader ()=default
 
std::string getOutputCaps ()
 
ErrCode readData (GuardDataMap &datamap)
 
ErrCode readDataAsync (abiOnDataCB::CppFunc dataReadyCB)
 
void setUserData (void *data, DelF delF)
 
void setUserData (void *data, DelF delF)
 
void setUserData (void *data, DelF delF)
 
void setUserData (void *data, DelF delF)
 
virtual void * getUserData () const
 
virtual void * getUserData () const
 
virtual void * getUserData () const
 
virtual void * getUserData () const
 
void setErrorCallback (abiErrorCB::CppFunc errCb)
 
void setErrorCallback (abiErrorCB::CppFunc errCb)
 
void setErrorCallback (abiErrorCB::CppFunc errCb)
 
void setErrorCallback (abiErrorCB::CppFunc errCb)
 
ErrCode start (const std::string &content, const std::string &path="")
 
ErrCode start (const std::string &content, const std::string &path="")
 
ErrCode start (const std::string &content, const std::string &path="")
 
ErrCode start (const std::string &content, const std::string &path="")
 
ErrCode flush ()
 
ErrCode flush ()
 
ErrCode flush ()
 
ErrCode flush ()
 
ErrCode stop ()
 
ErrCode stop ()
 
ErrCode stop ()
 
ErrCode stop ()
 
State state () const
 
State state () const
 
State state () const
 
State state () const
 
std::string getCaps (CapsPort port)
 
std::string getCaps (CapsPort port)
 
std::string getCaps (CapsPort port)
 
std::string getCaps (CapsPort port)
 
std::string getInputCaps ()
 
std::string getInputCaps ()
 
std::string getInputCaps ()
 
std::string getInputCaps ()
 
GuardTy cast ()
 
GuardTy cast ()
 
GuardTy cast ()
 
GuardTy cast ()
 
abiDataLoader * ptr () const
 
abiDataLoader * ptr () const
 
abiDataLoader * ptr () const
 
abiDataLoader * ptr () const
 
abiDataLoader * operator-> () const
 
abiDataLoader * operator-> () const
 
abiDataLoader * operator-> () const
 
abiDataLoader * operator-> () const
 
 operator bool () const
 
 operator bool () const
 
 operator bool () const
 
 operator bool () const
 
 operator ShrdPtr< abiDataLoader > ()
 
 operator ShrdPtr< abiDataLoader > ()
 
 operator ShrdPtr< abiDataLoader > ()
 
 operator ShrdPtr< abiDataLoader > ()
 
abiRefT< abiDataLoader > * release ()
 
abiRefT< abiDataLoader > * release ()
 
abiRefT< abiDataLoader > * release ()
 
abiRefT< abiDataLoader > * release ()
 
void reset (abiRefT< abiDataLoader > *abiref=nullptr)
 
void reset (abiRefT< abiDataLoader > *abiref=nullptr)
 
void reset (abiRefT< abiDataLoader > *abiref=nullptr)
 
void reset (abiRefT< abiDataLoader > *abiref=nullptr)
 
abiRefT< abiDataLoader > * abiRef () const
 
abiRefT< abiDataLoader > * abiRef () const
 
abiRefT< abiDataLoader > * abiRef () const
 
abiRefT< abiDataLoader > * abiRef () const
 

Member Typedef Documentation

◆ abiRefType [1/4]

◆ abiRefType [2/4]

◆ abiRefType [3/4]

◆ abiRefType [4/4]

Constructor & Destructor Documentation

◆ GuardDataLoader() [1/4]

template<typename... Args>
ds3d::GuardDataLoader::GuardDataLoader ( Args &&...  args)
inline

Definition at line 56 of file includes/ds3d/common/hpp/dataloader.hpp.

◆ ~GuardDataLoader() [1/4]

ds3d::GuardDataLoader::~GuardDataLoader ( )
default

◆ GuardDataLoader() [2/4]

template<typename... Args>
ds3d::GuardDataLoader::GuardDataLoader ( Args &&...  args)
inline

Definition at line 56 of file sources/libs/ds3d/common/hpp/dataloader.hpp.

◆ ~GuardDataLoader() [2/4]

ds3d::GuardDataLoader::~GuardDataLoader ( )
default

◆ GuardDataLoader() [3/4]

template<typename... Args>
ds3d::GuardDataLoader::GuardDataLoader ( Args &&...  args)
inline

Definition at line 56 of file 9.2/includes/ds3d/common/hpp/dataloader.hpp.

◆ ~GuardDataLoader() [3/4]

ds3d::GuardDataLoader::~GuardDataLoader ( )
default

◆ GuardDataLoader() [4/4]

template<typename... Args>
ds3d::GuardDataLoader::GuardDataLoader ( Args &&...  args)
inline

◆ ~GuardDataLoader() [4/4]

ds3d::GuardDataLoader::~GuardDataLoader ( )
default

Member Function Documentation

◆ abiRef() [1/4]

abiRefT< abiDataLoader > * ds3d::GuardRef< abiRefT< abiDataLoader > , >::abiRef
inlineinherited

Definition at line 273 of file includes/ds3d/common/hpp/obj.hpp.

◆ abiRef() [2/4]

abiRefT< abiDataLoader > * ds3d::GuardRef< abiRefT< abiDataLoader > , >::abiRef
inlineinherited

Definition at line 273 of file sources/libs/ds3d/common/hpp/obj.hpp.

◆ abiRef() [3/4]

abiRefT< abiDataLoader > * ds3d::GuardRef< abiRefT< abiDataLoader > , >::abiRef
inlineinherited

Definition at line 273 of file 9.2/includes/ds3d/common/hpp/obj.hpp.

◆ abiRef() [4/4]

abiRefT< abiDataLoader > * ds3d::GuardRef< abiRefT< abiDataLoader > , >::abiRef
inlineinherited

Definition at line 273 of file 9.2/sources/libs/ds3d/common/hpp/obj.hpp.

◆ cast() [1/4]

GuardTy ds3d::GuardDataT< abiDataLoader >::cast
inlineinherited

Definition at line 360 of file includes/ds3d/common/hpp/obj.hpp.

◆ cast() [2/4]

GuardTy ds3d::GuardDataT< abiDataLoader >::cast
inlineinherited

Definition at line 360 of file sources/libs/ds3d/common/hpp/obj.hpp.

◆ cast() [3/4]

GuardTy ds3d::GuardDataT< abiDataLoader >::cast
inlineinherited

Definition at line 360 of file 9.2/includes/ds3d/common/hpp/obj.hpp.

◆ cast() [4/4]

GuardTy ds3d::GuardDataT< abiDataLoader >::cast
inlineinherited

Definition at line 360 of file 9.2/sources/libs/ds3d/common/hpp/obj.hpp.

◆ flush() [1/4]

ErrCode ds3d::GuardDataProcess< abiDataLoader , >::flush
inlineinherited

◆ flush() [2/4]

ErrCode ds3d::GuardDataProcess< abiDataLoader , >::flush
inlineinherited

Definition at line 80 of file includes/ds3d/common/hpp/dataprocess.hpp.

◆ flush() [3/4]

ErrCode ds3d::GuardDataProcess< abiDataLoader , >::flush
inlineinherited

Definition at line 80 of file sources/libs/ds3d/common/hpp/dataprocess.hpp.

◆ flush() [4/4]

ErrCode ds3d::GuardDataProcess< abiDataLoader , >::flush
inlineinherited

Definition at line 80 of file 9.2/includes/ds3d/common/hpp/dataprocess.hpp.

◆ getCaps() [1/4]

std::string ds3d::GuardDataProcess< abiDataLoader , >::getCaps ( CapsPort  port)
inlineinherited

Definition at line 98 of file includes/ds3d/common/hpp/dataprocess.hpp.

◆ getCaps() [2/4]

std::string ds3d::GuardDataProcess< abiDataLoader , >::getCaps ( CapsPort  port)
inlineinherited

Definition at line 98 of file sources/libs/ds3d/common/hpp/dataprocess.hpp.

◆ getCaps() [3/4]

std::string ds3d::GuardDataProcess< abiDataLoader , >::getCaps ( CapsPort  port)
inlineinherited

Definition at line 98 of file 9.2/includes/ds3d/common/hpp/dataprocess.hpp.

◆ getCaps() [4/4]

std::string ds3d::GuardDataProcess< abiDataLoader , >::getCaps ( CapsPort  port)
inlineinherited

◆ getInputCaps() [1/4]

std::string ds3d::GuardDataProcess< abiDataLoader , >::getInputCaps
inlineinherited

Definition at line 105 of file includes/ds3d/common/hpp/dataprocess.hpp.

◆ getInputCaps() [2/4]

std::string ds3d::GuardDataProcess< abiDataLoader , >::getInputCaps
inlineinherited

◆ getInputCaps() [3/4]

std::string ds3d::GuardDataProcess< abiDataLoader , >::getInputCaps
inlineinherited

◆ getInputCaps() [4/4]

std::string ds3d::GuardDataProcess< abiDataLoader , >::getInputCaps
inlineinherited

◆ getOutputCaps() [1/4]

std::string ds3d::GuardDataLoader::getOutputCaps ( )
inline

◆ getOutputCaps() [2/4]

std::string ds3d::GuardDataLoader::getOutputCaps ( )
inline

◆ getOutputCaps() [3/4]

std::string ds3d::GuardDataLoader::getOutputCaps ( )
inline

◆ getOutputCaps() [4/4]

std::string ds3d::GuardDataLoader::getOutputCaps ( )
inline

◆ getUserData() [1/4]

virtual void* ds3d::GuardDataProcess< abiDataLoader , >::getUserData
inlinevirtualinherited

Definition at line 59 of file includes/ds3d/common/hpp/dataprocess.hpp.

◆ getUserData() [2/4]

virtual void* ds3d::GuardDataProcess< abiDataLoader , >::getUserData
inlinevirtualinherited

Definition at line 59 of file 9.2/includes/ds3d/common/hpp/dataprocess.hpp.

◆ getUserData() [3/4]

virtual void* ds3d::GuardDataProcess< abiDataLoader , >::getUserData
inlinevirtualinherited

Definition at line 59 of file sources/libs/ds3d/common/hpp/dataprocess.hpp.

◆ getUserData() [4/4]

virtual void* ds3d::GuardDataProcess< abiDataLoader , >::getUserData
inlinevirtualinherited

◆ operator bool() [1/4]

ds3d::GuardDataT< abiDataLoader >::operator bool
inlineinherited

Definition at line 374 of file 9.2/includes/ds3d/common/hpp/obj.hpp.

◆ operator bool() [2/4]

ds3d::GuardDataT< abiDataLoader >::operator bool
inlineinherited

Definition at line 374 of file 9.2/sources/libs/ds3d/common/hpp/obj.hpp.

◆ operator bool() [3/4]

ds3d::GuardDataT< abiDataLoader >::operator bool
inlineinherited

Definition at line 374 of file includes/ds3d/common/hpp/obj.hpp.

◆ operator bool() [4/4]

ds3d::GuardDataT< abiDataLoader >::operator bool
inlineinherited

Definition at line 374 of file sources/libs/ds3d/common/hpp/obj.hpp.

◆ operator ShrdPtr< abiDataLoader >() [1/4]

ds3d::GuardDataT< abiDataLoader >::operator ShrdPtr< abiDataLoader >
inlineinherited

Definition at line 376 of file includes/ds3d/common/hpp/obj.hpp.

◆ operator ShrdPtr< abiDataLoader >() [2/4]

ds3d::GuardDataT< abiDataLoader >::operator ShrdPtr< abiDataLoader >
inlineinherited

Definition at line 376 of file sources/libs/ds3d/common/hpp/obj.hpp.

◆ operator ShrdPtr< abiDataLoader >() [3/4]

ds3d::GuardDataT< abiDataLoader >::operator ShrdPtr< abiDataLoader >
inlineinherited

Definition at line 376 of file 9.2/sources/libs/ds3d/common/hpp/obj.hpp.

◆ operator ShrdPtr< abiDataLoader >() [4/4]

ds3d::GuardDataT< abiDataLoader >::operator ShrdPtr< abiDataLoader >
inlineinherited

Definition at line 376 of file 9.2/includes/ds3d/common/hpp/obj.hpp.

◆ operator->() [1/4]

abiDataLoader * ds3d::GuardDataT< abiDataLoader >::operator->
inlineinherited

Definition at line 372 of file includes/ds3d/common/hpp/obj.hpp.

◆ operator->() [2/4]

abiDataLoader * ds3d::GuardDataT< abiDataLoader >::operator->
inlineinherited

Definition at line 372 of file sources/libs/ds3d/common/hpp/obj.hpp.

◆ operator->() [3/4]

abiDataLoader * ds3d::GuardDataT< abiDataLoader >::operator->
inlineinherited

Definition at line 372 of file 9.2/sources/libs/ds3d/common/hpp/obj.hpp.

◆ operator->() [4/4]

abiDataLoader * ds3d::GuardDataT< abiDataLoader >::operator->
inlineinherited

Definition at line 372 of file 9.2/includes/ds3d/common/hpp/obj.hpp.

◆ ptr() [1/4]

abiDataLoader * ds3d::GuardDataT< abiDataLoader >::ptr
inlineinherited

Definition at line 365 of file includes/ds3d/common/hpp/obj.hpp.

◆ ptr() [2/4]

abiDataLoader * ds3d::GuardDataT< abiDataLoader >::ptr
inlineinherited

Definition at line 365 of file sources/libs/ds3d/common/hpp/obj.hpp.

◆ ptr() [3/4]

abiDataLoader * ds3d::GuardDataT< abiDataLoader >::ptr
inlineinherited

Definition at line 365 of file 9.2/includes/ds3d/common/hpp/obj.hpp.

◆ ptr() [4/4]

abiDataLoader * ds3d::GuardDataT< abiDataLoader >::ptr
inlineinherited

Definition at line 365 of file 9.2/sources/libs/ds3d/common/hpp/obj.hpp.

◆ readData() [1/4]

◆ readData() [2/4]

◆ readData() [3/4]

◆ readData() [4/4]

◆ readDataAsync() [1/4]

◆ readDataAsync() [2/4]

◆ readDataAsync() [3/4]

◆ readDataAsync() [4/4]

◆ release() [1/4]

abiRefT< abiDataLoader > * ds3d::GuardRef< abiRefT< abiDataLoader > , >::release
inlineinherited

Definition at line 257 of file sources/libs/ds3d/common/hpp/obj.hpp.

◆ release() [2/4]

abiRefT< abiDataLoader > * ds3d::GuardRef< abiRefT< abiDataLoader > , >::release
inlineinherited

Definition at line 257 of file 9.2/sources/libs/ds3d/common/hpp/obj.hpp.

◆ release() [3/4]

abiRefT< abiDataLoader > * ds3d::GuardRef< abiRefT< abiDataLoader > , >::release
inlineinherited

Definition at line 257 of file 9.2/includes/ds3d/common/hpp/obj.hpp.

◆ release() [4/4]

abiRefT< abiDataLoader > * ds3d::GuardRef< abiRefT< abiDataLoader > , >::release
inlineinherited

Definition at line 257 of file includes/ds3d/common/hpp/obj.hpp.

◆ reset() [1/4]

void ds3d::GuardRef< abiRefT< abiDataLoader > , >::reset ( abiRefT< abiDataLoader > *  abiref = nullptr)
inlineinherited

Definition at line 264 of file 9.2/sources/libs/ds3d/common/hpp/obj.hpp.

◆ reset() [2/4]

void ds3d::GuardRef< abiRefT< abiDataLoader > , >::reset ( abiRefT< abiDataLoader > *  abiref = nullptr)
inlineinherited

Definition at line 264 of file sources/libs/ds3d/common/hpp/obj.hpp.

◆ reset() [3/4]

void ds3d::GuardRef< abiRefT< abiDataLoader > , >::reset ( abiRefT< abiDataLoader > *  abiref = nullptr)
inlineinherited

Definition at line 264 of file 9.2/includes/ds3d/common/hpp/obj.hpp.

◆ reset() [4/4]

void ds3d::GuardRef< abiRefT< abiDataLoader > , >::reset ( abiRefT< abiDataLoader > *  abiref = nullptr)
inlineinherited

Definition at line 264 of file includes/ds3d/common/hpp/obj.hpp.

◆ setErrorCallback() [1/4]

void ds3d::GuardDataProcess< abiDataLoader , >::setErrorCallback ( abiErrorCB::CppFunc  errCb)
inlineinherited

◆ setErrorCallback() [2/4]

void ds3d::GuardDataProcess< abiDataLoader , >::setErrorCallback ( abiErrorCB::CppFunc  errCb)
inlineinherited

Definition at line 66 of file sources/libs/ds3d/common/hpp/dataprocess.hpp.

◆ setErrorCallback() [3/4]

void ds3d::GuardDataProcess< abiDataLoader , >::setErrorCallback ( abiErrorCB::CppFunc  errCb)
inlineinherited

Definition at line 66 of file 9.2/includes/ds3d/common/hpp/dataprocess.hpp.

◆ setErrorCallback() [4/4]

void ds3d::GuardDataProcess< abiDataLoader , >::setErrorCallback ( abiErrorCB::CppFunc  errCb)
inlineinherited

Definition at line 66 of file includes/ds3d/common/hpp/dataprocess.hpp.

◆ setUserData() [1/4]

void ds3d::GuardDataProcess< abiDataLoader , >::setUserData ( void *  data,
DelF  delF 
)
inlineinherited

◆ setUserData() [2/4]

void ds3d::GuardDataProcess< abiDataLoader , >::setUserData ( void *  data,
DelF  delF 
)
inlineinherited

Definition at line 48 of file 9.2/includes/ds3d/common/hpp/dataprocess.hpp.

◆ setUserData() [3/4]

void ds3d::GuardDataProcess< abiDataLoader , >::setUserData ( void *  data,
DelF  delF 
)
inlineinherited

Definition at line 48 of file includes/ds3d/common/hpp/dataprocess.hpp.

◆ setUserData() [4/4]

void ds3d::GuardDataProcess< abiDataLoader , >::setUserData ( void *  data,
DelF  delF 
)
inlineinherited

Definition at line 48 of file sources/libs/ds3d/common/hpp/dataprocess.hpp.

◆ start() [1/4]

ErrCode ds3d::GuardDataProcess< abiDataLoader , >::start ( const std::string &  content,
const std::string &  path = "" 
)
inlineinherited

◆ start() [2/4]

ErrCode ds3d::GuardDataProcess< abiDataLoader , >::start ( const std::string &  content,
const std::string &  path = "" 
)
inlineinherited

Definition at line 74 of file 9.2/includes/ds3d/common/hpp/dataprocess.hpp.

◆ start() [3/4]

ErrCode ds3d::GuardDataProcess< abiDataLoader , >::start ( const std::string &  content,
const std::string &  path = "" 
)
inlineinherited

Definition at line 74 of file sources/libs/ds3d/common/hpp/dataprocess.hpp.

◆ start() [4/4]

ErrCode ds3d::GuardDataProcess< abiDataLoader , >::start ( const std::string &  content,
const std::string &  path = "" 
)
inlineinherited

Definition at line 74 of file includes/ds3d/common/hpp/dataprocess.hpp.

◆ state() [1/4]

State ds3d::GuardDataProcess< abiDataLoader , >::state
inlineinherited

◆ state() [2/4]

State ds3d::GuardDataProcess< abiDataLoader , >::state
inlineinherited

Definition at line 92 of file sources/libs/ds3d/common/hpp/dataprocess.hpp.

◆ state() [3/4]

State ds3d::GuardDataProcess< abiDataLoader , >::state
inlineinherited

Definition at line 92 of file 9.2/includes/ds3d/common/hpp/dataprocess.hpp.

◆ state() [4/4]

State ds3d::GuardDataProcess< abiDataLoader , >::state
inlineinherited

Definition at line 92 of file includes/ds3d/common/hpp/dataprocess.hpp.

◆ stop() [1/4]

ErrCode ds3d::GuardDataProcess< abiDataLoader , >::stop
inlineinherited

Definition at line 86 of file 9.2/includes/ds3d/common/hpp/dataprocess.hpp.

◆ stop() [2/4]

◆ stop() [3/4]

ErrCode ds3d::GuardDataProcess< abiDataLoader , >::stop
inlineinherited

Definition at line 86 of file sources/libs/ds3d/common/hpp/dataprocess.hpp.

◆ stop() [4/4]

ErrCode ds3d::GuardDataProcess< abiDataLoader , >::stop
inlineinherited

Definition at line 86 of file includes/ds3d/common/hpp/dataprocess.hpp.


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