3DiVi Face SDK  3.21.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Groups
pbio::ContextRef Class Reference

Public Member Functions

 ContextRef (const DHPtr &dll_handle, HContext *handle)
 
template<typename T , typename = typename std::enable_if<!std::is_base_of<Context, typename std::decay<T>::type>::value>::type>
void operator= (T &&value)
 
- Public Member Functions inherited from pbio::Context
 Context (const Context &other)
 
Contextoperator= (const Context &other)
 
 Context (Context &&other)
 
Contextoperator= (Context &&other)
 
 operator ContextRef ()
 
template<typename T , typename = typename std::enable_if<!std::is_base_of<Context, typename std::decay<T>::type>::value>::type>
Contextoperator= (T &&value)
 
bool operator== (const Context &other) const
 
size_t size () const
 
ContextArrayIterator begin ()
 
ContextArrayIterator end ()
 
ContextArrayIterator< true > begin () const
 
ContextArrayIterator< true > end () const
 
ContextArrayIterator< true > cbegin () const
 
ContextArrayIterator< true > cend () const
 
Ref operator[] (const std::string &key)
 
Ref operator[] (const char *key)
 
Ref operator[] (const int index)
 
const Ref operator[] (const std::string &key) const
 
const Ref operator[] (const char *key) const
 
const Ref operator[] (const int index) const
 
Ref at (const char *key)
 
Ref at (const std::string &key)
 
Ref at (const int index)
 
const Ref at (const char *key) const
 
const Ref at (const std::string &key) const
 
const Ref at (const int index) const
 
bool contains (const std::string &key) const
 
ContextArrayIterator find (const std::string &key)
 
ContextArrayIterator< true > find (const std::string &key) const
 
template<typename T >
std::enable_if
<!std::is_base_of< Context,
typename std::decay< T >::type >
::value >::type 
push_back (T &&data)
 
void push_back (const Context &data)
 
void push_back (Context &&data)
 
double getDouble () const
 
long getLong () const
 
bool getBool () const
 
std::string getString () const
 
unsigned char * getDataPtr () const
 
void setString (const char *str)
 
void setString (const std::string &str)
 
void setLong (long val)
 
void setDouble (double val)
 
void setBool (bool val)
 
unsigned char * setDataPtr (void *ptr, int copy_sz=0)
 
unsigned char * setDataPtr (const void *ptr, int copy_sz)
 
bool isNone () const
 
bool isArray () const
 
bool isObject () const
 
bool isBool () const
 
bool isLong () const
 
bool isDouble () const
 
bool isString () const
 
bool isDataPtr () const
 
HContext * getHandle ()
 
const HContext * getHandle () const
 
void clear ()
 

Additional Inherited Members

- Public Types inherited from pbio::Context
typedef ContextRef Ref
 
- Protected Member Functions inherited from pbio::Context
 Context (const DHPtr &dll_handle)
 
 Context (const DHPtr &dll_handle, HContext *handle, bool weak=true)
 
void setValue (const char *str)
 
void setValue (const std::string &str)
 
template<typename T , typename = typename std::enable_if<std::is_enum<T>::value || std::is_integral<T>::value>::type>
void setValue (T val)
 
void setValue (double val)
 
void setValue (float val)
 
void setValue (bool val)
 
void setValue (void *ptr, int copy_sz=0)
 
- Protected Attributes inherited from pbio::Context
DHPtr dll_handle
 
HContext * handle_
 
bool weak_
 
ContextEH * eh_