NCBI C++ ToolKit
|
Search Toolkit Book for pythonpp::CObject
#include "pythonpp_object.hpp"
(Private to src/dbapi/lang_bind/python/pythonpp
.)
Protected Member Functions | |
bool | IsNumeric (void) const |
bool | IsSequence (void) const |
bool | IsTrue (void) const |
bool | IsObjectType (const CType &t) const |
Private Attributes | |
PyObject * | m_PyObject |
Definition at line 76 of file pythonpp_object.hpp.
|
inline |
* Generic operations on objects */
* A slot function whose address we need to compare */ Creates a python None object
Definition at line 108 of file pythonpp_object.hpp.
References Get(), and pythonpp::IncRefCount().
Referenced by pythonpp::CCalable::Apply(), GetAttr(), GetItem(), pythonpp::CDict::GetItem(), pythonpp::CList::GetItem(), and pythonpp::CTuple::GetItem().
|
inlineexplicit |
Definition at line 114 of file pythonpp_object.hpp.
References _ASSERT, pythonpp::eAcquireOwnership, Get(), and pythonpp::IncRefCount().
Definition at line 123 of file pythonpp_object.hpp.
References _ASSERT, Get(), and pythonpp::IncRefCount().
|
inline |
Definition at line 130 of file pythonpp_object.hpp.
References Release().
|
inline |
Definition at line 200 of file pythonpp_object.hpp.
References Get().
Definition at line 229 of file pythonpp_object.hpp.
References Get(), and ncbi::grid::netcache::search::fields::key.
|
inline |
Definition at line 158 of file pythonpp_object.hpp.
References m_PyObject.
Referenced by pythonpp::CList::Append(), pythonpp::CCalable::Apply(), pythonpp::CString::AsStdSring(), pythonpp::CBinary::AsStdSring(), pythonpp::CList::Clear(), pythonpp::CList::CList(), CObject(), pythonpp::CSequnceHelper< T >::Concat(), python::ConvertCVariant2PCObject(), CPythonDiagHandler::CPythonDiagHandler(), pythonpp::CTuple::CTuple(), DelAttr(), DelItem(), pythonpp::CDict::DelItem(), pythonpp::CDictHelper< T >::DelItem(), GetAttr(), python::CCursor::GetCVariant(), pythonpp::CDate::GetDay(), pythonpp::CModule::GetDict(), pythonpp::CModule::GetFileName(), GetHashValue(), pythonpp::CTime::GetHour(), pythonpp::CDateTime::GetHour(), pythonpp::CComplex::GetImag(), GetItem(), pythonpp::CDictHelper< T >::GetItem(), pythonpp::CDict::GetItem(), pythonpp::CSequnceHelper< T >::GetItem(), pythonpp::CList::GetItem(), pythonpp::CTuple::GetItem(), pythonpp::CList::GetItemFast(), pythonpp::CTuple::GetItemFast(), pythonpp::CDictHelper< T >::GetLength(), pythonpp::CSequnceHelper< T >::GetLength(), pythonpp::CTime::GetMicroSecond(), pythonpp::CDateTime::GetMicroSecond(), pythonpp::CTime::GetMinute(), pythonpp::CDateTime::GetMinute(), pythonpp::CDate::GetMonth(), pythonpp::CModule::GetName(), pythonpp::CComplex::GetReal(), pythonpp::CTime::GetSecond(), pythonpp::CDateTime::GetSecond(), pythonpp::CString::GetSize(), pythonpp::CBinary::GetSize(), pythonpp::CTuple::GetSlice(), pythonpp::CList::GetSlice(), GetType(), pythonpp::CDate::GetYear(), HasAttr(), pythonpp::CDictHelper< T >::HasKey(), pythonpp::CList::Insert(), IsNumeric(), IsObjectType(), IsSequence(), IsTrue(), pythonpp::CDictHelper< T >::Items(), pythonpp::CDict::Items(), pythonpp::CDictHelper< T >::Keys(), pythonpp::CDict::Keys(), pythonpp::CDict::Merge(), pythonpp::CBool::operator bool(), pythonpp::CLong::operator double(), pythonpp::CFloat::operator double(), pythonpp::CComplex::operator double(), pythonpp::CInt::operator long(), pythonpp::CLong::operator long(), pythonpp::CLong::operator long long(), pythonpp::CLong::operator unsigned long(), pythonpp::CLong::operator unsigned long long(), operator!=(), operator<(), operator<=(), pythonpp::CDict::operator=(), pythonpp::CCalable::operator=(), operator=(), pythonpp::CType::operator=(), pythonpp::CBool::operator=(), pythonpp::CInt::operator=(), pythonpp::CLong::operator=(), pythonpp::CFloat::operator=(), pythonpp::CComplex::operator=(), pythonpp::CString::operator=(), pythonpp::CBinary::operator=(), pythonpp::CTuple::operator=(), pythonpp::CList::operator=(), pythonpp::CDictHelper< T >::operator=(), operator==(), pythonpp::operator==(), operator>(), operator>=(), python::ReleaseGlobalLock(), pythonpp::CSequnceHelper< T >::Repeat(), python::ReturnStrsAsUnicode(), pythonpp::CList::Reverse(), pythonpp::CExtObject< CCursor >::ROAttr(), python::s_IsOutputExpected(), SetAttr(), pythonpp::CDictHelper< T >::SetItem(), pythonpp::CDict::SetItem(), pythonpp::CSequnceHelper< T >::SetItem(), pythonpp::CTuple::SetItem(), pythonpp::CList::SetItem(), pythonpp::CTuple::SetItemFast(), pythonpp::CList::SetItemFast(), CPythonDiagHandler::SetLogger(), pythonpp::CList::SetSlice(), pythonpp::CDictHelper< T >::size(), pythonpp::CSequnceHelper< T >::size(), pythonpp::CDict::size(), pythonpp::CTuple::size(), pythonpp::CList::size(), pythonpp::CList::Sort(), pythonpp::CDictHelper< T >::Values(), pythonpp::CDict::Values(), and python::x_GetUTCOffset().
|
inline |
Definition at line 186 of file pythonpp_object.hpp.
References CObject(), pythonpp::eTakeOwnership, and Get().
Referenced by CPythonDiagHandler::CPythonDiagHandler(), and python::x_GetUTCOffset().
|
inline |
Definition at line 237 of file pythonpp_object.hpp.
References Get(), and rapidjson::value.
Definition at line 213 of file pythonpp_object.hpp.
References CObject(), pythonpp::eTakeOwnership, Get(), and ncbi::grid::netcache::search::fields::key.
|
inline |
Definition at line 252 of file pythonpp_object.hpp.
References m_PyObject.
Referenced by pythonpp::operator==(), and CPythonDiagHandler::SetLogger().
|
inline |
Definition at line 527 of file pythonpp_object.hpp.
References pythonpp::eTakeOwnership, and Get().
Referenced by IsObjectType().
|
inline |
Definition at line 206 of file pythonpp_object.hpp.
References Get().
|
inlineprotected |
Definition at line 306 of file pythonpp_object.hpp.
References Get().
Definition at line 572 of file pythonpp_object.hpp.
|
inlineprotected |
Definition at line 310 of file pythonpp_object.hpp.
References Get().
|
inlineprotected |
Definition at line 314 of file pythonpp_object.hpp.
References Get().
|
inline |
Definition at line 154 of file pythonpp_object.hpp.
References m_PyObject.
Definition at line 269 of file pythonpp_object.hpp.
References pythonpp::CError::Check(), pythonpp::eTakeOwnership, Get(), and result.
Definition at line 290 of file pythonpp_object.hpp.
References pythonpp::CError::Check(), pythonpp::eTakeOwnership, Get(), and result.
Definition at line 283 of file pythonpp_object.hpp.
References pythonpp::CError::Check(), pythonpp::eTakeOwnership, Get(), and result.
Definition at line 135 of file pythonpp_object.hpp.
References Set().
|
inline |
Definition at line 144 of file pythonpp_object.hpp.
Definition at line 262 of file pythonpp_object.hpp.
References pythonpp::CError::Check(), pythonpp::eTakeOwnership, Get(), and result.
Definition at line 297 of file pythonpp_object.hpp.
References pythonpp::CError::Check(), pythonpp::eTakeOwnership, Get(), and result.
Definition at line 276 of file pythonpp_object.hpp.
References pythonpp::CError::Check(), pythonpp::eTakeOwnership, Get(), and result.
|
inline |
Definition at line 174 of file pythonpp_object.hpp.
References pythonpp::g_CleaningUp, m_PyObject, and NULL.
Referenced by Set(), and ~CObject().
|
inline |
Not exception-safe this time.
Definition at line 163 of file pythonpp_object.hpp.
References _ASSERT, pythonpp::eAcquireOwnership, pythonpp::IncRefCount(), m_PyObject, and Release().
Referenced by python::CCursor::callproc(), pythonpp::CBinary::CBinary(), pythonpp::CBool::CBool(), pythonpp::CCalable::CCalable(), pythonpp::CComplex::CComplex(), pythonpp::CDateTime::CDateTime(), pythonpp::CDict::CDict(), pythonpp::CFloat::CFloat(), pythonpp::CInt::CInt(), pythonpp::CList::Clear(), pythonpp::CLong::CLong(), pythonpp::CString::CString(), pythonpp::CTime::CTime(), pythonpp::CNone::operator=(), pythonpp::CDict::operator=(), pythonpp::CCalable::operator=(), operator=(), pythonpp::CType::operator=(), pythonpp::CBool::operator=(), pythonpp::CInt::operator=(), pythonpp::CLong::operator=(), pythonpp::CFloat::operator=(), pythonpp::CComplex::operator=(), pythonpp::CString::operator=(), pythonpp::CBinary::operator=(), pythonpp::CTuple::operator=(), pythonpp::CList::operator=(), and pythonpp::CDictHelper< T >::operator=().
|
inline |
Definition at line 194 of file pythonpp_object.hpp.
References Get(), and rapidjson::value.
|
private |
Definition at line 321 of file pythonpp_object.hpp.
Referenced by Get(), GetObjType(), operator PyObject *(), Release(), and Set().