Ice 3.7 C++11 API Reference
Public Member Functions | Static Public Member Functions | List of all members
Ice::Value Class Reference

The base class for instances of Slice classes. More...

#include <Ice/Ice.h>

Inheritance diagram for Ice::Value:
Inheritance graph
[legend]

Public Member Functions

std::shared_ptr< Valueice_clone () const
 Returns a shallow copy of the object. More...
 
virtual std::shared_ptr< SlicedDataice_getSlicedData () const
 Obtains the sliced data associated with this instance. More...
 
virtual std::string ice_id () const
 Obtains the Slice type ID of the most-derived class supported by this object. More...
 
virtual void ice_postUnmarshal ()
 The Ice run time invokes this method after unmarshaling an object's data members. More...
 
virtual void ice_preMarshal ()
 The Ice run time invokes this method prior to marshaling an object's data members. More...
 
Valueoperator= (const Value &)=default
 
Valueoperator= (Value &&)=default
 
 Value ()=default
 
 Value (const Value &)=default
 
 Value (Value &&)=default
 
virtual ~Value ()=default
 

Static Public Member Functions

static const std::string & ice_staticId ()
 Obtains the Slice type ID of this type. More...
 

Detailed Description

The base class for instances of Slice classes.

Constructor & Destructor Documentation

◆ Value() [1/3]

Ice::Value::Value ( )
default

◆ Value() [2/3]

Ice::Value::Value ( const Value )
default

◆ Value() [3/3]

Ice::Value::Value ( Value &&  )
default

◆ ~Value()

virtual Ice::Value::~Value ( )
virtualdefault

Member Function Documentation

◆ ice_clone()

std::shared_ptr<Value> Ice::Value::ice_clone ( ) const

Returns a shallow copy of the object.

Returns
The cloned value.

◆ ice_getSlicedData()

virtual std::shared_ptr<SlicedData> Ice::Value::ice_getSlicedData ( ) const
virtual

Obtains the sliced data associated with this instance.

Returns
The sliced data if the value has a preserved-slice base class and has been sliced during unmarshaling of the value, nil otherwise.

Reimplemented in Ice::UnknownSlicedValue.

◆ ice_id()

virtual std::string Ice::Value::ice_id ( ) const
virtual

Obtains the Slice type ID of the most-derived class supported by this object.

Returns
The type ID.

Reimplemented in Ice::UnknownSlicedValue.

◆ ice_postUnmarshal()

virtual void Ice::Value::ice_postUnmarshal ( )
virtual

The Ice run time invokes this method after unmarshaling an object's data members.

This allows a subclass to override this method in order to perform additional initialization.

◆ ice_preMarshal()

virtual void Ice::Value::ice_preMarshal ( )
virtual

The Ice run time invokes this method prior to marshaling an object's data members.

This allows a subclass to override this method in order to validate its data members.

◆ ice_staticId()

static const std::string& Ice::Value::ice_staticId ( )
static

Obtains the Slice type ID of this type.

Returns
The return value is always "::Ice::Object".

◆ operator=() [1/2]

Value& Ice::Value::operator= ( const Value )
default

◆ operator=() [2/2]

Value& Ice::Value::operator= ( Value &&  )
default

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