lime
Lime is a C++ library implementing Open Whisper System Signal protocol
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
jni::Array< Object< TheTag > > Class Template Reference
Inheritance diagram for jni::Array< Object< TheTag > >:
jni::Object< ArrayTag< Object< TheTag > > > jni::Object< TheTag >

Public Types

using SuperType = Object< ArrayTag< Object< TheTag >> >
 
using UntaggedType = typename SuperType::UntaggedType
 
using TagType = TheTag
 
using ElementType = Object< TagType >
 
using UntaggedElementType = typename ElementType::UntaggedType
 
- Public Types inherited from jni::Object< ArrayTag< Object< TheTag > > >
using TagType = ArrayTag< Object< TheTag > >
 
using SuperType = typename TagTraits< ArrayTag< Object< TheTag > > >::SuperType
 
using UntaggedType = typename TagTraits< ArrayTag< Object< TheTag > > >::UntaggedType
 
- Public Types inherited from jni::Object< TheTag >
using TagType = TheTag
 
using SuperType = typename TagTraits< TheTag >::SuperType
 
using UntaggedType = typename TagTraits< TheTag >::UntaggedType
 

Public Member Functions

jsize Length (JNIEnv &env) const
 
Local< ElementTypeGet (JNIEnv &env, jsize index) const
 
void Set (JNIEnv &env, jsize index, const ElementType &value)
 
- Public Member Functions inherited from jni::Object< ArrayTag< Object< TheTag > > >
UntaggedTypeget () const
 
UntaggedTypeoperator* () const
 
auto Get (JNIEnv &env, const Field< TagType, T > &field) const -> std::enable_if_t< IsPrimitive< T >::value, T >
 
auto Get (JNIEnv &env, const Field< TagType, T > &field) const -> std::enable_if_t< !IsPrimitive< T >::value, Local< T > >
 
auto Set (JNIEnv &env, const Field< TagType, T > &field, T value) const -> std::enable_if_t< IsPrimitive< T >::value >
 
auto Set (JNIEnv &env, const Field< TagType, Expected > &field, const Actual &value) const -> std::enable_if_t< !IsPrimitive< Expected >::value &&std::is_convertible< const Actual &, const Expected & >::value >
 
auto Call (JNIEnv &env, const Method< TagType, R(ExpectedArgs...)> &method, const ActualArgs &...args) const -> std::enable_if_t< IsPrimitive< R >::value &&Conjunction< std::is_convertible< const ActualArgs &, const ExpectedArgs & >... >::value, R >
 
auto Call (JNIEnv &env, const Method< TagType, R(ExpectedArgs...)> &method, const ActualArgs &...args) const -> std::enable_if_t< !IsPrimitive< R >::value &&!std::is_void< R >::value &&Conjunction< std::is_convertible< const ActualArgs &, const ExpectedArgs & >... >::value, Local< R > >
 
auto Call (JNIEnv &env, const Method< TagType, void(ExpectedArgs...)> &method, const ActualArgs &...args) const -> std::enable_if_t< Conjunction< std::is_convertible< const ActualArgs &, const ExpectedArgs & >... >::value >
 
auto CallNonvirtual (JNIEnv &env, const Class< TagType > &clazz, const Method< TagType, R(ExpectedArgs...)> &method, const ActualArgs &...args) const -> std::enable_if_t< IsPrimitive< R >::value &&Conjunction< std::is_convertible< const ActualArgs &, const ExpectedArgs & >... >::value, R >
 
auto CallNonvirtual (JNIEnv &env, const Class< TagType > &clazz, const Method< TagType, R(ExpectedArgs...)> &method, const ActualArgs &...args) const -> std::enable_if_t< !IsPrimitive< R >::value &&!std::is_void< R >::value &&Conjunction< std::is_convertible< const ActualArgs &, const ExpectedArgs & >... >::value, Local< R > >
 
auto CallNonvirtual (JNIEnv &env, const Class< TagType > &clazz, const Method< TagType, void(ExpectedArgs...)> &method, const ActualArgs &...args) const -> std::enable_if_t< Conjunction< std::is_convertible< const ActualArgs &, const ExpectedArgs & >... >::value >
 
- Public Member Functions inherited from jni::Object< TheTag >
UntaggedTypeget () const
 
UntaggedTypeoperator* () const
 
template<class T >
auto Get (JNIEnv &env, const Field< TagType, T > &field) const -> std::enable_if_t< IsPrimitive< T >::value, T >
 
template<class T >
auto Get (JNIEnv &env, const Field< TagType, T > &field) const -> std::enable_if_t< !IsPrimitive< T >::value, Local< T > >
 
template<class T >
auto Set (JNIEnv &env, const Field< TagType, T > &field, T value) const -> std::enable_if_t< IsPrimitive< T >::value >
 
template<class Expected , class Actual >
auto Set (JNIEnv &env, const Field< TagType, Expected > &field, const Actual &value) const -> std::enable_if_t< !IsPrimitive< Expected >::value &&std::is_convertible< const Actual &, const Expected & >::value >
 
