Flip Reference

 

Int64 Class Reference

Namespace

ohm::flip

Inherits from

ohm::flip::Object

Declared in

ohm/flip/Int64.h

Companion Guide

Flip Programming Guide: Writing a Flip Class Part 1

Overview

The Int64 class implements a Flip value type holding a 64 bits integer value. The following sections will only document the public API.

Partial Class Diagram

Methods Overview

Assigning

Casting

Comparing

Differencing

Methods

ctor

Sets the value at post construction stage.

virtual void   ctor (ohm::flip::Args & args);
void           ctor (ohm::archi::Int64 val);

The first version sets the value from a cascaded arguments object ohm::flip::Args

operator =

Sets the value.

Int64 &        operator = (ohm::archi::Int64 val);

Returns a reference to this .

operator bool

Returns the value of this .

               operator ohm::archi::Int64 () const;

WARNING:it is invalid to call this function when the object is being restored

get_old_value

Returns the old value of this .

ohm::archi::Int64
               get_old_value () const;

WARNING:it is invalid to call this function when the object is being inited

operator ==

Returns true if the right handed value is equal to this , false otherwise.

               operator == (ohm::archi::Int64 val) const;
               operator == (const Int64 &other) const;

operator !=

Returns true if the right handed value is not equal to this , false otherwise.

               operator != (ohm::archi::Int64 val) const;
               operator != (const Int64 &other) const;

did_value_change

Returns true if the old value is different from the current value.

bool           did_value_change () const;

Note:Outside of an observer document_changed call, this will always return false