ARTS  2.4.0(git:4fb77825)
ARTS::Var::Rational Class Reference

#include <autoarts.h>

Public Member Functions

 Rational () noexcept
 
 Rational (std::size_t i, void *x) noexcept
 
 ~Rational () noexcept
 
 Rational (const type &val) noexcept
 
typevalue () noexcept
 
const typevalue () const noexcept
 
Rationaloperator= (const type &t) noexcept
 
std::size_t pos () const noexcept
 
bool isnull () const noexcept
 
bool islast () const noexcept
 
const Group::Stringname () const noexcept
 

Private Types

using type = Group::Rational
 

Private Attributes

std::size_t p
 
typev
 

Detailed Description

Definition at line 1360 of file autoarts.h.

Member Typedef Documentation

◆ type

Definition at line 1361 of file autoarts.h.

Constructor & Destructor Documentation

◆ Rational() [1/3]

ARTS::Var::Rational::Rational ( )
inlinenoexcept

Definition at line 1365 of file autoarts.h.

◆ Rational() [2/3]

ARTS::Var::Rational::Rational ( std::size_t  i,
void *  x 
)
inlinenoexcept

Definition at line 1366 of file autoarts.h.

◆ ~Rational()

ARTS::Var::Rational::~Rational ( )
inlinenoexcept

Definition at line 1367 of file autoarts.h.

References islast(), isnull(), and v.

◆ Rational() [3/3]

ARTS::Var::Rational::Rational ( const type val)
inlinenoexcept

Definition at line 1368 of file autoarts.h.

Member Function Documentation

◆ islast()

◆ isnull()

bool ARTS::Var::Rational::isnull ( ) const
inlinenoexcept

Definition at line 1373 of file autoarts.h.

References v.

Referenced by ~Rational().

◆ name()

const Group::String& ARTS::Var::Rational::name ( ) const
inlinenoexcept

Definition at line 1375 of file autoarts.h.

References p, and Workspace::wsv_data.

Referenced by ARTS::Method::Copy(), and ARTS::Method::Delete().

◆ operator=()

Rational& ARTS::Var::Rational::operator= ( const type t)
inlinenoexcept

Definition at line 1371 of file autoarts.h.

References value().

◆ pos()

◆ value() [1/2]

const type& ARTS::Var::Rational::value ( ) const
inlinenoexcept

Definition at line 1370 of file autoarts.h.

References v.

◆ value() [2/2]

Member Data Documentation

◆ p

std::size_t ARTS::Var::Rational::p
private

Definition at line 1362 of file autoarts.h.

Referenced by islast(), name(), and pos().

◆ v

type* ARTS::Var::Rational::v
private

Definition at line 1363 of file autoarts.h.

Referenced by isnull(), value(), and ~Rational().


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