Ice 3.7 C++11 API Reference
|
Go to the documentation of this file.
16 #ifndef __Ice_Identity_h__
17 #define __Ice_Identity_h__
31 #ifndef ICE_IGNORE_VERSION
32 # if ICE_INT_VERSION / 100 != 307
33 # error Ice version mismatch!
35 # if ICE_INT_VERSION % 100 >= 50
36 # error Beta header file detected
38 # if ICE_INT_VERSION % 100 < 10
39 # error Ice patch level mismatch!
44 # if defined(ICE_STATIC_LIBS)
46 # elif defined(ICE_API_EXPORTS)
47 # define ICE_API ICE_DECLSPEC_EXPORT
49 # define ICE_API ICE_DECLSPEC_IMPORT
53 #ifdef ICE_CPP11_MAPPING // C++11 mapping
81 std::tuple<const ::std::string&, const ::std::string&>
ice_tuple()
const
90 using ObjectDict = ::std::map<Identity, ::std::shared_ptr<Object>>;
98 using Ice::operator<=;
100 using Ice::operator>=;
101 using Ice::operator==;
102 using Ice::operator!=;
113 static const StreamHelperCategory helper = StreamHelperCategoryStruct;
114 static const int minWireSize = 2;
115 static const bool fixedLength =
false;
130 #else // C++98 mapping
160 if(
name != rhs_.name)
171 bool operator<(
const Identity& rhs_)
const
181 else if(rhs_.name <
name)
204 bool operator>(
const Identity& rhs_)
const
217 typedef ::std::map<Identity, ObjectPtr>
ObjectDict;
233 static const StreamHelperCategory helper = StreamHelperCategoryStruct;
234 static const int minWireSize = 2;
235 static const bool fixedLength =
false;
241 static void write(S* ostr, const ::Ice::Identity& v)
244 ostr->write(v.category);
::std::string name
The name of the Ice object.
Definition: Identity.h:71
bool operator!=(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition: Comparable.h:196
::std::string category
The Ice object category.
Definition: Identity.h:75
::std::map< Identity, ::std::shared_ptr< Object > > ObjectDict
A mapping between identities and Ice objects.
Definition: Identity.h:90
std::tuple< const ::std::string &, const ::std::string & > ice_tuple() const
Obtains a tuple containing all of the struct's data members.
Definition: Identity.h:81
bool operator==(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition: Comparable.h:184
bool operator<=(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition: Comparable.h:148
bool operator>=(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition: Comparable.h:172
bool operator<(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition: Comparable.h:136
::std::vector< Identity > IdentitySeq
A sequence of identities.
Definition: Identity.h:95
bool operator>(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition: Comparable.h:160
Definition: BuiltinSequences.h:56
The identity of an Ice object.
Definition: Identity.h:67