'ODTONE - Open Dot Twenty One'

PrevUpHomeNext

Class percentage

odtone::mih::percentage

Synopsis

// In header: </home/carlos/Projectos/odtone/inc/odtone/mih/types/base.hpp>


class percentage {
public:
  // construct/copy/destruct
  percentage();
  percentage& operator=(uint);

  // public member functions
  operator uint();
  template<typename ArchiveT> void serialize(ArchiveT &);
};

Description

PERCENTAGE data type.

percentage public construct/copy/destruct

  1. percentage();

    Construct a PERCENTAGE data type. It is initialize to 0%.

  2. percentage& operator=(uint val);

    Set the PERCENTAGE data type value.

    Parameters:

    val

    The percentage value.

    Returns:

    The reference to the PERCENTAGE data type.

percentage public member functions

  1. operator uint();

    Get the PERCENTAGE data type value.

    Returns:

    The PERCENTAGE data type value.

  2. template<typename ArchiveT> void serialize(ArchiveT & ar);

    Serialize/deserialize the PERCENTAGE data type.

    Parameters:

    ar

    The archive to/from where serialize/deserialize the data type.


PrevUpHomeNext