template<class R , class... ExpectedArgs, class... ActualArgs>
auto Call (JNIEnv &env, const Method< TagType, R(ExpectedArgs...)> &method, const ActualArgs &...args) const -> std::enable_if_t< IsPrimitive< R >::value &&Conjunction< std::is_convertible< const ActualArgs &, const ExpectedArgs & >... >::value, R >
 
template<class R , class... ExpectedArgs, class... ActualArgs>
auto Call (JNIEnv &env, const Method< TagType, R(ExpectedArgs...)> &method, const ActualArgs &...args) const -> std::enable_if_t< !IsPrimitive< R >::value &&!std::is_void< R >::value &&Conjunction< std::is_convertible< const ActualArgs &, const ExpectedArgs & >... >::value, Local< R > >
 
template<class... ExpectedArgs, class... ActualArgs>
auto Call (JNIEnv &env, const Method< TagType, void(ExpectedArgs...)> &method, const ActualArgs &...args) const -> std::enable_if_t< Conjunction< std::is_convertible< const ActualArgs &, const ExpectedArgs & >... >::value >
 
template<class R , class... ExpectedArgs, class... ActualArgs>
auto CallNonvirtual (JNIEnv &env, const Class< TagType > &clazz, const Method< TagType, R(ExpectedArgs...)> &method, const ActualArgs &...args) const -> std::enable_if_t< IsPrimitive< R >::value &&Conjunction< std::is_convertible< const ActualArgs &, const ExpectedArgs & >... >::value, R >
 
template<class R , class... ExpectedArgs, class... ActualArgs>
auto CallNonvirtual (JNIEnv &env, const Class< TagType > &clazz, const Method< TagType, R(ExpectedArgs...)> &method, const ActualArgs &...args) const -> std::enable_if_t< !IsPrimitive< R >::value &&!std::is_void< R >::value &&Conjunction< std::is_convertible< const ActualArgs &, const ExpectedArgs & >... >::value, Local< R > >
 
template<class... ExpectedArgs, class... ActualArgs>
auto CallNonvirtual (JNIEnv &env, const Class< TagType > &clazz, const Method< TagType, void(ExpectedArgs...)> &method, const ActualArgs &...args) const -> std::enable_if_t< Conjunction< std::is_convertible< const ActualArgs &, const ExpectedArgs & >... >::value >
 

Static Public Member Functions

static Local< Array< Object< TheTag > > > New (JNIEnv &env, jsize length, const Object< TheTag > *initialElement=nullptr)
 

Protected Member Functions

 Array (std::nullptr_t=nullptr)
 
 Array (UntaggedType *p)
 
 Array (const Array &)=delete
 
Arrayoperator= (const Array &)=delete
 
- Protected Member Functions inherited from jni::Object< ArrayTag< Object< TheTag > > >
 Object (std::nullptr_t=nullptr)
 
 Object (UntaggedType *p)
 
 Object (const Object &)=delete
 
Objectoperator= (const Object &)=delete
 
- Protected Member Functions inherited from jni::Object< TheTag >
 Object (std::nullptr_t=nullptr)
 
 Object (UntaggedType *p)
 
 Object (const Object &)=delete
 
Objectoperator= (const Object &)=delete
 

Member Typedef Documentation

template<class TheTag >
using jni::Array< Object< TheTag > >::ElementType = Object<TagType>
template<class TheTag >
using jni::Array< Object< TheTag > >::SuperType = Object< ArrayTag<Object<TheTag>> >
template<class TheTag >
using jni::Array< Object< TheTag > >::TagType = TheTag
template<class TheTag >
using jni::Array< Object< TheTag > >::UntaggedElementType = typename ElementType::UntaggedType
template<class TheTag >
using jni::Array< Object< TheTag > >::UntaggedType = typename SuperType::UntaggedType

Constructor & Destructor Documentation

template<class TheTag >
jni::Array< Object< TheTag > >::Array ( std::nullptr_t  = nullptr)
inlineexplicitprotected
template<class TheTag >
jni::Array< Object< TheTag > >::Array ( UntaggedType p)
inlineexplicitprotected
template<class TheTag >
jni::Array< Object< TheTag > >::Array ( const Array< Object< TheTag > > &  )
protecteddelete

Member Function Documentation

template<class TheTag >
Local<ElementType> jni::Array< Object< TheTag > >::Get ( JNIEnv &  env,
jsize  index 
) const
inline
template<class TheTag >
jsize jni::Array< Object< TheTag > >::Length ( JNIEnv &  env) const
inline
template<class TheTag >
static Local<Array<Object<TheTag> > > jni::Array< Object< TheTag > >::New ( JNIEnv &  env,
jsize  length,
const Object< TheTag > *  initialElement = nullptr 
)
inlinestatic
template<class TheTag >
Array& jni::Array< Object< TheTag > >::operator= ( const Array< Object< TheTag > > &  )
protecteddelete
template<class TheTag >
void jni::Array< Object< TheTag > >::Set ( JNIEnv &  env,
jsize  index,
const ElementType value 
)
inline

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