\doxysection{py\+::Object Class Reference}
\hypertarget{classpy_1_1Object}{}\label{classpy_1_1Object}\index{py::Object@{py::Object}}


NOTE\+: This does not do any automatic reference counting.  




{\ttfamily \#include $<$Py\+Object.\+hpp$>$}

\doxysubsubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{classpy_1_1Object_abf636aa7423b8e83b22ad23979ad4735}\label{classpy_1_1Object_abf636aa7423b8e83b22ad23979ad4735} 
{\bfseries Object} (Py\+Object \texorpdfstring{$\ast$}{*}py)
\item 
\Hypertarget{classpy_1_1Object_a4e58bd5602842f5912102f0ef19c53ad}\label{classpy_1_1Object_a4e58bd5602842f5912102f0ef19c53ad} 
{\bfseries Object} (bool)
\item 
\Hypertarget{classpy_1_1Object_ad18f009fb88cc839825f6d95519c415e}\label{classpy_1_1Object_ad18f009fb88cc839825f6d95519c415e} 
{\bfseries Object} (double)
\item 
\Hypertarget{classpy_1_1Object_aacf857d99032002a07381ec9601cdbf3}\label{classpy_1_1Object_aacf857d99032002a07381ec9601cdbf3} 
{\bfseries Object} (long)
\item 
\Hypertarget{classpy_1_1Object_ac95ca652cdeca25a759469571d10cfb7}\label{classpy_1_1Object_ac95ca652cdeca25a759469571d10cfb7} 
{\bfseries Object} (const char \texorpdfstring{$\ast$}{*})
\item 
\Hypertarget{classpy_1_1Object_aeb6e04ab8f9ced6633e9a76597cca6d0}\label{classpy_1_1Object_aeb6e04ab8f9ced6633e9a76597cca6d0} 
{\bfseries Object} (const std\+::string \&)
\item 
\Hypertarget{classpy_1_1Object_a3c05643ba3bb1059dc7cb21112d72476}\label{classpy_1_1Object_a3c05643ba3bb1059dc7cb21112d72476} 
{\bfseries Object} (const Point\+\_\+2 \&)
\item 
\Hypertarget{classpy_1_1Object_ac07e2f2ee9411d87343436efdc1e0952}\label{classpy_1_1Object_ac07e2f2ee9411d87343436efdc1e0952} 
{\bfseries Object} (const \mbox{\hyperlink{classPoint__25}{Point\+\_\+25}} \&)
\item 
\Hypertarget{classpy_1_1Object_a498ae8e0722e4630fe35382cbeb0e954}\label{classpy_1_1Object_a498ae8e0722e4630fe35382cbeb0e954} 
{\bfseries Object} (const \mbox{\hyperlink{classIPoint__3}{IPoint\+\_\+3}} \&)
\item 
\Hypertarget{classpy_1_1Object_a363f7271effb9907ad0223961e04986a}\label{classpy_1_1Object_a363f7271effb9907ad0223961e04986a} 
{\bfseries Object} (const Bbox\+\_\+2 \&)
\item 
\Hypertarget{classpy_1_1Object_a3bb3f0fba7533fd930dc30af461b1eaf}\label{classpy_1_1Object_a3bb3f0fba7533fd930dc30af461b1eaf} 
const \mbox{\hyperlink{classObject}{Object}} \& {\bfseries inc\+Ref} () const
\item 
\Hypertarget{classpy_1_1Object_a490610234695b15b6eb16a4f36992558}\label{classpy_1_1Object_a490610234695b15b6eb16a4f36992558} 
const \mbox{\hyperlink{classObject}{Object}} \& {\bfseries dec\+Ref} () const
\item 
\Hypertarget{classpy_1_1Object_a588063685d146f1dff49478b0973ad0b}\label{classpy_1_1Object_a588063685d146f1dff49478b0973ad0b} 
Py\+Object \texorpdfstring{$\ast$}{*}\texorpdfstring{$\ast$}{*} {\bfseries o} ()
\item 
\Hypertarget{classpy_1_1Object_a3dddf16bbc8387b994cbe0c42f90c5c0}\label{classpy_1_1Object_a3dddf16bbc8387b994cbe0c42f90c5c0} 
Py\+Object \texorpdfstring{$\ast$}{*} {\bfseries operator\texorpdfstring{$\ast$}{*}} () const
\item 
\Hypertarget{classpy_1_1Object_ae8e4bd12542d4c7de2910699578028e9}\label{classpy_1_1Object_ae8e4bd12542d4c7de2910699578028e9} 
\mbox{\hyperlink{classObject}{Object}} {\bfseries at} (uint i) const
\item 
\Hypertarget{classpy_1_1Object_a4b30677e84ba3d1c83048a3fd7f7425a}\label{classpy_1_1Object_a4b30677e84ba3d1c83048a3fd7f7425a} 
\mbox{\hyperlink{classObject}{Object}} {\bfseries elem} (uint i, const char \texorpdfstring{$\ast$}{*}err=0) const
\item 
\Hypertarget{classpy_1_1Object_ac77d77b8c2721c12757d97c932b14974}\label{classpy_1_1Object_ac77d77b8c2721c12757d97c932b14974} 
\mbox{\hyperlink{classObject}{Object}} {\bfseries item} (uint i) const
\item 
\Hypertarget{classpy_1_1Object_a3c2832836dcf5788f7b61bfd09d95052}\label{classpy_1_1Object_a3c2832836dcf5788f7b61bfd09d95052} 
\mbox{\hyperlink{classObject}{Object}} {\bfseries item} (const char \texorpdfstring{$\ast$}{*}name) const
\item 
\Hypertarget{classpy_1_1Object_a608144ee42a2c4db6d1b609e19c1898a}\label{classpy_1_1Object_a608144ee42a2c4db6d1b609e19c1898a} 
void {\bfseries set\+Elem} (uint i, const \mbox{\hyperlink{classObject}{Object}} \&) const
\item 
\Hypertarget{classpy_1_1Object_a4ca1db25c0a6f200d0fd14c5b110fb00}\label{classpy_1_1Object_a4ca1db25c0a6f200d0fd14c5b110fb00} 
void {\bfseries set\+Elem} (uint i, Py\+Object \texorpdfstring{$\ast$}{*}) const
\item 
\Hypertarget{classpy_1_1Object_ad45549e78a8c06eb32889bea218e6b0f}\label{classpy_1_1Object_ad45549e78a8c06eb32889bea218e6b0f} 
void {\bfseries set\+Item} (uint i, const \mbox{\hyperlink{classObject}{Object}} \&) const
\item 
\Hypertarget{classpy_1_1Object_a00a831509f88b78c0339958650127a92}\label{classpy_1_1Object_a00a831509f88b78c0339958650127a92} 
void {\bfseries set\+Item} (uint i, Py\+Object \texorpdfstring{$\ast$}{*}) const
\item 
\Hypertarget{classpy_1_1Object_acda413406deaa2de784f5f517f872c2a}\label{classpy_1_1Object_acda413406deaa2de784f5f517f872c2a} 
void {\bfseries set\+Dict\+Item} (uint i, Py\+Object \texorpdfstring{$\ast$}{*}) const
\item 
\Hypertarget{classpy_1_1Object_add1333ba631008ee8f889b1f84a85868}\label{classpy_1_1Object_add1333ba631008ee8f889b1f84a85868} 
void {\bfseries set\+Item} (const char \texorpdfstring{$\ast$}{*}name, const \mbox{\hyperlink{classObject}{Object}} \&) const
\item 
\Hypertarget{classpy_1_1Object_a1ab7d8ff070064b3bc4ee51d2c3f5d18}\label{classpy_1_1Object_a1ab7d8ff070064b3bc4ee51d2c3f5d18} 
void {\bfseries ref\+Item} (const char \texorpdfstring{$\ast$}{*}name, const \mbox{\hyperlink{classObject}{Object}} \&) const
\item 
\Hypertarget{classpy_1_1Object_a340525a85d29a613b6e074803ed42fdf}\label{classpy_1_1Object_a340525a85d29a613b6e074803ed42fdf} 
void {\bfseries set\+Item} (const char \texorpdfstring{$\ast$}{*}name, Py\+Object \texorpdfstring{$\ast$}{*}) const
\item 
\Hypertarget{classpy_1_1Object_a82ac88486d1348020ce0d89cb2e7fc27}\label{classpy_1_1Object_a82ac88486d1348020ce0d89cb2e7fc27} 
void {\bfseries ref\+Item} (const char \texorpdfstring{$\ast$}{*}name, Py\+Object \texorpdfstring{$\ast$}{*}) const
\item 
\Hypertarget{classpy_1_1Object_a607691fe898222548e3ffec5cf035e86}\label{classpy_1_1Object_a607691fe898222548e3ffec5cf035e86} 
bool {\bfseries is\+None} () const
\item 
\Hypertarget{classpy_1_1Object_a4226df2bfa8ad417756cf496e863b900}\label{classpy_1_1Object_a4226df2bfa8ad417756cf496e863b900} 
bool {\bfseries is\+Dict} () const
\item 
\Hypertarget{classpy_1_1Object_aba97a0da408ac92291e755b9d0bd46be}\label{classpy_1_1Object_aba97a0da408ac92291e755b9d0bd46be} 
bool {\bfseries is\+List} () const
\item 
\Hypertarget{classpy_1_1Object_a03decf1dc46a0945d1268969c86f39c3}\label{classpy_1_1Object_a03decf1dc46a0945d1268969c86f39c3} 
bool {\bfseries is\+List} (uint n) const
\item 
\Hypertarget{classpy_1_1Object_ae67e56d8f6e04b262c7ea36708afeaf6}\label{classpy_1_1Object_ae67e56d8f6e04b262c7ea36708afeaf6} 
bool {\bfseries has\+List\+Item} (uint i) const
\item 
\Hypertarget{classpy_1_1Object_a446b6636c901526b701280cbd1bf977f}\label{classpy_1_1Object_a446b6636c901526b701280cbd1bf977f} 
bool {\bfseries is\+Tuple} () const
\item 
\Hypertarget{classpy_1_1Object_aadc7fd92619ed35723563d234bbb9412}\label{classpy_1_1Object_aadc7fd92619ed35723563d234bbb9412} 
bool {\bfseries is\+Tuple} (uint n) const
\item 
\Hypertarget{classpy_1_1Object_aae1e003b2118817f0c10dc03418e09c5}\label{classpy_1_1Object_aae1e003b2118817f0c10dc03418e09c5} 
bool {\bfseries has\+Tuple\+Elem} (uint i) const
\item 
\Hypertarget{classpy_1_1Object_aea107e6bdd08ed5b3bda5d9d6339e60d}\label{classpy_1_1Object_aea107e6bdd08ed5b3bda5d9d6339e60d} 
bool {\bfseries is\+Tuple\+Or\+List} (uint n) const
\item 
\Hypertarget{classpy_1_1Object_a071bc54e9c47e54d68584cd103a36355}\label{classpy_1_1Object_a071bc54e9c47e54d68584cd103a36355} 
uint {\bfseries list\+Size} (const char \texorpdfstring{$\ast$}{*}err="{}object is not a list"{}) const
\item 
\Hypertarget{classpy_1_1Object_afa50353bfcb917299d5ecddfae34adf6}\label{classpy_1_1Object_afa50353bfcb917299d5ecddfae34adf6} 
{\footnotesize template$<$typename T$>$ }\\T {\bfseries as\+Integer\+Container} () const
\item 
\Hypertarget{classpy_1_1Object_aa29a2325ea5efca21a479d78319ad5bc}\label{classpy_1_1Object_aa29a2325ea5efca21a479d78319ad5bc} 
{\footnotesize template$<$typename T$>$ }\\T {\bfseries as\+String\+Container} () const
\item 
\Hypertarget{classpy_1_1Object_ae2e1551aeff9e9c46e71242353489bd4}\label{classpy_1_1Object_ae2e1551aeff9e9c46e71242353489bd4} 
{\bfseries operator bool} () const
\item 
\Hypertarget{classpy_1_1Object_ac0dc3a84abbbf957b0ea123a5e651b9b}\label{classpy_1_1Object_ac0dc3a84abbbf957b0ea123a5e651b9b} 
{\footnotesize template$<$typename T, typename = std\+::enable\+\_\+if\+\_\+t$<$std\+::is\+\_\+integral\+\_\+v$<$\+T$>$$>$$>$ }\\{\bfseries operator T} () const =delete
\item 
\Hypertarget{classpy_1_1Object_a37f3e570b6fa41b8961383bfaa2d0acb}\label{classpy_1_1Object_a37f3e570b6fa41b8961383bfaa2d0acb} 
bool {\bfseries is\+Bool} () const
\item 
\Hypertarget{classpy_1_1Object_a8b54e082f23808225427d3f792c33a39}\label{classpy_1_1Object_a8b54e082f23808225427d3f792c33a39} 
bool {\bfseries is\+Bool} (bool value) const
\item 
\Hypertarget{classpy_1_1Object_acd7ad8862b455edab4e2dc5ec5ab4cba}\label{classpy_1_1Object_acd7ad8862b455edab4e2dc5ec5ab4cba} 
bool {\bfseries is\+Float} () const
\item 
\Hypertarget{classpy_1_1Object_a0b3c04c3268a93badea7077ed3ec6b05}\label{classpy_1_1Object_a0b3c04c3268a93badea7077ed3ec6b05} 
bool {\bfseries is\+Long} () const
\item 
\Hypertarget{classpy_1_1Object_ad2c7b93ff7bdda80188428bf3d7bd853}\label{classpy_1_1Object_ad2c7b93ff7bdda80188428bf3d7bd853} 
bool {\bfseries is\+Number} () const
\item 
\Hypertarget{classpy_1_1Object_aa3ea5e7b40889c9332e5696584b867f2}\label{classpy_1_1Object_aa3ea5e7b40889c9332e5696584b867f2} 
bool {\bfseries as\+Bool} (const char \texorpdfstring{$\ast$}{*}err="{}object is not a boolean"{}) const
\item 
\Hypertarget{classpy_1_1Object_a6a0849ffd999dd02aa1f69ee3d65262a}\label{classpy_1_1Object_a6a0849ffd999dd02aa1f69ee3d65262a} 
bool {\bfseries to\+Bool} () const
\item 
\Hypertarget{classpy_1_1Object_a6badbebc3a646d7635911961dda92b93}\label{classpy_1_1Object_a6badbebc3a646d7635911961dda92b93} 
double {\bfseries as\+Double} (const char \texorpdfstring{$\ast$}{*}err="{}object is not a float"{}) const
\item 
\Hypertarget{classpy_1_1Object_a0c5b7fa82b38ed314ccdf6fee7003711}\label{classpy_1_1Object_a0c5b7fa82b38ed314ccdf6fee7003711} 
double {\bfseries to\+Double} (const char \texorpdfstring{$\ast$}{*}err="{}object is not a number"{}) const
\item 
\Hypertarget{classpy_1_1Object_a0a99644d4e793b540f0b4e43b1a1b9d0}\label{classpy_1_1Object_a0a99644d4e793b540f0b4e43b1a1b9d0} 
long {\bfseries as\+Long} () const
\item 
\Hypertarget{classpy_1_1Object_a47af6e4d3636980571a497b3092dd3b5}\label{classpy_1_1Object_a47af6e4d3636980571a497b3092dd3b5} 
long {\bfseries to\+Long} (const char \texorpdfstring{$\ast$}{*}err="{}object is not a number"{}) const
\item 
\Hypertarget{classpy_1_1Object_ab282a0e95616f1f13eb205d14c33ad5f}\label{classpy_1_1Object_ab282a0e95616f1f13eb205d14c33ad5f} 
bool {\bfseries is\+String} () const
\item 
\Hypertarget{classpy_1_1Object_a9888642d247b8d38f90533362a65c4b7}\label{classpy_1_1Object_a9888642d247b8d38f90533362a65c4b7} 
std\+::string {\bfseries as\+String} (const char \texorpdfstring{$\ast$}{*}err="{}object is not a string"{}) const
\item 
\Hypertarget{classpy_1_1Object_a33237e0ad0adceb2ab65044e71fae632}\label{classpy_1_1Object_a33237e0ad0adceb2ab65044e71fae632} 
std\+::string {\bfseries to\+String} () const
\item 
\Hypertarget{classpy_1_1Object_a5493b646adcbf882e1a2ad32dd18ab66}\label{classpy_1_1Object_a5493b646adcbf882e1a2ad32dd18ab66} 
std\+::string\+\_\+view {\bfseries as\+String\+View} (const char \texorpdfstring{$\ast$}{*}err="{}object is not a string"{}) const
\item 
\Hypertarget{classpy_1_1Object_a8bc95522e152a5c172c3ee43e1123533}\label{classpy_1_1Object_a8bc95522e152a5c172c3ee43e1123533} 
bool {\bfseries is\+Vector} (uint n) const
\item 
\Hypertarget{classpy_1_1Object_a66856d17152e5d62a8a45d7426ce7737}\label{classpy_1_1Object_a66856d17152e5d62a8a45d7426ce7737} 
bool {\bfseries is\+Long\+Vector} (uint n) const
\item 
\Hypertarget{classpy_1_1Object_a2dbdc23fbaf7644336f9726d8dd3dcde}\label{classpy_1_1Object_a2dbdc23fbaf7644336f9726d8dd3dcde} 
bool {\bfseries is\+Point\+\_\+25} () const
\item 
\Hypertarget{classpy_1_1Object_a3d65a3b19e17f2fdff999b7d9358f57e}\label{classpy_1_1Object_a3d65a3b19e17f2fdff999b7d9358f57e} 
\mbox{\hyperlink{classIPoint__2}{IPoint\+\_\+2}} {\bfseries as\+IPoint\+\_\+2} (const char \texorpdfstring{$\ast$}{*}err="{}object is not a 2D integer point"{}) const
\item 
\Hypertarget{classpy_1_1Object_aa260e22a0ad64d8b18f3beafcc8c9dd6}\label{classpy_1_1Object_aa260e22a0ad64d8b18f3beafcc8c9dd6} 
\mbox{\hyperlink{classIPoint__3}{IPoint\+\_\+3}} {\bfseries as\+IPoint\+\_\+3} (const char \texorpdfstring{$\ast$}{*}err="{}object is not a 3D integer point"{}) const
\item 
\Hypertarget{classpy_1_1Object_a297d23aa367cb295c830d9023de8280c}\label{classpy_1_1Object_a297d23aa367cb295c830d9023de8280c} 
\mbox{\hyperlink{classIVector__2}{IVector\+\_\+2}} {\bfseries as\+IVector\+\_\+2} (const char \texorpdfstring{$\ast$}{*}err="{}object is not a 2D integer vector"{}) const
\item 
\Hypertarget{classpy_1_1Object_aac97e504db238a8238f15f4162e465ad}\label{classpy_1_1Object_aac97e504db238a8238f15f4162e465ad} 
\mbox{\hyperlink{classIVector__3}{IVector\+\_\+3}} {\bfseries as\+IVector\+\_\+3} (const char \texorpdfstring{$\ast$}{*}err="{}object is not a 3D integer vector"{}) const
\item 
\Hypertarget{classpy_1_1Object_a2fd765204828da80f5b0a36ce618b8a6}\label{classpy_1_1Object_a2fd765204828da80f5b0a36ce618b8a6} 
Vector\+\_\+2 {\bfseries as\+Vector\+\_\+2} (const char \texorpdfstring{$\ast$}{*}err="{}object is not a 2D vector"{}) const
\item 
\Hypertarget{classpy_1_1Object_a1444915876fb4d424f21cd9bcc110cba}\label{classpy_1_1Object_a1444915876fb4d424f21cd9bcc110cba} 
Point\+\_\+2 {\bfseries as\+Point\+\_\+2} (const char \texorpdfstring{$\ast$}{*}err="{}object is not a 2D point"{}) const
\item 
\Hypertarget{classpy_1_1Object_a9f7f9be5dcfdfd92de45c4e730c3fbc3}\label{classpy_1_1Object_a9f7f9be5dcfdfd92de45c4e730c3fbc3} 
\mbox{\hyperlink{classPoint__25}{Point\+\_\+25}} {\bfseries as\+Point\+\_\+25} (const char \texorpdfstring{$\ast$}{*}err="{}object is not a 2.\+5D point"{}) const
\item 
\Hypertarget{classpy_1_1Object_a81b0e2a33b998b418cef3a2eae115086}\label{classpy_1_1Object_a81b0e2a33b998b418cef3a2eae115086} 
\+::\+Bbox\+\_\+2 {\bfseries as\+Bbox\+\_\+2} () const
\item 
\Hypertarget{classpy_1_1Object_a26c81735d57c26b35cf9b1ab7c963ed6}\label{classpy_1_1Object_a26c81735d57c26b35cf9b1ab7c963ed6} 
\mbox{\hyperlink{structIBox__3}{\+::\+IBox\+\_\+3}} {\bfseries as\+IBox\+\_\+3} () const
\item 
\Hypertarget{classpy_1_1Object_aed02772ae1845dc3b0792a16bd26f06a}\label{classpy_1_1Object_aed02772ae1845dc3b0792a16bd26f06a} 
uint64\+\_\+t {\bfseries as\+Bitmask} (uint size) const
\item 
\Hypertarget{classpy_1_1Object_abbd5d5cb6feadd8535f03008120ebfe5}\label{classpy_1_1Object_abbd5d5cb6feadd8535f03008120ebfe5} 
{\footnotesize template$<$typename T$>$ }\\\mbox{\hyperlink{classObject}{Object}} {\bfseries new\+\_\+\+List\+From} (const std\+::vector$<$ T $>$ \&data, auto \&\&... args)
\end{DoxyCompactItemize}
\doxysubsubsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{classpy_1_1Object_ac8be7c6bb5d9f7df2a0d4e0131a2621a}\label{classpy_1_1Object_ac8be7c6bb5d9f7df2a0d4e0131a2621a} 
static \mbox{\hyperlink{classObject}{Object}} {\bfseries new\+\_\+\+List} (uint n, Py\+Object \texorpdfstring{$\ast$}{*}v=0)
\item 
\Hypertarget{classpy_1_1Object_aae1c833e91a965a3964faa30f33f7067}\label{classpy_1_1Object_aae1c833e91a965a3964faa30f33f7067} 
static \mbox{\hyperlink{classObject}{Object}} {\bfseries new\+\_\+\+Tuple\+Of\+Longs} (const \mbox{\hyperlink{classPoint__25}{Point\+\_\+25}} \&v, Real s)
\item 
\Hypertarget{classpy_1_1Object_a81a521cfc5811bea7ae55ce1f0abc4f1}\label{classpy_1_1Object_a81a521cfc5811bea7ae55ce1f0abc4f1} 
{\footnotesize template$<$typename T$>$ }\\static \mbox{\hyperlink{classObject}{Object}} {\bfseries new\+\_\+\+Tuple\+Of\+Longs} (const T \texorpdfstring{$\ast$}{*}, uint size)
\item 
\Hypertarget{classpy_1_1Object_ad5dcfd98bb3dcf19aac09f64c86289e5}\label{classpy_1_1Object_ad5dcfd98bb3dcf19aac09f64c86289e5} 
{\footnotesize template$<$typename T$>$ }\\static \mbox{\hyperlink{classObject}{Object}} {\bfseries new\+\_\+\+List\+From} (const std\+::vector$<$ T $>$ \&, auto \&\&...)
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
NOTE\+: This does not do any automatic reference counting. 

The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
/home/chr/devel/\+Ph\+D/\+Environment/pub/\+PCBEnv/pcbenv/cxx/Py\+Object.\+hpp\end{DoxyCompactItemize}
