Cumulia Illustrator Rendering Engine v1.0.0
A Rendering engine for industrial CAD/CAE model and optimized for greatest performance
 
Loading...
Searching...
No Matches
cil::Integer Class Reference

The Integer class inherits from the Tuple class and stores a single integer. More...

#include <integer.h>

Inheritance diagram for cil::Integer:
cil::Tuple< int > cil::Variant

Public Member Functions

 Integer ()
 Contructs a Integer object that stores a single integer, initialized to 0.
 
 Integer (int v)
 Contructs a Integer object that stores the specified integer v.
 
 Integer (const Integer &other)
 Constructs a Integer object by copying the value of another Integer object.
 
void set (int v)
 Sets the value of the Integer object to the provided integer v.
 
int get () const
 Gets the value of the Integer object and the value could not be changed while accessing it.
 
- Public Member Functions inherited from cil::Tuple< int >
 Tuple (int size)
 Constructs a Tuple object with a specified number of elements, and initialize all elements to 0.
 
virtual ~Tuple ()
 
int size () const
 Gets the number of elements of the Tuple.
 
int * data ()
 Gets the data array of the Tuple.
 
const int * data () const
 Gets the data array of the Tuple, and the data could not be modified upon which this function is called.
 
void setData (const int *data)
 Sets the data array of the Variant.
 
Tuple< int > & operator= (const Tuple &other)
 Copys the data of another Tuple to the one on which the operator is invoked.
 
bool operator== (const Tuple &other) const
 Compares the Tuple with another one, and returns true if they are equal, otherwise returns false.
 
bool operator!= (const Tuple &other) const
 Compares the Tuple with another one, and returns false if they are equal, otherwise returns true.
 
- Public Member Functions inherited from cil::Variant
 Variant ()
 
virtual ~Variant ()
 
const std::string & type () const
 

Additional Inherited Members

- Protected Attributes inherited from cil::Tuple< int >
int * m_data
 The data array of the Tuple.
 
int m_size
 The number of elements that the data array of the Tuple holds.
 
- Protected Attributes inherited from cil::Variant
std::string m_type
 

Detailed Description

The Integer class inherits from the Tuple class and stores a single integer.

Constructor & Destructor Documentation

◆ Integer() [1/3]

cil::Integer::Integer ( )

Contructs a Integer object that stores a single integer, initialized to 0.

◆ Integer() [2/3]

cil::Integer::Integer ( int v)

Contructs a Integer object that stores the specified integer v.

◆ Integer() [3/3]

cil::Integer::Integer ( const Integer & other)

Constructs a Integer object by copying the value of another Integer object.

Member Function Documentation

◆ get()

int cil::Integer::get ( ) const

Gets the value of the Integer object and the value could not be changed while accessing it.

◆ set()

void cil::Integer::set ( int v)

Sets the value of the Integer object to the provided integer v.