Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
JLANG::JAbstractObjectStatus Struct Referenceabstract

Interface for status of object. More...

#include <JAbstractObjectStatus.hh>

Inheritance diagram for JLANG::JAbstractObjectStatus:
JIO::JReader JIO::JWriter JLANG::JObjectStatus JLANG::JRedirectStream JLANG::JRedirectString JPARSER::JCounter JSYSTEM::JShell JSYSTEM::JStat

Public Member Functions

virtual bool getStatus () const =0
 Get status of object.
 
 operator bool () const
 Type conversion operator.
 
bool operator! () const
 Negated status of this object.
 

Detailed Description

Interface for status of object.


This interface implements:

  • type conversion operator bool (); and
  • negate operator !.

Definition at line 19 of file JAbstractObjectStatus.hh.

Member Function Documentation

◆ getStatus()

virtual bool JLANG::JAbstractObjectStatus::getStatus ( ) const
pure virtual

◆ operator bool()

JLANG::JAbstractObjectStatus::operator bool ( ) const
inline

Type conversion operator.

Returns
status of this object

Definition at line 33 of file JAbstractObjectStatus.hh.

34 {
35 return this->getStatus();
36 }
virtual bool getStatus() const =0
Get status of object.

◆ operator!()

bool JLANG::JAbstractObjectStatus::operator! ( ) const
inline

Negated status of this object.

Returns
negated status of this object

Definition at line 44 of file JAbstractObjectStatus.hh.

45 {
46 return !(this->getStatus());
47 }

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