9.6 Exception::Memory::Move


Synopsis


  #include <lyric/Exceptions.hpp>
  
  class Exception::Memory::Move : public Exception::Memory
  {
  public:
    Exception::Memory::Move (Size totsize, Size movesize, Size src, Size dest,
                             const void* who);
    Exception::Memory::Move (const Exception::Memory::Move& except);
    Size totsize () const;
    Size movesize () const;
    Size src () const;
    Size dest () const;
  };


Description


Graphic browser needed to see picture

Figure 9.1: Illustration of arguments and returned values.


Exception::Memory::Move (Size totsize, Size movesize, Size src, Size dest, const void* who)
Constructs this exception with the given arguments. Argument totsize gives the total amount of items stored in the container, movesize the amount of items that should have been moved, src the zero index of the source area, dest the zero index of the destination area, and who the address of the container who threw the exception (usually this).

Exception::Memory::Move (const Exception::Memory::Move& except)
Constructs this memory move exception from the given exception. All properties and data stored in except are copied into this.

Size totsize () const
Returns the value of the stored total size, giving the number of items the container identified by who() can store.

Size movesize () const
Returns the value of the stored move size, giving the number of items an operation tried to move in the container identified by who().

Size src () const
Returns the value of the zero index of the source area an operation tried to move in the container identified by who().

Size dest () const
Returns the value of the zero index of the destination area an operation tried to move in the container identified by who().