Tide 0.1.0
Public Member Functions | Protected Member Functions

tide::UIntElement Class Reference

Unsigned integer primitive element. More...

#include <tide/uint_element.h>

Inheritance diagram for tide::UIntElement:
Inheritance graph
[legend]
Collaboration diagram for tide::UIntElement:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 UIntElement (uint32_t id, uint64_t value)
 Create a new unsigned integer element with no default.
 UIntElement (uint32_t id, uint64_t value, uint64_t default_value)
 Create a new unsigned integer element with a default value.
virtual UIntElementoperator= (uint64_t const &rhs)
 Value assignment operator.
virtual std::streamsize write_body (std::ostream &output)
 Element body writing.

Protected Member Functions

virtual std::streamsize body_size () const
 Get the size of the body of this element.
virtual std::streamsize read_body (std::istream &input, std::streamsize size)
 Element body loading.

Detailed Description

Unsigned integer primitive element.

This element stores an unsigned integer. The maximum size of the value is 2^64.

Definition at line 46 of file uint_element.h.


Constructor & Destructor Documentation

tide::UIntElement::UIntElement ( uint32_t  id,
uint64_t  value 
)

Create a new unsigned integer element with no default.

Parameters:
[in]idThe element's ID, as an unsigned integer up to 28 bits.
[in]valueThe element's value.
tide::UIntElement::UIntElement ( uint32_t  id,
uint64_t  value,
uint64_t  default_value 
)

Create a new unsigned integer element with a default value.

Parameters:
[in]idThe element's ID, as an unsigned integer up to 28 bits.
[in]valueThe element's value.
[in]default_valueThe default value of the element.

Member Function Documentation

virtual std::streamsize tide::UIntElement::body_size ( ) const [protected, virtual]

Get the size of the body of this element.

Implements tide::Element.

virtual UIntElement& tide::UIntElement::operator= ( uint64_t const &  rhs) [virtual]

Value assignment operator.

Reimplemented from tide::PrimitiveElement< uint64_t >.

virtual std::streamsize tide::UIntElement::read_body ( std::istream &  input,
std::streamsize  size 
) [protected, virtual]

Element body loading.

Implements tide::Element.

virtual std::streamsize tide::UIntElement::write_body ( std::ostream &  output) [virtual]

Element body writing.

Implements tide::Element.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines