5 #include <libutl/String.h> 39 bool firstOwner =
true,
40 bool secondOwner =
true);
51 bool firstOwner =
true,
52 bool secondOwner =
true);
66 virtual void steal(
Object& rhs);
68 virtual void vclone(
const Object& rhs);
71 virtual const Object& getKey()
const;
77 virtual size_t innerAllocatedSize()
const;
108 void setFirst(
const Object* first);
111 void setSecond(
const Object* second);
118 setFirst(first.clone());
128 setSecond(second.clone());
137 return getFlag(flg_firstOwner);
144 return getFlag(flg_secondOwner);
151 setFlag(flg_firstOwner, firstOwner);
158 setFlag(flg_secondOwner, secondOwner);
172 _first = _second =
nullptr;
174 setSecondOwner(
true);
String toString(const FwdIt &begin, const FwdIt &end, const String &sep, bool key=false)
Obtain a string representation of a sequence (via Object::toString()).
void serialize(bool &b, Stream &stream, uint_t io, uint_t mode=ser_default)
Serialize a boolean.
bool isSecondOwner() const
Return the owner flag for the second object.
void deInit()
De-initialize UTL++.
default representation (via getSerializeMode())
#define UTL_CLASS_DECL(DC, BC)
Declaration of standard UTL++ functionality for a non-template class.
void clear()
Disassociate both objects.
void setFirstOwner(bool firstOwner)
Set the owner flag for the first object.
unsigned char byte_t
Unsigned character.
Mix-in to provide 64-bits for space-efficient storage of up to 64 boolean flags.
void setSecond(const Object &second)
Set the second object (make a copy if isSecondOwner()).
Object * second() const
Return the second object.
void copy(T *dest, const T *src, size_t len)
Copy one array of objects to another.
Object * getFirst() const
Return the first object.
Object * getSecond() const
Return the second object.
unsigned int uint_t
Unsigned integer.
void setFirst(const Object &first)
Set the first object (make a copy if isFirstOwner()).
void setSecondOwner(bool secondOwner)
Set the owner flag for the second object.
Object * first() const
Return the first object.
Simple container for two objects.
Root of UTL++ class hierarchy.
int compare(bool lhs, bool rhs)
Compare two boolean values.
void init()
Initialize UTL++.
bool isFirstOwner() const
Return the owner flag for the first object.