oos::value_item< T > Class Template Reference
Holder class for the value type. More...
#include <object_container.hpp>
Inherits oos::object.
Inherited by oos::container_item< T, C >.
Public Types | |
typedef T | value_type |
Public Member Functions | |
value_item (const value_type &v) | |
virtual void | deserialize (object_reader &deserializer) |
virtual void | serialize (object_writer &serializer) const |
value_type | value () const |
void | value (const value_type &v) |
Public Member Functions inherited from oos::object | |
object () | |
Create a new object. More... | |
virtual | ~object () |
const char * | classname () const |
Returns the classname of the object. More... | |
long | id () const |
Returns the unique identifier of the object. More... | |
void | id (long oid) |
Sets the id of the object. More... | |
object_store * | ostore () const |
Returns the object store. More... | |
template<class T > | |
bool | set (const std::string &name, const T &val) |
template<class T > | |
bool | get (const std::string &name, T &val) |
template<class T > | |
bool | get (const std::string &name, T &val, int precision) |
template<class T > | |
void | modify (T &attr, const T &val) |
void | modify (char *attr, int max_size, const char *val, int size) |
template<class T > | |
void | modify (oos::object_ref< T > &attr, const oos::object_ptr< T > &val) |
void | modify (varchar_base &attr, const std::string &val) |
void | modify (varchar_base &attr, const varchar_base &val) |
Additional Inherited Members | |
Protected Member Functions inherited from oos::object | |
object_proxy * | proxy () const |
Returns the object_proxy of the object. More... | |
void | mark_modified () |
Marks this object as modified in its object_store. More... | |
Detailed Description
template<class T>
class oos::value_item< T >
Holder class for the value type.
- Template Parameters
-
T Type of value
This class comes as a proxy between the container class and the values stored in the container.
Member Typedef Documentation
template<class T >
typedef T oos::value_item< T >::value_type |
Shortcut for the value type.
Constructor & Destructor Documentation
template<class T >
|
inline |
Copies a value_item.
- Parameters
-
v value_item to copy from.
Member Function Documentation
template<class T >
|
inlinevirtual |
Deserializes an object from the given object_atomizer object.
- Parameters
-
deserializer The object_atomizer to deserialize from.
Reimplemented from oos::object.
Reimplemented in oos::container_item< T, C >.
template<class T >
|
inlinevirtual |
Serializes an object to the given object_atomizer object.
- Parameters
-
serializer The object_atomizer to serialize to.
Reimplemented from oos::object.
Reimplemented in oos::container_item< T, C >.
template<class T >
|
inline |
Return the current value of the value_item.
- Returns
- The value of the value_item.
template<class T >
|
inline |
Sets a new value for the value_item.
- Parameters
-
v The new value to set.
The documentation for this class was generated from the following file:
- object/object_container.hpp