cppyabm  1.0.17
An agent-based library to integrate C++ and Python
Public Member Functions | Public Attributes | List of all members
accessor< Policy > Class Template Reference

#include <pytypes.h>

Public Member Functions

 accessor (handle obj, key_type key)
 
 accessor (const accessor &)=default
 
 accessor (accessor &&)=default
 
void operator= (const accessor &a) &&
 
void operator= (const accessor &a) &
 
template<typename T >
void operator= (T &&value) &&
 
template<typename T >
void operator= (T &&value) &
 

Public Attributes

template<typename T = Policy>
PYBIND11_DEPRECATED("Use of obj.attr(...) as bool is deprecated in favor of pybind11::hasattr(obj, ...)") explicit operator enable_if_t< std key_type key
 
object cache
 

Detailed Description

template<typename Policy>
class accessor< Policy >

Definition at line 493 of file pytypes.h.

Constructor & Destructor Documentation

◆ accessor() [1/3]

template<typename Policy >
accessor< Policy >::accessor ( handle  obj,
key_type  key 
)
inline

Definition at line 497 of file pytypes.h.

◆ accessor() [2/3]

template<typename Policy >
accessor< Policy >::accessor ( const accessor< Policy > &  )
default

◆ accessor() [3/3]

template<typename Policy >
accessor< Policy >::accessor ( accessor< Policy > &&  )
default

Member Function Documentation

◆ operator=() [1/4]

template<typename Policy >
void accessor< Policy >::operator= ( const accessor< Policy > &  a) &
inline

Definition at line 504 of file pytypes.h.

◆ operator=() [2/4]

template<typename Policy >
void accessor< Policy >::operator= ( const accessor< Policy > &  a) &&
inline

Definition at line 503 of file pytypes.h.

◆ operator=() [3/4]

template<typename Policy >
template<typename T >
void accessor< Policy >::operator= ( T &&  value) &
inline

Definition at line 509 of file pytypes.h.

◆ operator=() [4/4]

template<typename Policy >
template<typename T >
void accessor< Policy >::operator= ( T &&  value) &&
inline

Definition at line 506 of file pytypes.h.

Member Data Documentation

◆ cache

template<typename Policy >
object accessor< Policy >::cache
mutable

Definition at line 538 of file pytypes.h.

◆ key

template<typename Policy >
template<typename T = Policy>
PYBIND11_DEPRECATED ("Use of obj.attr(...) as bool is deprecated in favor of pybind11::hasattr(obj, ...)") explicit operator enable_if_t<std key_type accessor< Policy >::key

Definition at line 537 of file pytypes.h.


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