Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
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.
 
const T * operator-> () const
 Smart pointer.
 
T * operator-> ()
 Smart pointer.
 
bool equals (const JStatic &object) const
 Equals method.
 
bool equals (argument_type value) const
 Equals method.
 

Static Protected Attributes

static T * value
 

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>
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 }

◆ 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

Definition at line 227 of file JStatic.hh.


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