libart-paperback 0.1.0-a.1.20260122225059.e5fea306241a
PDF (1.4) library for C++
Art::Paperback::Carousel::Integer Class Reference

Represents a COS integer. More...

#include <art/paperback/carousel/integer.hxx>

Inheritance diagram for Art::Paperback::Carousel::Integer:

Public Member Functions

 Integer (int64_t)
 Constructor.
 
 Integer (Integer const &)
 Constructor.
 
 Integer (Integer &&)
 Constructor.
 
 ~Integer () noexcept
 Destructor.
 
int64_t const & operator* () const
 Access integer.
 
Integeroperator= (Integer const &)
 Assignment.
 
Integeroperator= (Integer &&)
 Assignment.
 
bool operator== (Integer const &) const
 Comparison.
 
bool operator!= (Integer const &) const
 Comparison.
 
void attach (Owner &)
 Attach value to owner.
 
Owner * owner ()
 Access owner, if any.
 
Owner const * owner () const
 Access owner, if any.
 

Protected Member Functions

virtual void attach_children (Owner &)
 Attach any children.
 

Private Attributes

int64_t _data {}
 
Owner * _owner {}
 

Detailed Description

Represents a COS integer.

Constructor & Destructor Documentation

◆ Integer() [1/3]

Art::Paperback::Carousel::Integer::Integer ( int64_t value)

Constructor.

◆ Integer() [2/3]

Art::Paperback::Carousel::Integer::Integer ( Integer const & other)

Constructor.

◆ Integer() [3/3]

Art::Paperback::Carousel::Integer::Integer ( Integer && other)

Constructor.

◆ ~Integer()

Art::Paperback::Carousel::Integer::~Integer ( )
noexcept

Destructor.

Member Function Documentation

◆ operator*()

int64_t const & Art::Paperback::Carousel::Integer::operator* ( ) const

Access integer.

◆ operator=() [1/2]

Integer & Art::Paperback::Carousel::Integer::operator= ( Integer const & other)

Assignment.

◆ operator=() [2/2]

Integer & Art::Paperback::Carousel::Integer::operator= ( Integer && other)

Assignment.

◆ operator==()

bool Art::Paperback::Carousel::Integer::operator== ( Integer const & other) const

Comparison.

◆ operator!=()

bool Art::Paperback::Carousel::Integer::operator!= ( Integer const & other) const

Comparison.

◆ attach()

void Art::Paperback::Carousel::Object_model::Value_base::attach ( Owner & owner)
inherited

Attach value to owner.

Parameters
ownerReference to the owner.

◆ owner() [1/2]

Owner * Art::Paperback::Carousel::Object_model::Value_base::owner ( )
inherited

Access owner, if any.

Returns
Returns a pointer to the owner, if attached.

◆ owner() [2/2]

Owner const * Art::Paperback::Carousel::Object_model::Value_base::owner ( ) const
inherited

Access owner, if any.

Returns
Returns a pointer to the owner, if attached.

◆ attach_children()

void Art::Paperback::Carousel::Object_model::Value_base::attach_children ( Owner & owner)
protectedvirtualinherited

Attach any children.

Parameters
ownerThe owner of the children.

Reimplemented in Art::Paperback::Carousel::Array, and Art::Paperback::Carousel::Dictionary.