Jpp  master_rocky-37-gf0c5bc59d
the software that should make you happy
Public Types | Public Member Functions | Static Protected Attributes | List of all members
JLANG::JStatic< T *, N > Struct Template Reference

Template specialisation of JStatic for static member declaration of pointer. More...

#include <JStatic.hh>

Inheritance diagram for JLANG::JStatic< T *, N >:
JLANG::JEquals< JStatic< T *, N >, T * >

Public Types

typedef JClass< T * >::argument_type argument_type
 

Public Member Functions

JStaticoperator= (argument_type value)
 Assignment operator. More...
 
const T * operator-> () const
 Smart pointer. More...
 
T * operator-> ()
 Smart pointer. More...
 
bool equals (const JStatic &object) const
 Equals method. More...
 
bool equals (argument_type value) const
 Equals method. More...
 

Static Protected Attributes

static T * value
 Declaration of static data member. More...
 

Detailed Description

template<class T, int N>
struct JLANG::JStatic< T *, N >

Template specialisation of JStatic for static member declaration of pointer.

Definition at line 161 of file JStatic.hh.

Member Typedef Documentation

◆ argument_type

template<class T , int N>
typedef JClass<T*>::argument_type JLANG::JStatic< T *, N >::argument_type

Definition at line 165 of file JStatic.hh.

Member Function Documentation

◆ operator=()

template<class T , int N>
JStatic& JLANG::JStatic< T *, N >::operator= ( argument_type  value)
inline

Assignment operator.

Parameters
valuevalue
Returns
this value

Definition at line 173 of file JStatic.hh.

174  {
175  this->value = value;
176 
177  return *this;
178  }
static T * value
Declaration of static data member.
Definition: JStatic.hh:227

◆ operator->() [1/2]

template<class T , int N>
const T* JLANG::JStatic< T *, N >::operator-> ( ) const
inline

Smart pointer.

Returns
value

Definition at line 186 of file JStatic.hh.

187  {
188  return value;
189  }

◆ operator->() [2/2]

template<class T , int N>
T* JLANG::JStatic< T *, N >::operator-> ( )
inline

Smart pointer.

Returns
value

Definition at line 197 of file JStatic.hh.

198  {
199  return value;
200  }

◆ equals() [1/2]

template<class T , int N>
bool JLANG::JStatic< T *, N >::equals ( const JStatic< T *, N > &  object) const
inline

Equals method.

Parameters
objectobject
Returns
true if this object equals given object; else false

Definition at line 209 of file JStatic.hh.

210  {
211  return this->value == object.value;
212  }

◆ equals() [2/2]

template<class T , int N>
bool JLANG::JStatic< T *, N >::equals ( argument_type  value) const
inline

Equals method.

Parameters
valuevalue
Returns
true if this value equals given value; else false

Definition at line 221 of file JStatic.hh.

222  {
223  return this->value == value;
224  }

Member Data Documentation

◆ value

template<class T , int N>
T * JLANG::JStatic< T *, N >::value
staticprotected

Declaration of static data member.

Definition at line 227 of file JStatic.hh.


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