instant Class Reference

An instant of time. Contains the time value and name. More...

Inheritance diagram for instant:
[legend]
Collaboration diagram for instant:
[legend]

Public Member Functions

 instant ()=default
 Construct null, with time-value = 0. More...
 
 instant (const instant &)=default
 Copy construct. More...
 
 instant (instant &&)=default
 Move construct. More...
 
 instant (scalar timeValue)
 Construct from timeValue, auto generating the name. More...
 
 instant (const word &timeName)
 Construct from timeName, parsing timeName for a value. More...
 
 instant (word &&timeName)
 Construct from timeName, parsing timeName for a value. More...
 
instantoperator= (const instant &)=default
 Copy assignment. More...
 
instantoperator= (instant &&)=default
 Move assignment. More...
 
- Public Member Functions inherited from Instant< word >
 Instant ()
 Construct null, with value = 0. More...
 
 Instant (scalar val, const word &key)
 Copy construct from components. More...
 
 Instant (scalar val, word &&key)
 Move construct from components. More...
 
 Instant (const Instant &)=default
 Copy construct. More...
 
 Instant (Instant &&)=default
 Move construct. More...
 
scalar value () const
 The value (const access) More...
 
scalar & value ()
 The value (non-const access) More...
 
const wordname () const
 The name/key (const access) More...
 
wordname ()
 The name/key (non-const access) More...
 
bool equal (scalar val) const
 True if values are equal (includes SMALL for rounding) More...
 
bool equal (const Instant< T2 > &other) const
 True if values are equal (includes SMALL for rounding) More...
 
Instantoperator= (const Instant &)=default
 Copy assignment. More...
 
Instantoperator= (Instant &&)=default
 Move assignment. More...
 

Static Public Attributes

static const char *const typeName = "instant"
 

Detailed Description

An instant of time. Contains the time value and name.

Source files

Definition at line 52 of file instant.H.

Constructor & Destructor Documentation

◆ instant() [1/6]

instant ( )
default

Construct null, with time-value = 0.

◆ instant() [2/6]

instant ( const instant )
default

Copy construct.

◆ instant() [3/6]

instant ( instant &&  )
default

Move construct.

◆ instant() [4/6]

instant ( scalar  timeValue)
explicit

Construct from timeValue, auto generating the name.

Definition at line 40 of file instant.C.

◆ instant() [5/6]

instant ( const word timeName)
explicit

Construct from timeName, parsing timeName for a value.

Definition at line 46 of file instant.C.

◆ instant() [6/6]

instant ( word &&  timeName)
explicit

Construct from timeName, parsing timeName for a value.

Definition at line 52 of file instant.C.

Member Function Documentation

◆ operator=() [1/2]

instant& operator= ( const instant )
default

Copy assignment.

◆ operator=() [2/2]

instant& operator= ( instant &&  )
default

Move assignment.

Member Data Documentation

◆ typeName

const char *const typeName = "instant"
static

Definition at line 60 of file instant.H.


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